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<java.lang.String,​?>> hasAllKeys​(java.lang.String... keys)  
    static org.hamcrest.Matcher<org.elasticsearch.common.collect.ImmutableOpenMap<java.lang.String,​?>> hasKey​(java.lang.String key)  

    Methods inherited from class java.lang.Object

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

    • CollectionAssertions

      public CollectionAssertions()
  • Method Details

    • hasKey

      public static org.hamcrest.Matcher<org.elasticsearch.common.collect.ImmutableOpenMap<java.lang.String,​?>> hasKey​(java.lang.String key)
    • hasAllKeys

      public static org.hamcrest.Matcher<org.elasticsearch.common.collect.ImmutableOpenMap<java.lang.String,​?>> hasAllKeys​(java.lang.String... keys)