org.knowhowlab.osgi.testing.assertions
Class OSGiAssert
java.lang.Object
org.knowhowlab.osgi.testing.assertions.OSGiAssert
- Direct Known Subclasses:
- BundleAssert, FilterAssert, ServiceAssert
public abstract class OSGiAssert
- extends Object
Abstract OSGi Asset class with BundleContext Handling
- Version:
- 1.0
- Author:
- dpishchukhin
- See Also:
AssertionError,
BundleContext
|
Method Summary |
protected static org.osgi.framework.BundleContext |
getBundleContext()
Asserts BundleContext before return. |
static void |
init(org.osgi.framework.BundleContext bc)
Initialize all OSGi assertions with BundleContext value |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OSGiAssert
public OSGiAssert()
init
public static void init(org.osgi.framework.BundleContext bc)
- Initialize all OSGi assertions with BundleContext value
- Parameters:
bc - BundleContext value
- Throws:
IllegalStateException - utility class is already initialized
getBundleContext
protected static org.osgi.framework.BundleContext getBundleContext()
- Asserts BundleContext before return.
- Returns:
- BundleContext
Copyright © 2012 Know-How Lab. All Rights Reserved.