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,
Predicate<Class> clsMatcher)
Report on whether an unmodified version of the data in
xmlfilename is available. |
boolean |
isRestoredXml(URL baseUrl,
String xmlfilename,
Predicate<Class> clsMatcher)
Report on whether an unmodified version of the data in
xmlfilename is available. |
void |
setRestoredXml(String baseUrl,
String xmlfilename,
Class testClass)
Declare that the data in
xmlfilename has been restored. |
void |
setRestoredXml(URL baseUrl,
String xmlfilename,
Class testClass)
Declare that the data in
xmlfilename has been restored. |
public static final TestDataState INSTANCE
public boolean isRestoredXml(URL baseUrl, String xmlfilename, Predicate<Class> clsMatcher)
xmlfilename is available.true if a test can rely on Crowd's state being from
xmlfilename and was restored by class accepted by clsMatcher
This method will append a trailing slash to the URL if needed, mirroring jwebunit's behaviorpublic boolean isRestoredXml(String baseUrl, String xmlfilename, Predicate<Class> clsMatcher)
xmlfilename is available.true if a test can rely on Crowd's state being from
xmlfilename and was restored by class accepted by clsMatcher
This method will append a trailing slash to the URL if needed, mirroring jwebunit's behaviorpublic void setRestoredXml(URL baseUrl, String xmlfilename, Class testClass)
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, Class testClass)
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, Predicate) 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, Predicate) will report false until
another restore.
This method will append a trailing slash to the URL if needed, mirroring jwebunit's behaviorCopyright © 2021 Atlassian. All rights reserved.