Package org.elasticsearch.test.hamcrest
Class OptionalMatchers
java.lang.Object
org.elasticsearch.test.hamcrest.OptionalMatchers
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.hamcrest.Matcher<Optional<?>> isEmpty()static org.hamcrest.Matcher<Optional<?>> static <T> org.hamcrest.Matcher<Optional<? extends T>> isPresentWith(org.hamcrest.Matcher<? super T> contents) static <T> org.hamcrest.Matcher<Optional<? extends T>> isPresentWith(T contents)
-
Constructor Details
-
OptionalMatchers
public OptionalMatchers()
-
-
Method Details
-
isEmpty
-
isPresent
-
isPresentWith
-
isPresentWith
public static <T> org.hamcrest.Matcher<Optional<? extends T>> isPresentWith(org.hamcrest.Matcher<? super T> contents)
-