| java.lang.Object org.tigris.subversion.javahl.tests.WC
WC | public class WC (Code) | | This class describe the expected state of the working copy
|
Inner Class :public class Item | |
Field Summary | |
Map | items the map of the items of the working copy. |
Method Summary | |
public Item | addItem(String path, String content) Add a new item to the working copy
Parameters: path - the path of the item Parameters: content - the content of the item. | void | check(DirEntry[] tested, String singleFilePath) | void | check(DirEntry[] tested, String basePath, boolean recursive) | void | check(Status[] tested, String workingCopyPath) | public WC | copy() | public Item | getItem(String path) | public String | getItemContent(String path) | public void | materialize(File root) | public void | removeItem(String path) | public void | setItemCheckContent(String path, boolean check) set the flag to check the content of item at a path during next check. | public void | setItemContent(String path, String content) | public void | setItemIsLocked(String path, boolean isLocked) | public void | setItemIsSwitched(String path, boolean isSwitched) | public void | setItemNodeKind(String path, int nodeKind) | public void | setItemPropStatus(String path, int status) | public void | setItemTextStatus(String path, int status) | public void | setItemWorkingCopyRevision(String path, long revision) |
items | Map items(Code) | | the map of the items of the working copy. The relative path is the key
for the map
|
addItem | public Item addItem(String path, String content)(Code) | | Add a new item to the working copy
Parameters: path - the path of the item Parameters: content - the content of the item. A null content signifies adirectory the new Item object |
check | void check(DirEntry[] tested, String singleFilePath) throws Exception(Code) | | Check the result of a single file SVNClient.list call
Parameters: tested - the result array Parameters: singleFilePath - the path to be checked throws: Exception - |
check | void check(DirEntry[] tested, String basePath, boolean recursive) throws Exception(Code) | | Check the result of a directory SVNClient.list call
Parameters: tested - the result array Parameters: basePath - the path of the directory Parameters: recursive - the recursive flag of the call throws: Exception - |
check | void check(Status[] tested, String workingCopyPath) throws Exception(Code) | | Check the result of a SVNClient.status versus the expected state
Parameters: tested - the result to be tested Parameters: workingCopyPath - the path of the working copy throws: Exception - |
copy | public WC copy()(Code) | | Copy an expected working copy state
the copy of the exiting object |
getItem | public Item getItem(String path)(Code) | | Returns the item at a path
Parameters: path - the path, where the item is searched the found item |
getItemContent | public String getItemContent(String path)(Code) | | Returns the file content of the item at a path
Parameters: path - the path, where the content is retrieved the content of the file |
materialize | public void materialize(File root) throws IOException(Code) | | Generate from the expected state of the working copy a new working copy
Parameters: root - the working copy directory throws: IOException - |
removeItem | public void removeItem(String path)(Code) | | Remove the item at a path
Parameters: path - the path, where the item is removed |
setItemCheckContent | public void setItemCheckContent(String path, boolean check)(Code) | | set the flag to check the content of item at a path during next check.
Parameters: path - the path, where the flag is set Parameters: check - the flag |
setItemContent | public void setItemContent(String path, String content)(Code) | | Set the file content of the item at a path
Parameters: path - the path, where the content is set Parameters: content - the new content |
setItemIsLocked | public void setItemIsLocked(String path, boolean isLocked)(Code) | | Set the expected lock state at a path
Parameters: path - the path, where the lock state is set Parameters: isLocked - the flag |
setItemIsSwitched | public void setItemIsSwitched(String path, boolean isSwitched)(Code) | | Set the expected switched flag at a path
Parameters: path - the path, where the switch flag is set Parameters: isSwitched - the flag |
setItemNodeKind | public void setItemNodeKind(String path, int nodeKind)(Code) | | Set the expected node kind at a path
Parameters: path - the path, where the node kind is set Parameters: nodeKind - the expected node kind |
setItemPropStatus | public void setItemPropStatus(String path, int status)(Code) | | Set property status of the item at a path
Parameters: path - the path, where the status is set Parameters: status - the new property status |
setItemTextStatus | public void setItemTextStatus(String path, int status)(Code) | | Set text (content) status of the item at a path
Parameters: path - the path, where the status is set Parameters: status - the new text status |
setItemWorkingCopyRevision | public void setItemWorkingCopyRevision(String path, long revision)(Code) | | Set the revision number of the item at a path
Parameters: path - the path, where the revision number is set Parameters: revision - the new revision number |
|
|