Class ScriptableTestsProvider
- java.lang.Object
-
- org.apache.sling.junit.scriptable.ScriptableTestsProvider
-
- All Implemented Interfaces:
org.apache.sling.junit.TestsProvider
public class ScriptableTestsProvider extends Object implements org.apache.sling.junit.TestsProvider
TestsProvider that provides test classes for repository nodes that have a sling:Test mixin.
-
-
Field Summary
Fields Modifier and Type Field Description static StringSLING_TEST_NODETYPEstatic StringTEST_CLASS_NAME
-
Constructor Summary
Constructors Constructor Description ScriptableTestsProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidactivate(Map<String,Object> props)Class<?>createTestClass(String testName)protected voiddeactivate()StringgetServicePid()List<String>getTestNames()longlastModified()
-
-
-
Field Detail
-
SLING_TEST_NODETYPE
public static final String SLING_TEST_NODETYPE
- See Also:
- Constant Field Values
-
TEST_CLASS_NAME
public static final String TEST_CLASS_NAME
-
-
Method Detail
-
deactivate
protected void deactivate() throws javax.jcr.RepositoryException- Throws:
javax.jcr.RepositoryException
-
createTestClass
public Class<?> createTestClass(String testName) throws ClassNotFoundException
- Specified by:
createTestClassin interfaceorg.apache.sling.junit.TestsProvider- Throws:
ClassNotFoundException
-
getServicePid
public String getServicePid()
- Specified by:
getServicePidin interfaceorg.apache.sling.junit.TestsProvider
-
getTestNames
public List<String> getTestNames()
- Specified by:
getTestNamesin interfaceorg.apache.sling.junit.TestsProvider
-
lastModified
public long lastModified()
- Specified by:
lastModifiedin interfaceorg.apache.sling.junit.TestsProvider
-
-