Package org.apache.sling.junit
Interface TestsProvider
-
public interface TestsProviderProvides tests, for example by scanning bundles, finding test resources in a content repository, etc.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Class<?>createTestClass(java.lang.String testName)Create a test class to execute the specified test.java.lang.StringgetServicePid()Return this service's PID, client might use it later to instantiate a specific test.java.util.List<java.lang.String>getTestNames()Return the list of available testslonglastModified()Return the timestamp at which our list of tests was last modified
-
-
-
Method Detail
-
getServicePid
java.lang.String getServicePid()
Return this service's PID, client might use it later to instantiate a specific test.
-
getTestNames
java.util.List<java.lang.String> getTestNames()
Return the list of available tests
-
createTestClass
java.lang.Class<?> createTestClass(java.lang.String testName) throws java.lang.ClassNotFoundExceptionCreate a test class to execute the specified test. The test executes in the same thread that calls this method, to allow using ThreadLocals to pass context to the test if needed.- Throws:
java.lang.ClassNotFoundException
-
lastModified
long lastModified()
Return the timestamp at which our list of tests was last modified
-
-