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(String baseUrl)
Indicate that a test intends to modify the data in Crowd.
|
void |
intendToModify(URL baseUrl)
Indicate that a test intends to modify the data in Crowd.
|
boolean |
isRestoredXml(String baseUrl,
String xmlfilename)
Report on whether an unmodified version of the data in
xmlfilename is available. |
boolean |
isRestoredXml(URL baseUrl,
String xmlfilename)
Report on whether an unmodified version of the data in
xmlfilename is available. |
void |
setRestoredXml(String baseUrl,
String xmlfilename)
Declare that the data in
xmlfilename has been restored. |
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
xmlfilename
This method will append a trailing slash to the URL if needed, mirroring jwebunit's behaviorpublic boolean isRestoredXml(String baseUrl, String xmlfilename)
xmlfilename
is available.true
if a test can rely on Crowd's state being from
xmlfilename
This method will append a trailing slash to the URL if needed, mirroring jwebunit's behaviorpublic void setRestoredXml(URL baseUrl, String xmlfilename)
xmlfilename
has been restored.
This method will append a trailing slash to the URL if needed, mirroring jwebunit's behaviorpublic void setRestoredXml(String baseUrl, String xmlfilename)
xmlfilename
has been restored.
This method will append a trailing slash to the URL if needed, mirroring jwebunit's behaviorpublic void intendToModify(URL baseUrl)
isRestoredXml(URL, String)
will report false
until
another restore.
This method will append a trailing slash to the URL if needed, mirroring jwebunit's behaviorpublic void intendToModify(String baseUrl)
isRestoredXml(URL, String)
will report false
until
another restore.
This method will append a trailing slash to the URL if needed, mirroring jwebunit's behaviorCopyright © 2019 Atlassian. All rights reserved.