-
public final class BundleBuilderClass for building Bundle matchers
-
-
Constructor Summary
Constructors Constructor Description BundleBuilder()
-
Method Summary
Modifier and Type Method Description final UnithasKey(String key)Matches bundle with given key final UnithasKey(Matcher<String> key)Matches bundle with given key final UnithasValue(Object value)Matches bundle with given value final UnithasValue(Matcher<Object> value)Matches bundle with given value final UnithasEntry(String key, Object value)Matches bundle with given entry final UnithasEntry(Matcher<String> key, Matcher<Object> value)Matches bundle with given entry final Matcher<Bundle>getMatcher()-
-
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 matchedvalue- Value to be matched
-
hasEntry
final Unit hasEntry(Matcher<String> key, Matcher<Object> value)
Matches bundle with given entry
- Parameters:
key- Matcher for a keyvalue- Matcher for a value
-
getMatcher
final Matcher<Bundle> getMatcher()
-
-
-
-