public abstract class AbstractOsgiRuntimeTestCase
extends junit.framework.TestCase
Modifier and Type | Field and Description |
---|---|
protected org.argeo.osgi.boot.OsgiBoot |
osgiBoot |
Constructor and Description |
---|
AbstractOsgiRuntimeTestCase() |
Modifier and Type | Method and Description |
---|---|
protected void |
assertBundleApplicationContext(java.lang.String bundleSymbolicName)
Make sure that the application context of this bundle is properly
initialized
|
protected void |
assertStartedBundlesApplicationContext(java.lang.String bundleSymbolicNamesPrefix)
Make sure that the application context of the started bundles starting
with this prefix are properly initialized
|
protected BundleContext |
getBundleContext() |
protected java.util.List<java.lang.String> |
getBundlesToStart() |
protected long |
getDefaultTimeout()
Default is 10s
|
protected java.util.Map<Bundle,org.springframework.context.ApplicationContext> |
getOsgiApplicationContexts() |
protected long |
getResolvedTimeout()
Default is 30s
|
protected ServiceReference[] |
getServiceRefSynchronous(java.lang.String clss,
java.lang.String filter) |
protected void |
installBundles() |
protected void |
listInstalledBundles() |
void |
setUp() |
protected void |
sleep(long duration) |
protected BundleContext |
startRuntime() |
protected void |
stopRuntime() |
void |
tearDown() |
protected void |
waitAllBundlesOk(java.util.List<java.lang.String> bundlesToStart)
Wait for all bundles to be either RESOLVED or ACTIVE.
|
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, toString
protected void installBundles() throws java.lang.Exception
java.lang.Exception
public void setUp() throws java.lang.Exception
setUp
in class junit.framework.TestCase
java.lang.Exception
public void tearDown() throws java.lang.Exception
tearDown
in class junit.framework.TestCase
java.lang.Exception
protected BundleContext startRuntime() throws java.lang.Exception
java.lang.Exception
protected void stopRuntime() throws java.lang.Exception
java.lang.Exception
protected java.util.List<java.lang.String> getBundlesToStart()
protected void listInstalledBundles()
protected java.util.Map<Bundle,org.springframework.context.ApplicationContext> getOsgiApplicationContexts() throws java.lang.Exception
java.lang.Exception
protected void waitAllBundlesOk(java.util.List<java.lang.String> bundlesToStart)
protected void assertStartedBundlesApplicationContext(java.lang.String bundleSymbolicNamesPrefix)
protected void assertBundleApplicationContext(java.lang.String bundleSymbolicName)
protected ServiceReference[] getServiceRefSynchronous(java.lang.String clss, java.lang.String filter) throws InvalidSyntaxException
InvalidSyntaxException
protected BundleContext getBundleContext()
protected long getResolvedTimeout()
protected long getDefaultTimeout()
protected final void sleep(long duration)
Copyright © 2007–2020. All rights reserved.