public class TestDataState extends Object
baseUrl so parallel instances of Crowd can be
tracked during a single test run.| Modifier and Type | Field and Description |
|---|---|
static TestDataState |
INSTANCE |
| Constructor and Description |
|---|
TestDataState() |
| Modifier and Type | Method and Description |
|---|---|
void |
intendToModify(URL baseUrl)
Indicate that a test intends to modify the data in Crowd.
|
boolean |
isRestoredXml(URL baseUrl,
String xmlfilename)
Report on whether an unmodified version of the data in
xmlfilename is available. |
void |
setRestoredXml(URL baseUrl,
String xmlfilename)
Declare that the data in
xmlfilename has been restored. |
public static final TestDataState INSTANCE
public boolean isRestoredXml(URL baseUrl, String xmlfilename)
xmlfilename is available.true if a test can rely on Crowd's state being from
xmlfilenamepublic void setRestoredXml(URL baseUrl, String xmlfilename)
xmlfilename has been restored.public void intendToModify(URL baseUrl)
isRestoredXml(URL, String) will report false until
another restore.Copyright © 2017 Atlassian. All rights reserved.