org.knowhowlab.osgi.testing.assertions
Class OSGiAssert

java.lang.Object
  extended by 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

Constructor Summary
OSGiAssert()
           
 
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
 

Constructor Detail

OSGiAssert

public OSGiAssert()
Method Detail

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.