public class TestDataManager extends java.lang.Object
UnusedResourcesChecker
after tests have finished.
The class should only be used by ManagedTestData
therefore package
visibility.Modifier and Type | Method and Description |
---|---|
static TestDataManager |
getInstance(java.lang.Class<?> contextClass)
Returns the instance of the test data manager for the given class.
|
Resource |
getResource(java.lang.String fileName)
Marks the given resource as used and returns it.
|
boolean |
hasResource(java.lang.String fileName)
Checks whether a resource with the given name exists.
|
java.util.List<Resource> |
listResources(java.lang.String directory)
Lists the resources contained in the given directory and marks them all as
used.
|
java.util.List<Resource> |
listResourcesRecursively(java.lang.String directory)
Lists the resources contained in the given directory recursively and marks
them all as used.
|
public static TestDataManager getInstance(java.lang.Class<?> contextClass)
public boolean hasResource(java.lang.String fileName)
public Resource getResource(java.lang.String fileName)
public java.util.List<Resource> listResources(java.lang.String directory)
public java.util.List<Resource> listResourcesRecursively(java.lang.String directory)