org.knowhowlab.osgi.testing.assertions
Class FilterAssert

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

public class FilterAssert
extends OSGiAssert

A set of OSGi Filter 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 assertFilterCorrect(String filter)
          Asserts that given filter is correct.
static void assertFilterCorrect(String message, String filter)
          Asserts that given filter is correct.
static void assertFilterIncorrect(String filter)
          Asserts that given filter is incorrect.
static void assertFilterIncorrect(String message, String filter)
          Asserts that given filter is incorrect.
 
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

assertFilterCorrect

public static void assertFilterCorrect(String filter)
Asserts that given filter is correct. If it not as expected AssertionError without a message is thrown

Parameters:
filter - filter
Since:
1.0

assertFilterCorrect

public static void assertFilterCorrect(String message,
                                       String filter)
Asserts that given filter is correct. If it not as expected AssertionError is thrown with the given message

Parameters:
message - message
filter - filter
Since:
1.0

assertFilterIncorrect

public static void assertFilterIncorrect(String filter)
Asserts that given filter is incorrect. If it not as expected AssertionError without a message is thrown

Parameters:
filter - filter
Since:
1.0

assertFilterIncorrect

public static void assertFilterIncorrect(String message,
                                         String filter)
Asserts that given filter is incorrect. If it not as expected AssertionError is thrown with the given message

Parameters:
message - message
filter - filter
Since:
1.0


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