org.knowhowlab.osgi.testing.assertions
Class ServiceAssert

java.lang.Object
  extended by org.knowhowlab.osgi.testing.assertions.OSGiAssert
      extended by org.knowhowlab.osgi.testing.assertions.ServiceAssert

public class ServiceAssert
extends OSGiAssert

A set of OSGi services specific assertion methods useful for writing tests.

Before use it could be initialized with default BundleContext OSGiAssert.setDefaultBundleContext(org.osgi.framework.BundleContext)

Author:
dmytro.pishchukhin
See Also:
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 timeoutInMillis)
          Asserts that service with class is available in OSGi registry within given timeoutInMillis.
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 timeoutInMillis)
          Asserts that service with filter is available in OSGi registry within given timeoutInMillis.
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 timeoutInMillis)
          Asserts that service with class is available in OSGi registry within given timeoutInMillis.
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 timeoutInMillis)
          Asserts that service with filter is available in OSGi registry within given timeoutInMillis.
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 timeoutInMillis)
          Asserts that service with class name is available in OSGi registry within given timeoutInMillis.
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 timeoutInMillis)
          Asserts that service with class name is available in OSGi registry within given timeoutInMillis.
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 assertServiceEvent(int eventTypeMask, Class clazz, boolean all, long timeoutInMillis)
          Asserts that ServiceEvent with class filter will be fired within given timeoutInMillis.
static void assertServiceEvent(int eventTypeMask, Class clazz, boolean all, long timeout, TimeUnit timeUnit)
          Asserts that ServiceEvent with class filter will be fired within given timeout.
static void assertServiceEvent(int eventTypeMask, Class clazz, long timeoutInMillis)
          Asserts that ServiceEvent with class filter will be fired within given timeoutInMillis.
static void assertServiceEvent(int eventTypeMask, Class clazz, long timeout, TimeUnit timeUnit)
          Asserts that ServiceEvent with class filter will be fired within given timeout.
static void assertServiceEvent(int eventTypeMask, org.osgi.framework.Filter filter, boolean all, long timeoutInMillis)
          Asserts that ServiceEvent with filter will be fired within given timeoutInMillis.
static void assertServiceEvent(int eventTypeMask, org.osgi.framework.Filter filter, boolean all, long timeout, TimeUnit timeUnit)
          Asserts that ServiceEvent with filter will be fired within given timeout.
static void assertServiceEvent(int eventTypeMask, org.osgi.framework.Filter filter, long timeoutInMillis)
          Asserts that ServiceEvent with filter will be fired within given timeoutInMillis.
static void assertServiceEvent(int eventTypeMask, org.osgi.framework.Filter filter, long timeout, TimeUnit timeUnit)
          Asserts that ServiceEvent with filter will be fired within given timeout.
static void assertServiceEvent(int eventTypeMask, String className, boolean all, long timeoutInMillis)
          Asserts that ServiceEvent with class name filter will be fired within given timeoutInMillis.
static void assertServiceEvent(int eventTypeMask, String className, boolean all, long timeout, TimeUnit timeUnit)
          Asserts that ServiceEvent with class name filter will be fired within given timeout.
static void assertServiceEvent(int eventTypeMask, String className, long timeoutInMillis)
          Asserts that ServiceEvent with class name filter will be fired within given timeoutInMillis.
static void assertServiceEvent(int eventTypeMask, String className, long timeout, TimeUnit timeUnit)
          Asserts that ServiceEvent with class name filter will be fired within given timeout.
static void assertServiceEvent(String message, int eventTypeMask, Class clazz, boolean all, long timeoutInMillis)
          Asserts that ServiceEvent with class filter will be fired within given timeoutInMillis.
static void assertServiceEvent(String message, int eventTypeMask, Class clazz, boolean all, long timeout, TimeUnit timeUnit)
          Asserts that ServiceEvent with class filter will be fired within given timeout.
static void assertServiceEvent(String message, int eventTypeMask, Class clazz, long timeoutInMillis)
          Asserts that ServiceEvent with class filter will be fired within given timeoutInMillis.
static void assertServiceEvent(String message, int eventTypeMask, Class clazz, long timeout, TimeUnit timeUnit)
          Asserts that ServiceEvent with class filter will be fired within given timeout.
static void assertServiceEvent(String message, int eventTypeMask, org.osgi.framework.Filter filter, boolean all, long timeoutInMillis)
          Asserts that ServiceEvent with filter will be fired within given timeoutInMillis.
static void assertServiceEvent(String message, int eventTypeMask, org.osgi.framework.Filter filter, boolean all, long timeout, TimeUnit timeUnit)
          Asserts that ServiceEvent with filter will be fired within given timeout.
static void assertServiceEvent(String message, int eventTypeMask, org.osgi.framework.Filter filter, long timeoutInMillis)
          Asserts that ServiceEvent with filter will be fired within given timeoutInMillis.
static void assertServiceEvent(String message, int eventTypeMask, org.osgi.framework.Filter filter, long timeout, TimeUnit timeUnit)
          Asserts that ServiceEvent with filter will be fired within given timeout.
static void assertServiceEvent(String message, int eventTypeMask, String className, boolean all, long timeoutInMillis)
          Asserts that ServiceEvent with class name filter will be fired within given timeoutInMillis.
static void assertServiceEvent(String message, int eventTypeMask, String className, boolean all, long timeout, TimeUnit timeUnit)
          Asserts that ServiceEvent with class name filter will be fired within given timeout.
static void assertServiceEvent(String message, int eventTypeMask, String className, long timeoutInMillis)
          Asserts that ServiceEvent with class name filter will be fired within given timeoutInMillis.
static void assertServiceEvent(String message, int eventTypeMask, String className, long timeout, TimeUnit timeUnit)
          Asserts that ServiceEvent with class name filter will be fired within given timeout.
static void assertServiceUnavailable(Class clazz)
          Asserts that service with class is unavailable in OSGi registry.
static void assertServiceUnavailable(Class clazz, long timeoutInMillis)
          Asserts that service with class is unavailable in OSGi registry within given timeoutInMillis.
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 timeoutInMillis)
          Asserts that service with filter is unavailable in OSGi registry within given timeoutInMillis.
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 timeoutInMillis)
          Asserts that service with class is unavailable in OSGi registry within given timeoutInMillis.
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 timeoutInMillis)
          Asserts that service with filter is unavailable in OSGi registry within given timeoutInMillis.
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 timeoutInMillis)
          Asserts that service with class name is unavailable in OSGi registry within given timeoutInMillis.
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 timeoutInMillis)
          Asserts that service with class name is unavailable in OSGi registry within given timeoutInMillis.
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, setDefaultBundleContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

assertServiceAvailable

public static void assertServiceAvailable(Class clazz)
Asserts that service with class is available in OSGi registry. If it not as expected AssertionError without a message is thrown

Parameters:
clazz - service class
Since:
1.0

assertServiceAvailable

public static void assertServiceAvailable(String message,
                                          Class clazz)
Asserts that service with class is available in OSGi registry. If it not as expected AssertionError is thrown with the given message

Parameters:
message - message
clazz - service class
Since:
1.0

assertServiceAvailable

public static void assertServiceAvailable(Class clazz,
                                          long timeoutInMillis)
Asserts that service with class is available in OSGi registry within given timeoutInMillis. If it not as expected AssertionError without a message is thrown

Parameters:
clazz - service class
timeoutInMillis - time interval in milliseconds to wait. If zero, the method will wait indefinitely.
Since:
1.0

assertServiceAvailable

public static void assertServiceAvailable(String message,
                                          Class clazz,
                                          long timeoutInMillis)
Asserts that service with class is available in OSGi registry within given timeoutInMillis. If it not as expected AssertionError is thrown with the given message

Parameters:
message - message
clazz - service class
timeoutInMillis - time interval in milliseconds to wait. If zero, the method will wait indefinitely.
Since:
1.0

assertServiceAvailable

public static void assertServiceAvailable(Class clazz,
                                          long timeout,
                                          TimeUnit timeUnit)
Asserts that service with class is available in OSGi registry within given timeout. If it not as expected AssertionError without a message is thrown

Parameters:
clazz - service class
timeout - time interval in milliseconds to wait. If zero, the method will wait indefinitely.
timeUnit - timeout time unit
Since:
1.0

assertServiceAvailable

public static void assertServiceAvailable(String message,
                                          Class clazz,
                                          long timeout,
                                          TimeUnit timeUnit)
Asserts that service with class is available in OSGi registry within given timeout. If it not as expected AssertionError is thrown with the given message

Parameters:
message - message
clazz - service class
timeout - time interval in milliseconds to wait. If zero, the method will wait indefinitely.
timeUnit - timeout time unit
Since:
1.0

assertServiceAvailable

public static void assertServiceAvailable(String className)
Asserts that service with class name is available in OSGi registry. If it not as expected AssertionError without a message is thrown

Parameters:
className - service class name
Since:
1.0

assertServiceAvailable

public static void assertServiceAvailable(String message,
                                          String className)
Asserts that service with class name is available in OSGi registry. If it not as expected AssertionError is thrown with the given message

Parameters:
message - message
className - service class name
Since:
1.0

assertServiceAvailable

public static void assertServiceAvailable(String className,
                                          long timeoutInMillis)
Asserts that service with class name is available in OSGi registry within given timeoutInMillis. If it not as expected AssertionError without a message is thrown

Parameters:
className - service class name
timeoutInMillis - time interval in milliseconds to wait. If zero, the method will wait indefinitely.
Since:
1.0

assertServiceAvailable

public static void assertServiceAvailable(String message,
                                          String className,
                                          long timeoutInMillis)
Asserts that service with class name is available in OSGi registry within given timeoutInMillis. If it not as expected AssertionError is thrown with the given message

Parameters:
message - message
className - service class name
timeoutInMillis - time interval in milliseconds to wait. If zero, the method will wait indefinitely.
Since:
1.0

assertServiceAvailable

public static void assertServiceAvailable(String className,
                                          long timeout,
                                          TimeUnit timeUnit)
Asserts that service with class name is available in OSGi registry within given timeout. If it not as expected AssertionError without a message is thrown

Parameters:
className - service class name
timeout - time interval in milliseconds to wait. If zero, the method will wait indefinitely.
timeUnit - timeout time unit
Since:
1.0

assertServiceAvailable

public 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. If it not as expected AssertionError is thrown with the given message

Parameters:
message - message
className - service class name
timeout - time interval in milliseconds to wait. If zero, the method will wait indefinitely.
timeUnit - timeout time unit
Since:
1.0

assertServiceAvailable

public static void assertServiceAvailable(org.osgi.framework.Filter filter)
Asserts that service with filter is available in OSGi registry. If it not as expected AssertionError without a message is thrown

Parameters:
filter - service filter
Since:
1.0

assertServiceAvailable

public static void assertServiceAvailable(String message,
                                          org.osgi.framework.Filter filter)
Asserts that service with filter is available in OSGi registry. If it not as expected AssertionError is thrown with the given message

Parameters:
message - message
filter - service filter
Since:
1.0

assertServiceAvailable

public static void assertServiceAvailable(org.osgi.framework.Filter filter,
                                          long timeoutInMillis)
Asserts that service with filter is available in OSGi registry within given timeoutInMillis. If it not as expected AssertionError without a message is thrown

Parameters:
filter - service filter
timeoutInMillis - time interval in milliseconds to wait. If zero, the method will wait indefinitely.
Since:
1.0

assertServiceAvailable

public static void assertServiceAvailable(String message,
                                          org.osgi.framework.Filter filter,
                                          long timeoutInMillis)
Asserts that service with filter is available in OSGi registry within given timeoutInMillis. If it not as expected AssertionError is thrown with the given message

Parameters:
message - message
filter - service filter
timeoutInMillis - time interval in milliseconds to wait. If zero, the method will wait indefinitely.
Since:
1.0

assertServiceAvailable

public 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. If it not as expected AssertionError without a message is thrown

Parameters:
filter - service filter
timeout - time interval in milliseconds to wait. If zero, the method will wait indefinitely.
timeUnit - timeout time unit
Since:
1.0

assertServiceAvailable

public 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. If it not as expected AssertionError is thrown with the given message

Parameters:
message - message
filter - service filter
timeout - time interval in milliseconds to wait. If zero, the method will wait indefinitely.
timeUnit - timeout time unit
Since:
1.0

assertServiceUnavailable

public static void assertServiceUnavailable(Class clazz)
Asserts that service with class is unavailable in OSGi registry. If it not as expected AssertionError without a message is thrown

Parameters:
clazz - service class
Since:
1.0

assertServiceUnavailable

public static void assertServiceUnavailable(String message,
                                            Class clazz)
Asserts that service with class is unavailable in OSGi registry. If it not as expected AssertionError is thrown with the given message

Parameters:
message - message
clazz - service class
Since:
1.0

assertServiceUnavailable

public static void assertServiceUnavailable(Class clazz,
                                            long timeoutInMillis)
Asserts that service with class is unavailable in OSGi registry within given timeoutInMillis. If it not as expected AssertionError without a message is thrown

Parameters:
clazz - service class
timeoutInMillis - time interval in milliseconds to wait. If zero, the method will wait indefinitely.
Since:
1.0

assertServiceUnavailable

public static void assertServiceUnavailable(String message,
                                            Class clazz,
                                            long timeoutInMillis)
Asserts that service with class is unavailable in OSGi registry within given timeoutInMillis. If it not as expected AssertionError is thrown with the given message

Parameters:
message - message
clazz - service class
timeoutInMillis - time interval in milliseconds to wait. If zero, the method will wait indefinitely.
Since:
1.0

assertServiceUnavailable

public static void assertServiceUnavailable(Class clazz,
                                            long timeout,
                                            TimeUnit timeUnit)
Asserts that service with class is unavailable in OSGi registry within given timeout. If it not as expected AssertionError without a message is thrown

Parameters:
clazz - service class
timeout - time interval in milliseconds to wait. If zero, the method will wait indefinitely.
timeUnit - timeout time unit
Since:
1.0

assertServiceUnavailable

public static void assertServiceUnavailable(String message,
                                            Class clazz,
                                            long timeout,
                                            TimeUnit timeUnit)
Asserts that service with class is unavailable in OSGi registry within given timeout. If it not as expected AssertionError is thrown with the given message

Parameters:
message - message
clazz - service class
timeout - time interval in milliseconds to wait. If zero, the method will wait indefinitely.
timeUnit - timeout time unit
Since:
1.0

assertServiceUnavailable

public static void assertServiceUnavailable(String className)
Asserts that service with class name is unavailable in OSGi registry. If it not as expected AssertionError without a message is thrown

Parameters:
className - service class name
Since:
1.0

assertServiceUnavailable

public static void assertServiceUnavailable(String message,
                                            String className)
Asserts that service with class name is unavailable in OSGi registry. If it not as expected AssertionError is thrown with the given message

Parameters:
message - message
className - service class name
Since:
1.0

assertServiceUnavailable

public static void assertServiceUnavailable(String className,
                                            long timeoutInMillis)
Asserts that service with class name is unavailable in OSGi registry within given timeoutInMillis. If it not as expected AssertionError without a message is thrown

Parameters:
className - service class name
timeoutInMillis - time interval in milliseconds to wait. If zero, the method will wait indefinitely.
Since:
1.0

assertServiceUnavailable

public static void assertServiceUnavailable(String message,
                                            String className,
                                            long timeoutInMillis)
Asserts that service with class name is unavailable in OSGi registry within given timeoutInMillis. If it not as expected AssertionError is thrown with the given message

Parameters:
message - message
className - service class name
timeoutInMillis - time interval in milliseconds to wait. If zero, the method will wait indefinitely.
Since:
1.0

assertServiceUnavailable

public static void assertServiceUnavailable(String className,
                                            long timeout,
                                            TimeUnit timeUnit)
Asserts that service with class name is unavailable in OSGi registry within given timeout. If it not as expected AssertionError without a message is thrown

Parameters:
className - service class name
timeout - time interval in milliseconds to wait. If zero, the method will wait indefinitely.
timeUnit - timeout time unit
Since:
1.0

assertServiceUnavailable

public 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. If it not as expected AssertionError is thrown with the given message

Parameters:
message - message
className - service class name
timeout - time interval in milliseconds to wait. If zero, the method will wait indefinitely.
timeUnit - timeout time unit
Since:
1.0

assertServiceUnavailable

public static void assertServiceUnavailable(org.osgi.framework.Filter filter)
Asserts that service with filter is unavailable in OSGi registry. If it not as expected AssertionError without a message is thrown

Parameters:
filter - service filter
Since:
1.0

assertServiceUnavailable

public static void assertServiceUnavailable(String message,
                                            org.osgi.framework.Filter filter)
Asserts that service with filter is unavailable in OSGi registry. If it not as expected AssertionError is thrown with the given message

Parameters:
message - message
filter - service filter
Since:
1.0

assertServiceUnavailable

public static void assertServiceUnavailable(org.osgi.framework.Filter filter,
                                            long timeoutInMillis)
Asserts that service with filter is unavailable in OSGi registry within given timeoutInMillis. If it not as expected AssertionError without a message is thrown

Parameters:
filter - service filter
timeoutInMillis - time interval in milliseconds to wait. If zero, the method will wait indefinitely.
Since:
1.0

assertServiceUnavailable

public static void assertServiceUnavailable(String message,
                                            org.osgi.framework.Filter filter,
                                            long timeoutInMillis)
Asserts that service with filter is unavailable in OSGi registry within given timeoutInMillis. If it not as expected AssertionError is thrown with the given message

Parameters:
message - message
filter - service filter
timeoutInMillis - time interval in milliseconds to wait. If zero, the method will wait indefinitely.
Since:
1.0

assertServiceUnavailable

public 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. If it not as expected AssertionError without a message is thrown

Parameters:
filter - service filter
timeout - time interval in milliseconds to wait. If zero, the method will wait indefinitely.
timeUnit - timeout time unit
Since:
1.0

assertServiceUnavailable

public 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. If it not as expected AssertionError is thrown with the given message

Parameters:
message - message
filter - service filter
timeout - time interval in milliseconds to wait. If zero, the method will wait indefinitely.
timeUnit - timeout time unit
Since:
1.0

assertServiceEvent

public static void assertServiceEvent(int eventTypeMask,
                                      org.osgi.framework.Filter filter,
                                      long timeoutInMillis)
Asserts that ServiceEvent with filter will be fired within given timeoutInMillis. If it not as expected AssertionError is thrown

Parameters:
eventTypeMask - ServiceEvent type mask
filter - service filter
timeoutInMillis - time interval in millis to wait. If zero, the method will wait indefinitely.
Since:
1.1

assertServiceEvent

public static void assertServiceEvent(String message,
                                      int eventTypeMask,
                                      org.osgi.framework.Filter filter,
                                      long timeoutInMillis)
Asserts that ServiceEvent with filter will be fired within given timeoutInMillis. If it not as expected AssertionError is thrown with the given message

Parameters:
message - message
eventTypeMask - ServiceEvent type mask
filter - service filter
timeoutInMillis - time interval in millis to wait. If zero, the method will wait indefinitely.
Since:
1.1

assertServiceEvent

public static void assertServiceEvent(int eventTypeMask,
                                      org.osgi.framework.Filter filter,
                                      long timeout,
                                      TimeUnit timeUnit)
Asserts that ServiceEvent with filter will be fired within given timeout. If it not as expected AssertionError is thrown

Parameters:
eventTypeMask - ServiceEvent type mask
filter - service filter
timeout - time interval to wait. If zero, the method will wait indefinitely.
timeUnit - time unit for the time interval
Since:
1.1

assertServiceEvent

public static void assertServiceEvent(String message,
                                      int eventTypeMask,
                                      org.osgi.framework.Filter filter,
                                      long timeout,
                                      TimeUnit timeUnit)
Asserts that ServiceEvent with filter will be fired within given timeout. If it not as expected AssertionError is thrown with the given message

Parameters:
message - message
eventTypeMask - ServiceEvent type mask
filter - service filter
timeout - time interval to wait. If zero, the method will wait indefinitely.
timeUnit - time unit for the time interval
Since:
1.1

assertServiceEvent

public static void assertServiceEvent(int eventTypeMask,
                                      org.osgi.framework.Filter filter,
                                      boolean all,
                                      long timeoutInMillis)
Asserts that ServiceEvent with filter will be fired within given timeoutInMillis. If it not as expected AssertionError is thrown

Parameters:
eventTypeMask - ServiceEvent type mask
filter - service filter
all - use AllServiceListener
timeoutInMillis - time interval in millis to wait. If zero, the method will wait indefinitely.
Since:
1.1

assertServiceEvent

public static void assertServiceEvent(String message,
                                      int eventTypeMask,
                                      org.osgi.framework.Filter filter,
                                      boolean all,
                                      long timeoutInMillis)
Asserts that ServiceEvent with filter will be fired within given timeoutInMillis. If it not as expected AssertionError is thrown with the given message

Parameters:
message - message
eventTypeMask - ServiceEvent type mask
filter - service filter
all - use AllServiceListener
timeoutInMillis - time interval in millis to wait. If zero, the method will wait indefinitely.
Since:
1.1

assertServiceEvent

public static void assertServiceEvent(int eventTypeMask,
                                      org.osgi.framework.Filter filter,
                                      boolean all,
                                      long timeout,
                                      TimeUnit timeUnit)
Asserts that ServiceEvent with filter will be fired within given timeout. If it not as expected AssertionError is thrown

Parameters:
eventTypeMask - ServiceEvent type mask
filter - service filter
all - use AllServiceListener
timeout - time interval to wait. If zero, the method will wait indefinitely.
timeUnit - time unit for the time interval
Since:
1.1

assertServiceEvent

public static void assertServiceEvent(String message,
                                      int eventTypeMask,
                                      org.osgi.framework.Filter filter,
                                      boolean all,
                                      long timeout,
                                      TimeUnit timeUnit)
Asserts that ServiceEvent with filter will be fired within given timeout. If it not as expected AssertionError is thrown with the given message

Parameters:
message - message
eventTypeMask - ServiceEvent type mask
filter - service filter
all - use AllServiceListener
timeout - time interval to wait. If zero, the method will wait indefinitely.
timeUnit - time unit for the time interval
Since:
1.1

assertServiceEvent

public static void assertServiceEvent(int eventTypeMask,
                                      String className,
                                      long timeoutInMillis)
Asserts that ServiceEvent with class name filter will be fired within given timeoutInMillis. If it not as expected AssertionError is thrown

Parameters:
eventTypeMask - ServiceEvent type mask
className - service class name
timeoutInMillis - time interval in millis to wait. If zero, the method will wait indefinitely.
Since:
1.1

assertServiceEvent

public static void assertServiceEvent(String message,
                                      int eventTypeMask,
                                      String className,
                                      long timeoutInMillis)
Asserts that ServiceEvent with class name filter will be fired within given timeoutInMillis. If it not as expected AssertionError is thrown with the given message

Parameters:
message - message
eventTypeMask - ServiceEvent type mask
className - service class name
timeoutInMillis - time interval in millis to wait. If zero, the method will wait indefinitely.
Since:
1.1

assertServiceEvent

public static void assertServiceEvent(int eventTypeMask,
                                      String className,
                                      long timeout,
                                      TimeUnit timeUnit)
Asserts that ServiceEvent with class name filter will be fired within given timeout. If it not as expected AssertionError is thrown

Parameters:
eventTypeMask - ServiceEvent type mask
className - service class name
timeout - time interval to wait. If zero, the method will wait indefinitely.
timeUnit - time unit for the time interval
Since:
1.1

assertServiceEvent

public static void assertServiceEvent(String message,
                                      int eventTypeMask,
                                      String className,
                                      long timeout,
                                      TimeUnit timeUnit)
Asserts that ServiceEvent with class name filter will be fired within given timeout. If it not as expected AssertionError is thrown with the given message

Parameters:
message - message
eventTypeMask - ServiceEvent type mask
className - service class name
timeout - time interval to wait. If zero, the method will wait indefinitely.
timeUnit - time unit for the time interval
Since:
1.1

assertServiceEvent

public static void assertServiceEvent(int eventTypeMask,
                                      String className,
                                      boolean all,
                                      long timeoutInMillis)
Asserts that ServiceEvent with class name filter will be fired within given timeoutInMillis. If it not as expected AssertionError is thrown

Parameters:
eventTypeMask - ServiceEvent type mask
className - service class name
all - use AllServiceListener
timeoutInMillis - time interval in millis to wait. If zero, the method will wait indefinitely.
Since:
1.1

assertServiceEvent

public static void assertServiceEvent(String message,
                                      int eventTypeMask,
                                      String className,
                                      boolean all,
                                      long timeoutInMillis)
Asserts that ServiceEvent with class name filter will be fired within given timeoutInMillis. If it not as expected AssertionError is thrown with the given message

Parameters:
message - message
eventTypeMask - ServiceEvent type mask
className - service class name
all - use AllServiceListener
timeoutInMillis - time interval in millis to wait. If zero, the method will wait indefinitely.
Since:
1.1

assertServiceEvent

public static void assertServiceEvent(int eventTypeMask,
                                      String className,
                                      boolean all,
                                      long timeout,
                                      TimeUnit timeUnit)
Asserts that ServiceEvent with class name filter will be fired within given timeout. If it not as expected AssertionError is thrown

Parameters:
eventTypeMask - ServiceEvent type mask
className - service class name
all - use AllServiceListener
timeout - time interval to wait. If zero, the method will wait indefinitely.
timeUnit - time unit for the time interval
Since:
1.1

assertServiceEvent

public static void assertServiceEvent(String message,
                                      int eventTypeMask,
                                      String className,
                                      boolean all,
                                      long timeout,
                                      TimeUnit timeUnit)
Asserts that ServiceEvent with class name filter will be fired within given timeout. If it not as expected AssertionError is thrown with the given message

Parameters:
message - message
eventTypeMask - ServiceEvent type mask
className - service class name
all - use AllServiceListener
timeout - time interval to wait. If zero, the method will wait indefinitely.
timeUnit - time unit for the time interval
Since:
1.1

assertServiceEvent

public static void assertServiceEvent(int eventTypeMask,
                                      Class clazz,
                                      long timeoutInMillis)
Asserts that ServiceEvent with class filter will be fired within given timeoutInMillis. If it not as expected AssertionError is thrown

Parameters:
eventTypeMask - ServiceEvent type mask
clazz - service class
timeoutInMillis - time interval in millis to wait. If zero, the method will wait indefinitely.
Since:
1.1

assertServiceEvent

public static void assertServiceEvent(String message,
                                      int eventTypeMask,
                                      Class clazz,
                                      long timeoutInMillis)
Asserts that ServiceEvent with class filter will be fired within given timeoutInMillis. If it not as expected AssertionError is thrown with the given message

Parameters:
message - message
eventTypeMask - ServiceEvent type mask
clazz - service class
timeoutInMillis - time interval in millis to wait. If zero, the method will wait indefinitely.
Since:
1.1

assertServiceEvent

public static void assertServiceEvent(int eventTypeMask,
                                      Class clazz,
                                      long timeout,
                                      TimeUnit timeUnit)
Asserts that ServiceEvent with class filter will be fired within given timeout. If it not as expected AssertionError is thrown

Parameters:
eventTypeMask - ServiceEvent type mask
clazz - service class
timeout - time interval to wait. If zero, the method will wait indefinitely.
timeUnit - time unit for the time interval
Since:
1.1

assertServiceEvent

public static void assertServiceEvent(String message,
                                      int eventTypeMask,
                                      Class clazz,
                                      long timeout,
                                      TimeUnit timeUnit)
Asserts that ServiceEvent with class filter will be fired within given timeout. If it not as expected AssertionError is thrown with the given message

Parameters:
message - message
eventTypeMask - ServiceEvent type mask
clazz - service class
timeout - time interval to wait. If zero, the method will wait indefinitely.
timeUnit - time unit for the time interval
Since:
1.1

assertServiceEvent

public static void assertServiceEvent(int eventTypeMask,
                                      Class clazz,
                                      boolean all,
                                      long timeoutInMillis)
Asserts that ServiceEvent with class filter will be fired within given timeoutInMillis. If it not as expected AssertionError is thrown

Parameters:
eventTypeMask - ServiceEvent type mask
clazz - service class
all - use AllServiceListener
timeoutInMillis - time interval in millis to wait. If zero, the method will wait indefinitely.
Since:
1.1

assertServiceEvent

public static void assertServiceEvent(String message,
                                      int eventTypeMask,
                                      Class clazz,
                                      boolean all,
                                      long timeoutInMillis)
Asserts that ServiceEvent with class filter will be fired within given timeoutInMillis. If it not as expected AssertionError is thrown with the given message

Parameters:
message - message
eventTypeMask - ServiceEvent type mask
clazz - service class
all - use AllServiceListener
timeoutInMillis - time interval in millis to wait. If zero, the method will wait indefinitely.
Since:
1.1

assertServiceEvent

public static void assertServiceEvent(int eventTypeMask,
                                      Class clazz,
                                      boolean all,
                                      long timeout,
                                      TimeUnit timeUnit)
Asserts that ServiceEvent with class filter will be fired within given timeout. If it not as expected AssertionError is thrown

Parameters:
eventTypeMask - ServiceEvent type mask
clazz - service class
all - use AllServiceListener
timeout - time interval to wait. If zero, the method will wait indefinitely.
timeUnit - time unit for the time interval
Since:
1.1

assertServiceEvent

public static void assertServiceEvent(String message,
                                      int eventTypeMask,
                                      Class clazz,
                                      boolean all,
                                      long timeout,
                                      TimeUnit timeUnit)
Asserts that ServiceEvent with class filter will be fired within given timeout. If it not as expected AssertionError is thrown with the given message

Parameters:
message - message
eventTypeMask - ServiceEvent type mask
clazz - service class
all - use AllServiceListener
timeout - time interval to wait. If zero, the method will wait indefinitely.
timeUnit - time unit for the time interval
Since:
1.1


Copyright © 2013 Know-How Lab. All Rights Reserved.