org.tigris.subversion.javahl.tests
Class WC
java.lang.Objectorg.tigris.subversion.javahl.tests.WC
public class WC
extends java.lang.Object
This class describe the expected state of the working copy
class | WC.Item- internal class to discribe a single working copy item
|
WC.Item | addItem(String path, String content)- Add a new item to the working copy
|
WC | copy()- Copy an expected working copy state
|
WC.Item | getItem(String path)- Returns the item at a path
|
String | getItemContent(String path)- Returns the file content of the item at a path
|
void | materialize(File root)- Generate from the expected state of the working copy a new working copy
|
void | removeItem(String path)- Remove the item at a path
|
void | setItemCheckContent(String path, boolean check)- set the flag to check the content of item at a path during next check.
|
void | setItemContent(String path, String content)- Set the file content of the item at a path
|
void | setItemIsLocked(String path, boolean isLocked)- Set the expected lock state at a path
|
void | setItemIsSwitched(String path, boolean isSwitched)- Set the expected switched flag at a path
|
void | setItemNodeKind(String path, int nodeKind)- Set the expected node kind at a path
|
void | setItemPropStatus(String path, int status)- Set property status of the item at a path
|
void | setItemTextStatus(String path, int status)- Set text (content) status of the item at a path
|
void | setItemWorkingCopyRevision(String path, long revision)- Set the revision number of the item at a path
|
addItem
public WC.Item addItem(String path,
String content) Add a new item to the working copy
path - the path of the itemcontent - the content of the item. A null content signifies a
directory
copy
public WC copy()
Copy an expected working copy state
- the copy of the exiting object
getItem
public WC.Item getItem(String path)
Returns the item at a path
path - the path, where the item is searched
getItemContent
public String getItemContent(String path)
Returns the file content of the item at a path
path - the path, where the content is retrieved
materialize
public void materialize(File root)
throws IOException Generate from the expected state of the working copy a new working copy
root - the working copy directory
removeItem
public void removeItem(String path)
Remove the item at a path
path - the path, where the item is removed
setItemCheckContent
public void setItemCheckContent(String path,
boolean check) set the flag to check the content of item at a path during next check.
path - the path, where the flag is setcheck - the flag
setItemContent
public void setItemContent(String path,
String content) Set the file content of the item at a path
path - the path, where the content is setcontent - the new content
setItemIsLocked
public void setItemIsLocked(String path,
boolean isLocked) Set the expected lock state at a path
path - the path, where the lock state is setisLocked - the flag
setItemIsSwitched
public void setItemIsSwitched(String path,
boolean isSwitched) Set the expected switched flag at a path
path - the path, where the switch flag is setisSwitched - the flag
setItemNodeKind
public void setItemNodeKind(String path,
int nodeKind) Set the expected node kind at a path
path - the path, where the node kind is setnodeKind - the expected node kind
setItemPropStatus
public void setItemPropStatus(String path,
int status) Set property status of the item at a path
path - the path, where the status is setstatus - the new property status
setItemTextStatus
public void setItemTextStatus(String path,
int status) Set text (content) status of the item at a path
path - the path, where the status is setstatus - the new text status
setItemWorkingCopyRevision
public void setItemWorkingCopyRevision(String path,
long revision) Set the revision number of the item at a path
path - the path, where the revision number is setrevision - the new revision number