|
|||||||||
| 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.ServiceAssert
public class ServiceAssert
A set of OSGi services specific assertion methods useful for writing tests.
Before use it should be initializedOSGiAssert.init(org.osgi.framework.BundleContext)
AssertionError,
OSGiAssert| Method Summary | |
|---|---|
static void |
assertServiceAvailable(Class clazz)
Asserts that service with class is available in OSGi registry. |
static void |
assertServiceAvailable(Class clazz,
long timeout)
Asserts that service with class is available in OSGi registry within given timeout. |
static void |
assertServiceAvailable(Class clazz,
long timeout,
TimeUnit timeUnit)
Asserts that service with class is available in OSGi registry within given timeout. |
static void |
assertServiceAvailable(org.osgi.framework.Filter filter)
Asserts that service with filter is available in OSGi registry. |
static void |
assertServiceAvailable(org.osgi.framework.Filter filter,
long timeout)
Asserts that service with filter is available in OSGi registry within given timeout. |
static void |
assertServiceAvailable(org.osgi.framework.Filter filter,
long timeout,
TimeUnit timeUnit)
Asserts that service with filter is available in OSGi registry within given timeout. |
static void |
assertServiceAvailable(String className)
Asserts that service with class name is available in OSGi registry. |
static void |
assertServiceAvailable(String message,
Class clazz)
Asserts that service with class is available in OSGi registry. |
static void |
assertServiceAvailable(String message,
Class clazz,
long timeout)
Asserts that service with class is available in OSGi registry within given timeout. |
static void |
assertServiceAvailable(String message,
Class clazz,
long timeout,
TimeUnit timeUnit)
Asserts that service with class is available in OSGi registry within given timeout. |
static void |
assertServiceAvailable(String message,
org.osgi.framework.Filter filter)
Asserts that service with filter is available in OSGi registry. |
static void |
assertServiceAvailable(String message,
org.osgi.framework.Filter filter,
long timeout)
Asserts that service with filter is available in OSGi registry within given timeout. |
static void |
assertServiceAvailable(String message,
org.osgi.framework.Filter filter,
long timeout,
TimeUnit timeUnit)
Asserts that service with filter is available in OSGi registry within given timeout. |
static void |
assertServiceAvailable(String className,
long timeout)
Asserts that service with class name is available in OSGi registry within given timeout. |
static void |
assertServiceAvailable(String className,
long timeout,
TimeUnit timeUnit)
Asserts that service with class name is available in OSGi registry within given timeout. |
static void |
assertServiceAvailable(String message,
String className)
Asserts that service with class name is available in OSGi registry. |
static void |
assertServiceAvailable(String message,
String className,
long timeout)
Asserts that service with class name is available in OSGi registry within given timeout. |
static void |
assertServiceAvailable(String message,
String className,
long timeout,
TimeUnit timeUnit)
Asserts that service with class name is available in OSGi registry within given timeout. |
static void |
assertServiceUnavailable(Class clazz)
Asserts that service with class is unavailable in OSGi registry. |
static void |
assertServiceUnavailable(Class clazz,
long timeout)
Asserts that service with class is unavailable in OSGi registry within given timeout. |
static void |
assertServiceUnavailable(Class clazz,
long timeout,
TimeUnit timeUnit)
Asserts that service with class is unavailable in OSGi registry within given timeout. |
static void |
assertServiceUnavailable(org.osgi.framework.Filter filter)
Asserts that service with filter is unavailable in OSGi registry. |
static void |
assertServiceUnavailable(org.osgi.framework.Filter filter,
long timeout)
Asserts that service with filter is unavailable in OSGi registry within given timeout. |
static void |
assertServiceUnavailable(org.osgi.framework.Filter filter,
long timeout,
TimeUnit timeUnit)
Asserts that service with filter is unavailable in OSGi registry within given timeout. |
static void |
assertServiceUnavailable(String className)
Asserts that service with class name is unavailable in OSGi registry. |
static void |
assertServiceUnavailable(String message,
Class clazz)
Asserts that service with class is unavailable in OSGi registry. |
static void |
assertServiceUnavailable(String message,
Class clazz,
long timeout)
Asserts that service with class is unavailable in OSGi registry within given timeout. |
static void |
assertServiceUnavailable(String message,
Class clazz,
long timeout,
TimeUnit timeUnit)
Asserts that service with class is unavailable in OSGi registry within given timeout. |
static void |
assertServiceUnavailable(String message,
org.osgi.framework.Filter filter)
Asserts that service with filter is unavailable in OSGi registry. |
static void |
assertServiceUnavailable(String message,
org.osgi.framework.Filter filter,
long timeout)
Asserts that service with filter is unavailable in OSGi registry within given timeout. |
static void |
assertServiceUnavailable(String message,
org.osgi.framework.Filter filter,
long timeout,
TimeUnit timeUnit)
Asserts that service with filter is unavailable in OSGi registry within given timeout. |
static void |
assertServiceUnavailable(String className,
long timeout)
Asserts that service with class name is unavailable in OSGi registry within given timeout. |
static void |
assertServiceUnavailable(String className,
long timeout,
TimeUnit timeUnit)
Asserts that service with class name is unavailable in OSGi registry within given timeout. |
static void |
assertServiceUnavailable(String message,
String className)
Asserts that service with class name is unavailable in OSGi registry. |
static void |
assertServiceUnavailable(String message,
String className,
long timeout)
Asserts that service with class name is unavailable in OSGi registry within given timeout. |
static void |
assertServiceUnavailable(String message,
String className,
long timeout,
TimeUnit timeUnit)
Asserts that service with class name is unavailable in OSGi registry within given timeout. |
| Methods inherited from class org.knowhowlab.osgi.testing.assertions.OSGiAssert |
|---|
getBundleContext, init |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void assertServiceAvailable(Class clazz)
AssertionError without a message is thrown
clazz - service class
public static void assertServiceAvailable(String message,
Class clazz)
AssertionError is thrown with the given message
message - messageclazz - service class
public static void assertServiceAvailable(Class clazz,
long timeout)
AssertionError without a message is thrown
clazz - service classtimeout - time interval in milliseconds to wait. If zero, the method will wait indefinately.
public static void assertServiceAvailable(String message,
Class clazz,
long timeout)
AssertionError is thrown with the given message
message - messageclazz - service classtimeout - time interval in milliseconds to wait. If zero, the method will wait indefinately.
public static void assertServiceAvailable(Class clazz,
long timeout,
TimeUnit timeUnit)
AssertionError without a message is thrown
clazz - service classtimeout - time interval in milliseconds to wait. If zero, the method will wait indefinately.timeUnit - timeout time unit
public static void assertServiceAvailable(String message,
Class clazz,
long timeout,
TimeUnit timeUnit)
AssertionError is thrown with the given message
message - messageclazz - service classtimeout - time interval in milliseconds to wait. If zero, the method will wait indefinately.timeUnit - timeout time unitpublic static void assertServiceAvailable(String className)
AssertionError without a message is thrown
className - service class name
public static void assertServiceAvailable(String message,
String className)
AssertionError is thrown with the given message
message - messageclassName - service class name
public static void assertServiceAvailable(String className,
long timeout)
AssertionError without a message is thrown
className - service class nametimeout - time interval in milliseconds to wait. If zero, the method will wait indefinately.
public static void assertServiceAvailable(String message,
String className,
long timeout)
AssertionError is thrown with the given message
message - messageclassName - service class nametimeout - time interval in milliseconds to wait. If zero, the method will wait indefinately.
public static void assertServiceAvailable(String className,
long timeout,
TimeUnit timeUnit)
AssertionError without a message is thrown
className - service class nametimeout - time interval in milliseconds to wait. If zero, the method will wait indefinately.timeUnit - timeout time unit
public static void assertServiceAvailable(String message,
String className,
long timeout,
TimeUnit timeUnit)
AssertionError is thrown with the given message
message - messageclassName - service class nametimeout - time interval in milliseconds to wait. If zero, the method will wait indefinately.timeUnit - timeout time unitpublic static void assertServiceAvailable(org.osgi.framework.Filter filter)
AssertionError without a message is thrown
filter - service filter
public static void assertServiceAvailable(String message,
org.osgi.framework.Filter filter)
AssertionError is thrown with the given message
message - messagefilter - service filter
public static void assertServiceAvailable(org.osgi.framework.Filter filter,
long timeout)
AssertionError without a message is thrown
filter - service filtertimeout - time interval in milliseconds to wait. If zero, the method will wait indefinately.
public static void assertServiceAvailable(String message,
org.osgi.framework.Filter filter,
long timeout)
AssertionError is thrown with the given message
message - messagefilter - service filtertimeout - time interval in milliseconds to wait. If zero, the method will wait indefinately.
public static void assertServiceAvailable(org.osgi.framework.Filter filter,
long timeout,
TimeUnit timeUnit)
AssertionError without a message is thrown
filter - service filtertimeout - time interval in milliseconds to wait. If zero, the method will wait indefinately.timeUnit - timeout time unit
public static void assertServiceAvailable(String message,
org.osgi.framework.Filter filter,
long timeout,
TimeUnit timeUnit)
AssertionError is thrown with the given message
message - messagefilter - service filtertimeout - time interval in milliseconds to wait. If zero, the method will wait indefinately.timeUnit - timeout time unitpublic static void assertServiceUnavailable(Class clazz)
AssertionError without a message is thrown
clazz - service class
public static void assertServiceUnavailable(String message,
Class clazz)
AssertionError is thrown with the given message
message - messageclazz - service class
public static void assertServiceUnavailable(Class clazz,
long timeout)
AssertionError without a message is thrown
clazz - service classtimeout - time interval in milliseconds to wait. If zero, the method will wait indefinately.
public static void assertServiceUnavailable(String message,
Class clazz,
long timeout)
AssertionError is thrown with the given message
message - messageclazz - service classtimeout - time interval in milliseconds to wait. If zero, the method will wait indefinately.
public static void assertServiceUnavailable(Class clazz,
long timeout,
TimeUnit timeUnit)
AssertionError without a message is thrown
clazz - service classtimeout - time interval in milliseconds to wait. If zero, the method will wait indefinately.timeUnit - timeout time unit
public static void assertServiceUnavailable(String message,
Class clazz,
long timeout,
TimeUnit timeUnit)
AssertionError is thrown with the given message
message - messageclazz - service classtimeout - time interval in milliseconds to wait. If zero, the method will wait indefinately.timeUnit - timeout time unitpublic static void assertServiceUnavailable(String className)
AssertionError without a message is thrown
className - service class name
public static void assertServiceUnavailable(String message,
String className)
AssertionError is thrown with the given message
message - messageclassName - service class name
public static void assertServiceUnavailable(String className,
long timeout)
AssertionError without a message is thrown
className - service class nametimeout - time interval in milliseconds to wait. If zero, the method will wait indefinately.
public static void assertServiceUnavailable(String message,
String className,
long timeout)
AssertionError is thrown with the given message
message - messageclassName - service class nametimeout - time interval in milliseconds to wait. If zero, the method will wait indefinately.
public static void assertServiceUnavailable(String className,
long timeout,
TimeUnit timeUnit)
AssertionError without a message is thrown
className - service class nametimeout - time interval in milliseconds to wait. If zero, the method will wait indefinately.timeUnit - timeout time unit
public static void assertServiceUnavailable(String message,
String className,
long timeout,
TimeUnit timeUnit)
AssertionError is thrown with the given message
message - messageclassName - service class nametimeout - time interval in milliseconds to wait. If zero, the method will wait indefinately.timeUnit - timeout time unitpublic static void assertServiceUnavailable(org.osgi.framework.Filter filter)
AssertionError without a message is thrown
filter - service filter
public static void assertServiceUnavailable(String message,
org.osgi.framework.Filter filter)
AssertionError is thrown with the given message
message - messagefilter - service filter
public static void assertServiceUnavailable(org.osgi.framework.Filter filter,
long timeout)
AssertionError without a message is thrown
filter - service filtertimeout - time interval in milliseconds to wait. If zero, the method will wait indefinately.
public static void assertServiceUnavailable(String message,
org.osgi.framework.Filter filter,
long timeout)
AssertionError is thrown with the given message
message - messagefilter - service filtertimeout - time interval in milliseconds to wait. If zero, the method will wait indefinately.
public static void assertServiceUnavailable(org.osgi.framework.Filter filter,
long timeout,
TimeUnit timeUnit)
AssertionError without a message is thrown
filter - service filtertimeout - time interval in milliseconds to wait. If zero, the method will wait indefinately.timeUnit - timeout time unit
public static void assertServiceUnavailable(String message,
org.osgi.framework.Filter filter,
long timeout,
TimeUnit timeUnit)
AssertionError is thrown with the given message
message - messagefilter - service filtertimeout - time interval in milliseconds to wait. If zero, the method will wait indefinately.timeUnit - timeout time unit
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||