|
||||||||||
| 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.cmpn.ConfigurationAdminAssert
public class ConfigurationAdminAssert
A set of OSGi ConfigurationAdmin 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 |
assertConfigurationAvailable(org.osgi.framework.BundleContext bc,
org.osgi.framework.Filter filter)
Asserts that Configuration by filter is available for specific Bundle. |
static void |
assertConfigurationAvailable(org.osgi.framework.BundleContext bc,
String pid,
String factoryPid)
Asserts that Configuration with PID, FactoryPID is available for specific Bundle. |
static void |
assertConfigurationAvailable(org.osgi.framework.Filter filter)
Asserts that Configuration by filter is available. |
static void |
assertConfigurationAvailable(String message,
org.osgi.framework.BundleContext bc,
org.osgi.framework.Filter filter)
Asserts that Configuration by filter is available for specific Bundle. |
static void |
assertConfigurationAvailable(String message,
org.osgi.framework.BundleContext bc,
String pid,
String factoryPid)
Asserts that Configuration with PID, FactoryPID is available for specific Bundle. |
static void |
assertConfigurationAvailable(String message,
org.osgi.framework.Filter filter)
Asserts that Configuration by filter is available. |
static void |
assertConfigurationAvailable(String pid,
String factoryPid,
String location)
Asserts that Configuration with PID, FactoryPID and bundle location is available. |
static void |
assertConfigurationAvailable(String message,
String pid,
String factoryPid,
String location)
Asserts that Configuration with PID, FactoryPID and bundle location is available. |
static void |
assertConfigurationDeleted(String pid,
String factoryPid,
String location,
long timeoutInMillis)
Asserts that DELETE ConfigurationEvent with event filter will be fired within given timeoutInMillis. |
static void |
assertConfigurationDeleted(String pid,
String factoryPid,
String location,
long timeout,
TimeUnit timeUnit)
Asserts that DELETE ConfigurationEvent with event filter will be fired within given timeoutInMillis. |
static void |
assertConfigurationDeleted(String message,
String pid,
String factoryPid,
String location,
long timeoutInMillis)
Asserts that DELETE ConfigurationEvent with event filter will be fired within given timeoutInMillis. |
static void |
assertConfigurationDeleted(String message,
String pid,
String factoryPid,
String location,
long timeout,
TimeUnit timeUnit)
Asserts that DELETE ConfigurationEvent with event filter will be fired within given timeoutInMillis. |
static void |
assertConfigurationEvent(int eventTypeMask,
long timeoutInMillis)
Asserts that ConfigurationEvent with event type will be fired within given timeoutInMillis. |
static void |
assertConfigurationEvent(int eventTypeMask,
long timeout,
TimeUnit timeUnit)
Asserts that ConfigurationEvent with event type will be fired within given timeoutInMillis. |
static void |
assertConfigurationEvent(int eventTypeMask,
String pid,
String factoryPid,
String location,
long timeoutInMillis)
Asserts that ConfigurationEvent with event filter will be fired within given timeoutInMillis. |
static void |
assertConfigurationEvent(int eventTypeMask,
String pid,
String factoryPid,
String location,
long timeout,
TimeUnit timeUnit)
Asserts that ConfigurationEvent with event filter will be fired within given timeoutInMillis. |
static void |
assertConfigurationEvent(String message,
int eventTypeMask,
long timeoutInMillis)
Asserts that ConfigurationEvent with event type will be fired within given timeoutInMillis. |
static void |
assertConfigurationEvent(String message,
int eventTypeMask,
long timeout,
TimeUnit timeUnit)
Asserts that ConfigurationEvent with event type will be fired within given timeoutInMillis. |
static void |
assertConfigurationEvent(String message,
int eventTypeMask,
String pid,
String factoryPid,
String location,
long timeoutInMillis)
Asserts that ConfigurationEvent with event filter will be fired within given timeoutInMillis. |
static void |
assertConfigurationEvent(String message,
int eventTypeMask,
String pid,
String factoryPid,
String location,
long timeout,
TimeUnit timeUnit)
Asserts that ConfigurationEvent with event filter will be fired within given timeoutInMillis. |
static void |
assertConfigurationUnavailable(org.osgi.framework.BundleContext bc,
org.osgi.framework.Filter filter)
Asserts that Configuration by filter is unavailable for specific Bundle. |
static void |
assertConfigurationUnavailable(org.osgi.framework.BundleContext bc,
String pid,
String factoryPid)
Asserts that Configuration with PID, FactoryPID is unavailable for specific Bundle. |
static void |
assertConfigurationUnavailable(org.osgi.framework.Filter filter)
Asserts that Configuration by filter is unavailable. |
static void |
assertConfigurationUnavailable(String message,
org.osgi.framework.BundleContext bc,
org.osgi.framework.Filter filter)
Asserts that Configuration by filter is unavailable for specific Bundle. |
static void |
assertConfigurationUnavailable(String message,
org.osgi.framework.BundleContext bc,
String pid,
String factoryPid)
Asserts that Configuration with PID, FactoryPID is unavailable for specific Bundle. |
static void |
assertConfigurationUnavailable(String message,
org.osgi.framework.Filter filter)
Asserts that Configuration by filter is available. |
static void |
assertConfigurationUnavailable(String pid,
String factoryPid,
String location)
Asserts that Configuration with PID, FactoryPID and bundle location is unavailable. |
static void |
assertConfigurationUnavailable(String message,
String pid,
String factoryPid,
String location)
Asserts that Configuration with PID, FactoryPID and bundle location is unavailable. |
static void |
assertConfigurationUpdated(String pid,
String factoryPid,
String location,
long timeoutInMillis)
Asserts that UPDATE ConfigurationEvent with event filter will be fired within given timeoutInMillis. |
static void |
assertConfigurationUpdated(String pid,
String factoryPid,
String location,
long timeout,
TimeUnit timeUnit)
Asserts that UPDATE ConfigurationEvent with event filter will be fired within given timeoutInMillis. |
static void |
assertConfigurationUpdated(String message,
String pid,
String factoryPid,
String location,
long timeoutInMillis)
Asserts that UPDATE ConfigurationEvent with event filter will be fired within given timeoutInMillis. |
static void |
assertConfigurationUpdated(String message,
String pid,
String factoryPid,
String location,
long timeout,
TimeUnit timeUnit)
Asserts that UPDATE ConfigurationEvent with event filter will be fired within given timeoutInMillis. |
| 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 assertConfigurationAvailable(String pid,
String factoryPid,
String location)
AssertionError without a message is thrown
pid - PIDfactoryPid - FactoryPIDlocation - bundle location
public static void assertConfigurationAvailable(String message,
String pid,
String factoryPid,
String location)
AssertionError with the given message
message - messagepid - PIDfactoryPid - FactoryPIDlocation - bundle locationpublic static void assertConfigurationAvailable(org.osgi.framework.Filter filter)
AssertionError without a message is thrown
filter - filter
public static void assertConfigurationAvailable(String message,
org.osgi.framework.Filter filter)
AssertionError with the given message
message - messagefilter - filter
public static void assertConfigurationUnavailable(String pid,
String factoryPid,
String location)
AssertionError without a message is thrown
pid - PIDfactoryPid - FactoryPIDlocation - bundle location
public static void assertConfigurationUnavailable(String message,
String pid,
String factoryPid,
String location)
AssertionError with the given message
message - messagepid - PIDfactoryPid - FactoryPIDlocation - bundle locationpublic static void assertConfigurationUnavailable(org.osgi.framework.Filter filter)
AssertionError without a message is thrown
filter - filter
public static void assertConfigurationUnavailable(String message,
org.osgi.framework.Filter filter)
AssertionError with the given message
message - messagefilter - filter
public static void assertConfigurationAvailable(org.osgi.framework.BundleContext bc,
String pid,
String factoryPid)
AssertionError without a message is thrown
bc - BundleContextpid - PIDfactoryPid - FactoryPID
public static void assertConfigurationAvailable(String message,
org.osgi.framework.BundleContext bc,
String pid,
String factoryPid)
AssertionError with the given message
message - messagebc - BundleContextpid - PIDfactoryPid - FactoryPID
public static void assertConfigurationAvailable(org.osgi.framework.BundleContext bc,
org.osgi.framework.Filter filter)
AssertionError without a message is thrown
bc - BundleContextfilter - filter
public static void assertConfigurationAvailable(String message,
org.osgi.framework.BundleContext bc,
org.osgi.framework.Filter filter)
AssertionError with the given message
message - messagebc - BundleContextfilter - filter
public static void assertConfigurationUnavailable(org.osgi.framework.BundleContext bc,
String pid,
String factoryPid)
AssertionError without a message is thrown
bc - BundleContextpid - PIDfactoryPid - FactoryPID
public static void assertConfigurationUnavailable(String message,
org.osgi.framework.BundleContext bc,
String pid,
String factoryPid)
AssertionError with the given message
message - messagebc - BundleContextpid - PIDfactoryPid - FactoryPID
public static void assertConfigurationUnavailable(org.osgi.framework.BundleContext bc,
org.osgi.framework.Filter filter)
AssertionError without a message is thrown
bc - BundleContextfilter - filter
public static void assertConfigurationUnavailable(String message,
org.osgi.framework.BundleContext bc,
org.osgi.framework.Filter filter)
AssertionError with the given message
bc - BundleContextmessage - messagefilter - filter
public static void assertConfigurationEvent(int eventTypeMask,
long timeoutInMillis)
AssertionError without a message is thrown
eventTypeMask - ServiceEvent type masktimeoutInMillis - time interval in millis to wait. If zero, the method will wait indefinitely.
public static void assertConfigurationEvent(int eventTypeMask,
String pid,
String factoryPid,
String location,
long timeoutInMillis)
AssertionError without a message is thrown
eventTypeMask - ServiceEvent type maskpid - PIDfactoryPid - FactoryPIDlocation - bundle locationtimeoutInMillis - time interval in millis to wait. If zero, the method will wait indefinitely.
public static void assertConfigurationUpdated(String pid,
String factoryPid,
String location,
long timeoutInMillis)
AssertionError without a message is thrown
pid - PIDfactoryPid - FactoryPIDlocation - bundle locationtimeoutInMillis - time interval in millis to wait. If zero, the method will wait indefinitely.
public static void assertConfigurationDeleted(String pid,
String factoryPid,
String location,
long timeoutInMillis)
AssertionError without a message is thrown
pid - PIDfactoryPid - FactoryPIDlocation - bundle locationtimeoutInMillis - time interval in millis to wait. If zero, the method will wait indefinitely.
public static void assertConfigurationEvent(String message,
int eventTypeMask,
long timeoutInMillis)
AssertionError is thrown with the given message
message - messageeventTypeMask - ServiceEvent type masktimeoutInMillis - time interval in millis to wait. If zero, the method will wait indefinitely.
public static void assertConfigurationEvent(String message,
int eventTypeMask,
String pid,
String factoryPid,
String location,
long timeoutInMillis)
AssertionError is thrown with the given message
message - messageeventTypeMask - ServiceEvent type maskpid - PIDfactoryPid - FactoryPIDlocation - bundle locationtimeoutInMillis - time interval in millis to wait. If zero, the method will wait indefinitely.
public static void assertConfigurationUpdated(String message,
String pid,
String factoryPid,
String location,
long timeoutInMillis)
AssertionError is thrown with the given message
message - messagepid - PIDfactoryPid - FactoryPIDlocation - bundle locationtimeoutInMillis - time interval in millis to wait. If zero, the method will wait indefinitely.
public static void assertConfigurationDeleted(String message,
String pid,
String factoryPid,
String location,
long timeoutInMillis)
AssertionError is thrown with the given message
message - messagepid - PIDfactoryPid - FactoryPIDlocation - bundle locationtimeoutInMillis - time interval in millis to wait. If zero, the method will wait indefinitely.
public static void assertConfigurationEvent(int eventTypeMask,
long timeout,
TimeUnit timeUnit)
AssertionError without a message is thrown
eventTypeMask - ServiceEvent type masktimeout - time interval to wait. If zero, the method will wait indefinitely.timeUnit - time unit for the time interval
public static void assertConfigurationEvent(int eventTypeMask,
String pid,
String factoryPid,
String location,
long timeout,
TimeUnit timeUnit)
AssertionError without a message is thrown
eventTypeMask - ServiceEvent type maskpid - PIDfactoryPid - FactoryPIDlocation - bundle locationtimeout - time interval to wait. If zero, the method will wait indefinitely.timeUnit - time unit for the time interval
public static void assertConfigurationUpdated(String pid,
String factoryPid,
String location,
long timeout,
TimeUnit timeUnit)
AssertionError without a message is thrown
pid - PIDfactoryPid - FactoryPIDlocation - bundle locationtimeout - time interval to wait. If zero, the method will wait indefinitely.timeUnit - time unit for the time interval
public static void assertConfigurationDeleted(String pid,
String factoryPid,
String location,
long timeout,
TimeUnit timeUnit)
AssertionError without a message is thrown
pid - PIDfactoryPid - FactoryPIDlocation - bundle locationtimeout - time interval to wait. If zero, the method will wait indefinitely.timeUnit - time unit for the time interval
public static void assertConfigurationEvent(String message,
int eventTypeMask,
long timeout,
TimeUnit timeUnit)
AssertionError is thrown with the given message
message - messageeventTypeMask - ServiceEvent type masktimeout - time interval to wait. If zero, the method will wait indefinitely.timeUnit - time unit for the time interval
public static void assertConfigurationEvent(String message,
int eventTypeMask,
String pid,
String factoryPid,
String location,
long timeout,
TimeUnit timeUnit)
AssertionError is thrown with the given message
message - messageeventTypeMask - ServiceEvent type maskpid - PIDfactoryPid - FactoryPIDlocation - bundle locationtimeout - time interval to wait. If zero, the method will wait indefinitely.timeUnit - time unit for the time interval
public static void assertConfigurationUpdated(String message,
String pid,
String factoryPid,
String location,
long timeout,
TimeUnit timeUnit)
AssertionError is thrown with the given message
message - messagepid - PIDfactoryPid - FactoryPIDlocation - bundle locationtimeout - time interval to wait. If zero, the method will wait indefinitely.timeUnit - time unit for the time interval
public static void assertConfigurationDeleted(String message,
String pid,
String factoryPid,
String location,
long timeout,
TimeUnit timeUnit)
AssertionError is thrown with the given message
message - messagepid - PIDfactoryPid - FactoryPIDlocation - bundle locationtimeout - 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 | |||||||||