org.apache.sling.junit.scriptable
Class ScriptableTestsProvider
java.lang.Object
org.apache.sling.junit.scriptable.ScriptableTestsProvider
- All Implemented Interfaces:
- org.apache.sling.junit.TestsProvider
@Service
public class ScriptableTestsProvider
- extends java.lang.Object
- implements org.apache.sling.junit.TestsProvider
TestsProvider that provides test classes for repository
nodes that have a sling:Test mixin.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SLING_TEST_NODETYPE
public static final java.lang.String SLING_TEST_NODETYPE
- See Also:
- Constant Field Values
TEST_CLASS_NAME
public static final java.lang.String TEST_CLASS_NAME
ScriptableTestsProvider
public ScriptableTestsProvider()
activate
protected void activate(org.osgi.service.component.ComponentContext ctx)
throws java.lang.Exception
- Throws:
java.lang.Exception
deactivate
protected void deactivate(org.osgi.service.component.ComponentContext ctx)
throws javax.jcr.RepositoryException
- Throws:
javax.jcr.RepositoryException
createTestClass
public java.lang.Class<?> createTestClass(java.lang.String testName)
throws java.lang.ClassNotFoundException
- Specified by:
createTestClass in interface org.apache.sling.junit.TestsProvider
- Throws:
java.lang.ClassNotFoundException
getServicePid
public java.lang.String getServicePid()
- Specified by:
getServicePid in interface org.apache.sling.junit.TestsProvider
getTestNames
public java.util.List<java.lang.String> getTestNames()
- Specified by:
getTestNames in interface org.apache.sling.junit.TestsProvider
lastModified
public long lastModified()
- Specified by:
lastModified in interface org.apache.sling.junit.TestsProvider
Copyright © 2007-2011 The Apache Software Foundation. All Rights Reserved.