@Service public class TestsManagerImpl extends Object implements TestsManager
| Constructor and Description |
|---|
TestsManagerImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
activate(org.osgi.service.component.ComponentContext ctx) |
void |
clearCaches()
Clear our internal caches.
|
protected void |
deactivate(org.osgi.service.component.ComponentContext ctx) |
void |
executeTests(Collection<String> testNames,
Renderer renderer,
TestSelector selector)
Execute tests and report results using supplied Renderer - does NOT call setup or cleanup
on renderer.
|
Class<?> |
getTestClass(String testName)
Instantiate test class for specified test
|
Collection<String> |
getTestNames(TestSelector selector)
Return the names of available tests
|
void |
listTests(Collection<String> testNames,
Renderer renderer)
List tests using supplied Renderer - does NOT call setup or cleanup
on renderer.
|
static void |
waitForSystemStartup() |
protected void activate(org.osgi.service.component.ComponentContext ctx)
protected void deactivate(org.osgi.service.component.ComponentContext ctx)
public void clearCaches()
TestsManagerclearCaches in interface TestsManagerpublic Class<?> getTestClass(String testName) throws ClassNotFoundException
TestsManagergetTestClass in interface TestsManagerClassNotFoundExceptionpublic Collection<String> getTestNames(TestSelector selector)
TestsManagergetTestNames in interface TestsManagerselector - if null, returns all available tests.public void executeTests(Collection<String> testNames, Renderer renderer, TestSelector selector) throws Exception
TestsManagerexecuteTests in interface TestsManagerselector - if not null, used to select tests and test methods.Exceptionpublic void listTests(Collection<String> testNames, Renderer renderer) throws Exception
TestsManagerlistTests in interface TestsManagerExceptionpublic static void waitForSystemStartup()
Copyright © 2007–2017 The Apache Software Foundation. All rights reserved.