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 String
SLING_TEST_NODETYPE
static String
TEST_CLASS_NAME
-
Constructor Summary
Constructors Constructor Description ScriptableTestsProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
activate(Map<String,Object> props)
Class<?>
createTestClass(String testName)
protected void
deactivate()
String
getServicePid()
List<String>
getTestNames()
long
lastModified()
-
-
-
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:
createTestClass
in interfaceorg.apache.sling.junit.TestsProvider
- Throws:
ClassNotFoundException
-
getServicePid
public String getServicePid()
- Specified by:
getServicePid
in interfaceorg.apache.sling.junit.TestsProvider
-
getTestNames
public List<String> getTestNames()
- Specified by:
getTestNames
in interfaceorg.apache.sling.junit.TestsProvider
-
lastModified
public long lastModified()
- Specified by:
lastModified
in interfaceorg.apache.sling.junit.TestsProvider
-
-