public class OsgiJUnitTestAdapter extends Object implements OsgiJUnitTest
OsgiJUnitTest used for wrapping
AbstractOsgiTests & co. with OsgiJUnitTest interface without
exposing the latter interface (which is internal and might be modified in the
future).| Constructor and Description |
|---|
OsgiJUnitTestAdapter(junit.framework.TestCase target) |
| Modifier and Type | Method and Description |
|---|---|
junit.framework.TestCase |
getTestCase()
Simple getter that returns the raw TestCase class.
|
void |
injectBundleContext(org.osgi.framework.BundleContext bundleContext)
Provides the OSGi bundle context to the test
|
void |
osgiRunTest()
Replacement for the 'traditional' runTest.
|
void |
osgiSetUp()
Replacement for the 'traditional' setUp.
|
void |
osgiTearDown()
Replacement for the 'traditional' tearDown.
|
public OsgiJUnitTestAdapter(junit.framework.TestCase target)
public void injectBundleContext(org.osgi.framework.BundleContext bundleContext)
OsgiJUnitTestinjectBundleContext in interface OsgiJUnitTestpublic void osgiRunTest()
throws Throwable
OsgiJUnitTestosgiRunTest in interface OsgiJUnitTestThrowablepublic void osgiSetUp()
throws Exception
OsgiJUnitTestosgiSetUp in interface OsgiJUnitTestExceptionTestCase.setUp()public void osgiTearDown()
throws Exception
OsgiJUnitTestosgiTearDown in interface OsgiJUnitTestExceptionTestCase.tearDown()public junit.framework.TestCase getTestCase()
OsgiJUnitTestgetTestCase in interface OsgiJUnitTestCopyright © 2006–2023. All rights reserved.