Package org.elasticsearch.test.hamcrest
Class CollectionAssertions
java.lang.Object
org.elasticsearch.test.hamcrest.CollectionAssertions
public class CollectionAssertions
extends java.lang.Object
Assertions for easier handling of our custom collections,
for example ImmutableOpenMap
-
Constructor Summary
Constructors Constructor Description CollectionAssertions()
-
Method Summary
Modifier and Type Method Description static org.hamcrest.Matcher<org.elasticsearch.common.collect.ImmutableOpenMap>
hasAllKeys(java.lang.String... keys)
static org.hamcrest.Matcher<org.elasticsearch.common.collect.ImmutableOpenMap>
hasKey(java.lang.String key)
-
Constructor Details
-
CollectionAssertions
public CollectionAssertions()
-
-
Method Details
-
hasKey
public static org.hamcrest.Matcher<org.elasticsearch.common.collect.ImmutableOpenMap> hasKey(java.lang.String key) -
hasAllKeys
public static org.hamcrest.Matcher<org.elasticsearch.common.collect.ImmutableOpenMap> hasAllKeys(java.lang.String... keys)
-