@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()
TestsManager
clearCaches
in interface TestsManager
public Class<?> getTestClass(String testName) throws ClassNotFoundException
TestsManager
getTestClass
in interface TestsManager
ClassNotFoundException
public Collection<String> getTestNames(TestSelector selector)
TestsManager
getTestNames
in interface TestsManager
selector
- if null, returns all available tests.public void executeTests(Collection<String> testNames, Renderer renderer, TestSelector selector) throws Exception
TestsManager
executeTests
in interface TestsManager
selector
- if not null, used to select tests and test methods.Exception
public void listTests(Collection<String> testNames, Renderer renderer) throws Exception
TestsManager
listTests
in interface TestsManager
Exception
public static void waitForSystemStartup()
Copyright © 2007–2017 The Apache Software Foundation. All rights reserved.