|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.sling.junit.impl.BundleTestsProvider
@Service public class BundleTestsProvider
A TestProvider that gets test classes from bundles that have a Sling-Test-Regexp header and corresponding exported classes.
| Field Summary | |
|---|---|
static java.lang.String |
SLING_TEST_REGEXP
|
| Constructor Summary | |
|---|---|
BundleTestsProvider()
|
|
| Method Summary | |
|---|---|
protected void |
activate(org.osgi.service.component.ComponentContext ctx)
|
void |
bundleChanged(org.osgi.framework.BundleEvent event)
Called when a bundle changes state |
java.lang.Class<?> |
createTestClass(java.lang.String testName)
Create a test class to execute the specified test. |
protected void |
deactivate(org.osgi.service.component.ComponentContext ctx)
|
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 |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String SLING_TEST_REGEXP
| Constructor Detail |
|---|
public BundleTestsProvider()
| Method Detail |
|---|
protected void activate(org.osgi.service.component.ComponentContext ctx)
protected void deactivate(org.osgi.service.component.ComponentContext ctx)
public java.lang.String toString()
toString in class java.lang.Objectpublic void bundleChanged(org.osgi.framework.BundleEvent event)
bundleChanged in interface org.osgi.framework.BundleListener
public java.lang.Class<?> createTestClass(java.lang.String testName)
throws java.lang.ClassNotFoundException
TestsProvider
createTestClass in interface TestsProviderjava.lang.ClassNotFoundExceptionpublic long lastModified()
TestsProvider
lastModified in interface TestsProviderpublic java.lang.String getServicePid()
TestsProvider
getServicePid in interface TestsProviderpublic java.util.List<java.lang.String> getTestNames()
TestsProvider
getTestNames in interface TestsProvider
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||