|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.terracotta.context.extended.ExtendedMatchers
public final class ExtendedMatchers
Matchers specific to standard extended properties
| Method Summary | |
|---|---|
static Matcher<Map<String,Object>> |
hasProperty(String key)
Returns a matcher that checks if the "properties" attribute contains an entry for key. |
static Matcher<Map<String,Object>> |
hasProperty(String key,
String value)
Returns a matcher that checks if the "properties" attribute contains an entry for key and a value equals
to value. |
static Matcher<Map<String,Object>> |
hasTag(String tag)
Returns a matcher that checks if the "tags" attribute contains the tag. |
static Matcher<Map<String,Object>> |
hasTags(Collection<String> tags)
Returns a matcher that checks if the "tags" attribute contains all the tags. |
static Matcher<Map<String,Object>> |
hasTags(String... tags)
Returns a matcher that checks if the "tags" attribute contains all the tags. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static Matcher<Map<String,Object>> hasTag(String tag)
tag - tag searched
Map<String, Object> matcher for the tagpublic static Matcher<Map<String,Object>> hasTags(String... tags)
tags - tags searched
Map<String, Object> matcher for the tagspublic static Matcher<Map<String,Object>> hasTags(Collection<String> tags)
tags - tags searched
Map<String, Object> matcher for the tagspublic static Matcher<Map<String,Object>> hasProperty(String key)
key.
key - key searched
Map<String, Object> matcher for the key
public static Matcher<Map<String,Object>> hasProperty(String key,
String value)
key and a value equals
to value.
key - key searchedvalue - value searched
Map<String, Object> matcher for the key and value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||