org.apache.sling.junit
Interface TestsProvider

All Known Implementing Classes:
BundleTestsProvider

public interface TestsProvider

Provides tests, for example by scanning bundles, finding test resources in a content repository, etc.


Method Summary
 java.lang.Class<?> createTestClass(java.lang.String testName)
          Create a test class to execute the specified test.
 java.lang.String getServicePid()
          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 tests
 long lastModified()
          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.ClassNotFoundException
Create 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



Copyright © 2007-2011 The Apache Software Foundation. All Rights Reserved.