@Service public class ScriptableTestsProvider extends Object implements org.apache.sling.junit.TestsProvider
Modifier and Type | Field and Description |
---|---|
static String |
SLING_TEST_NODETYPE |
static String |
TEST_CLASS_NAME |
Constructor and Description |
---|
ScriptableTestsProvider() |
Modifier and Type | Method and Description |
---|---|
protected void |
activate(org.osgi.service.component.ComponentContext ctx) |
Class<?> |
createTestClass(String testName) |
protected void |
deactivate(org.osgi.service.component.ComponentContext ctx) |
String |
getServicePid() |
List<String> |
getTestNames() |
long |
lastModified() |
public static final String SLING_TEST_NODETYPE
public static final String TEST_CLASS_NAME
protected void activate(org.osgi.service.component.ComponentContext ctx) throws Exception
Exception
protected void deactivate(org.osgi.service.component.ComponentContext ctx) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
public Class<?> createTestClass(String testName) throws ClassNotFoundException
createTestClass
in interface org.apache.sling.junit.TestsProvider
ClassNotFoundException
public String getServicePid()
getServicePid
in interface org.apache.sling.junit.TestsProvider
public List<String> getTestNames()
getTestNames
in interface org.apache.sling.junit.TestsProvider
public long lastModified()
lastModified
in interface org.apache.sling.junit.TestsProvider
Copyright © 2007–2017 The Apache Software Foundation. All rights reserved.