Class OptionalMatchers

java.lang.Object
org.elasticsearch.test.hamcrest.OptionalMatchers

public class OptionalMatchers extends Object
  • Constructor Details

    • OptionalMatchers

      public OptionalMatchers()
  • Method Details

    • isEmpty

      public static org.hamcrest.Matcher<Optional<?>> isEmpty()
    • isPresent

      public static org.hamcrest.Matcher<Optional<?>> isPresent()
    • isPresentWith

      public static <T> org.hamcrest.Matcher<Optional<? extends T>> isPresentWith(T contents)
    • isPresentWith

      public static <T> org.hamcrest.Matcher<Optional<? extends T>> isPresentWith(org.hamcrest.Matcher<? super T> contents)