org.knowhowlab.osgi.testing.assertions
Class OSGiAssert
java.lang.Object
org.knowhowlab.osgi.testing.assertions.OSGiAssert
- Direct Known Subclasses:
- BundleAssert, ConfigurationAdminAssert, EventAdminAssert, FilterAssert, FrameworkAssert, ServiceAssert
public abstract class OSGiAssert
- extends Object
Abstract OSGi Asset class with BundleContext Handling
- Author:
- dpishchukhin
- See Also:
AssertionError,
BundleContext
|
Method Summary |
static org.osgi.framework.BundleContext |
getBundleContext()
Asserts BundleContext before return. |
static void |
setDefaultBundleContext(org.osgi.framework.BundleContext defaultBundleContext)
Set default BundleContext for OSGi assertions |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OSGiAssert
public OSGiAssert()
setDefaultBundleContext
public static void setDefaultBundleContext(org.osgi.framework.BundleContext defaultBundleContext)
- Set default BundleContext for OSGi assertions
- Parameters:
defaultBundleContext - BundleContext value- Since:
- 1.0
getBundleContext
public static org.osgi.framework.BundleContext getBundleContext()
- Asserts BundleContext before return.
- Returns:
- BundleContext
- Since:
- 1.0
Copyright © 2013 Know-How Lab. All Rights Reserved.