public class InVivoRunner
extends org.junit.runners.BlockJUnit4ClassRunner
| Modifier and Type | Field and Description |
|---|---|
private org.ow2.chameleon.testing.helpers.OSGiHelper |
helper |
| Constructor and Description |
|---|
InVivoRunner(org.osgi.framework.BundleContext context,
Class<?> clazz)
Creates a new
InVivoRunner. |
| Modifier and Type | Method and Description |
|---|---|
Object |
createTest()
Creates the test object.
|
void |
run(org.junit.runner.notification.RunNotifier notifier)
Runs the test.
|
collectInitializationErrors, computeTestMethods, describeChild, getChildren, getTestRules, isIgnored, methodBlock, methodInvoker, possiblyExpectingExceptions, rules, runChild, testName, validateConstructor, validateFields, validateInstanceMethods, validateNoNonStaticInnerClass, validateOnlyOneConstructor, validateTestMethods, validateZeroArgConstructor, withAfters, withBefores, withPotentialTimeoutpublic InVivoRunner(org.osgi.framework.BundleContext context,
Class<?> clazz)
throws org.junit.runners.model.InitializationError
InVivoRunner.context - the bundle context, used to retrieve servicesclazz - the class.org.junit.runners.model.InitializationError - if the class cannot be initialized, because for instance services cannot be foundpublic Object createTest() throws Exception
createTest in class org.junit.runners.BlockJUnit4ClassRunnerException - if anything bad happenspublic void run(org.junit.runner.notification.RunNotifier notifier)
run in class org.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod>notifier - the notifierCopyright © 2013–2015 Wisdom Framework. All rights reserved.