Package 

Class BundleBuilder


  • 
    public final class BundleBuilder
    
                        

    Class for building Bundle matchers

    • Constructor Summary

      Constructors 
      Constructor Description
      BundleBuilder()
    • Method Summary

      Modifier and Type Method Description
      final Unit hasKey(String key) Matches bundle with given key
      final Unit hasKey(Matcher<String> key) Matches bundle with given key
      final Unit hasValue(Object value) Matches bundle with given value
      final Unit hasValue(Matcher<Object> value) Matches bundle with given value
      final Unit hasEntry(String key, Object value) Matches bundle with given entry
      final Unit hasEntry(Matcher<String> key, Matcher<Object> value) Matches bundle with given entry
      final Matcher<Bundle> getMatcher()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BundleBuilder

        BundleBuilder()
    • Method Detail

      • hasKey

         final Unit hasKey(String key)

        Matches bundle with given key

        Parameters:
        key - Key to be matched
      • hasKey

         final Unit hasKey(Matcher<String> key)

        Matches bundle with given key

        Parameters:
        key - Matcher for a key
      • hasValue

         final Unit hasValue(Object value)

        Matches bundle with given value

        Parameters:
        value - Value to be matched
      • hasValue

         final Unit hasValue(Matcher<Object> value)

        Matches bundle with given value

        Parameters:
        value - Matcher for a value
      • hasEntry

         final Unit hasEntry(String key, Object value)

        Matches bundle with given entry

        Parameters:
        key - Key to be matched
        value - Value to be matched
      • hasEntry

         final Unit hasEntry(Matcher<String> key, Matcher<Object> value)

        Matches bundle with given entry

        Parameters:
        key - Matcher for a key
        value - Matcher for a value