|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.knowhowlab.osgi.testing.assertions.OSGiAssert
org.knowhowlab.osgi.testing.assertions.FrameworkAssert
public class FrameworkAssert
A set of OSGi Framework specific assertion methods useful for writing tests.
Before use it could be initialized with default BundleContextOSGiAssert.setDefaultBundleContext(org.osgi.framework.BundleContext)
AssertionError,
OSGiAssert| Method Summary | |
|---|---|
static void |
assertFrameworkEvent(int eventTypeMask,
int bundleId,
long timeoutInMillis)
Asserts that FrameworkEvent for defined bundle will be fired within given timeoutInMillis. |
static void |
assertFrameworkEvent(int eventTypeMask,
int bundleId,
long timeout,
TimeUnit timeUnit)
Asserts that FrameworkEvent for defined bundle will be fired within given timeout. |
static void |
assertFrameworkEvent(int eventTypeMask,
String symbolicName,
long timeoutInMillis)
Asserts that FrameworkEvent for defined bundle will be fired within given timeoutInMillis. |
static void |
assertFrameworkEvent(int eventTypeMask,
String symbolicName,
long timeout,
TimeUnit timeUnit)
Asserts that FrameworkEvent for defined bundle will be fired within given timeout. |
static void |
assertFrameworkEvent(int eventTypeMask,
String symbolicName,
org.osgi.framework.Version version,
long timeoutInMillis)
Asserts that FrameworkEvent for defined bundle will be fired within given timeoutInMillis. |
static void |
assertFrameworkEvent(int eventTypeMask,
String symbolicName,
org.osgi.framework.Version version,
long timeout,
TimeUnit timeUnit)
Asserts that FrameworkEvent for defined bundle will be fired within given timeout. |
static void |
assertFrameworkEvent(String message,
int eventTypeMask,
int bundleId,
long timeoutInMillis)
Asserts that FrameworkEvent for defined bundle will be fired within given timeoutInMillis. |
static void |
assertFrameworkEvent(String message,
int eventTypeMask,
int bundleId,
long timeout,
TimeUnit timeUnit)
Asserts that FrameworkEvent for defined bundle will be fired within given timeout. |
static void |
assertFrameworkEvent(String message,
int eventTypeMask,
String symbolicName,
long timeoutInMillis)
Asserts that FrameworkEvent for defined bundle will be fired within given timeoutInMillis. |
static void |
assertFrameworkEvent(String message,
int eventTypeMask,
String symbolicName,
long timeout,
TimeUnit timeUnit)
Asserts that FrameworkEvent for defined bundle will be fired within given timeout. |
static void |
assertFrameworkEvent(String message,
int eventTypeMask,
String symbolicName,
org.osgi.framework.Version version,
long timeoutInMillis)
Asserts that FrameworkEvent for defined bundle will be fired within given timeoutInMillis. |
static void |
assertFrameworkEvent(String message,
int eventTypeMask,
String symbolicName,
org.osgi.framework.Version version,
long timeout,
TimeUnit timeUnit)
Asserts that FrameworkEvent for defined bundle will be fired within given timeout. |
| Methods inherited from class org.knowhowlab.osgi.testing.assertions.OSGiAssert |
|---|
getBundleContext, setDefaultBundleContext |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void assertFrameworkEvent(int eventTypeMask,
int bundleId,
long timeoutInMillis)
AssertionError is thrown
eventTypeMask - FrameworkEvent type maskbundleId - bundle idtimeoutInMillis - time interval in millis to wait. If zero, the method will wait indefinitely.
public static void assertFrameworkEvent(String message,
int eventTypeMask,
int bundleId,
long timeoutInMillis)
AssertionError is thrown with the given message
message - messageeventTypeMask - FrameworkEvent type maskbundleId - bundle idtimeoutInMillis - time interval in millis to wait. If zero, the method will wait indefinitely.
public static void assertFrameworkEvent(int eventTypeMask,
int bundleId,
long timeout,
TimeUnit timeUnit)
AssertionError is thrown
eventTypeMask - FrameworkEvent type maskbundleId - bundle idtimeout - time interval to wait. If zero, the method will wait indefinitely.timeUnit - time unit for the time interval
public static void assertFrameworkEvent(String message,
int eventTypeMask,
int bundleId,
long timeout,
TimeUnit timeUnit)
AssertionError is thrown with the given message
message - messageeventTypeMask - FrameworkEvent type maskbundleId - bundle idtimeout - time interval to wait. If zero, the method will wait indefinitely.timeUnit - time unit for the time interval
public static void assertFrameworkEvent(int eventTypeMask,
String symbolicName,
long timeoutInMillis)
AssertionError is thrown
eventTypeMask - FrameworkEvent type masksymbolicName - symbolicNametimeoutInMillis - time interval in millis to wait. If zero, the method will wait indefinitely.
public static void assertFrameworkEvent(String message,
int eventTypeMask,
String symbolicName,
long timeoutInMillis)
AssertionError is thrown with the given message
message - messageeventTypeMask - FrameworkEvent type masksymbolicName - symbolicNametimeoutInMillis - time interval in millis to wait. If zero, the method will wait indefinitely.
public static void assertFrameworkEvent(int eventTypeMask,
String symbolicName,
long timeout,
TimeUnit timeUnit)
AssertionError is thrown
eventTypeMask - FrameworkEvent type masksymbolicName - symbolicNametimeout - time interval to wait. If zero, the method will wait indefinitely.timeUnit - time unit for the time interval
public static void assertFrameworkEvent(String message,
int eventTypeMask,
String symbolicName,
long timeout,
TimeUnit timeUnit)
AssertionError is thrown with the given message
message - messageeventTypeMask - FrameworkEvent type masksymbolicName - symbolicNametimeout - time interval to wait. If zero, the method will wait indefinitely.timeUnit - time unit for the time interval
public static void assertFrameworkEvent(int eventTypeMask,
String symbolicName,
org.osgi.framework.Version version,
long timeoutInMillis)
AssertionError is thrown
eventTypeMask - FrameworkEvent type masksymbolicName - symbolicNameversion - versiontimeoutInMillis - time interval in millis to wait. If zero, the method will wait indefinitely.
public static void assertFrameworkEvent(String message,
int eventTypeMask,
String symbolicName,
org.osgi.framework.Version version,
long timeoutInMillis)
AssertionError is thrown with the given message
message - messageeventTypeMask - FrameworkEvent type masksymbolicName - symbolicNameversion - versiontimeoutInMillis - time interval in millis to wait. If zero, the method will wait indefinitely.
public static void assertFrameworkEvent(int eventTypeMask,
String symbolicName,
org.osgi.framework.Version version,
long timeout,
TimeUnit timeUnit)
AssertionError is thrown
eventTypeMask - FrameworkEvent type masksymbolicName - symbolicNameversion - versiontimeout - time interval to wait. If zero, the method will wait indefinitely.timeUnit - time unit for the time interval
public static void assertFrameworkEvent(String message,
int eventTypeMask,
String symbolicName,
org.osgi.framework.Version version,
long timeout,
TimeUnit timeUnit)
AssertionError is thrown with the given message
message - messageeventTypeMask - FrameworkEvent type masksymbolicName - symbolicNameversion - versiontimeout - time interval to wait. If zero, the method will wait indefinitely.timeUnit - time unit for the time interval
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||