Package org.elasticsearch.test
Class LambdaMatchers
java.lang.Object
org.elasticsearch.test.LambdaMatchers
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> org.hamcrest.Matcher
<Predicate<? super T>> falseWith
(T item) static <T,
U> org.hamcrest.Matcher <T[]> transformedArrayItemsMatch
(String transformDescription, Function<T, U> function, org.hamcrest.Matcher<U[]> matcher) static <T,
U> org.hamcrest.Matcher <T[]> transformedArrayItemsMatch
(Function<T, U> function, org.hamcrest.Matcher<U[]> matcher) static <T,
U> org.hamcrest.Matcher <Iterable<T>> transformedItemsMatch
(String transformDescription, Function<T, U> function, org.hamcrest.Matcher<Iterable<? extends U>> matcher) static <T,
U> org.hamcrest.Matcher <Iterable<T>> transformedItemsMatch
(Function<T, U> function, org.hamcrest.Matcher<Iterable<? extends U>> matcher) static <T,
U> org.hamcrest.Matcher <T> transformedMatch
(String description, Function<T, U> function, org.hamcrest.Matcher<U> matcher) static <T,
U> org.hamcrest.Matcher <T> transformedMatch
(Function<T, U> function, org.hamcrest.Matcher<U> matcher) static <T> org.hamcrest.Matcher
<Predicate<? super T>> trueWith
(T item)
-
Constructor Details
-
LambdaMatchers
public LambdaMatchers()
-
-
Method Details
-
transformedMatch
public static <T,U> org.hamcrest.Matcher<T> transformedMatch(Function<T, U> function, org.hamcrest.Matcher<U> matcher) -
transformedMatch
-
transformedItemsMatch
-
transformedItemsMatch
-
transformedArrayItemsMatch
public static <T,U> org.hamcrest.Matcher<T[]> transformedArrayItemsMatch(Function<T, U> function, org.hamcrest.Matcher<U[]> matcher) -
transformedArrayItemsMatch
-
trueWith
-
falseWith
-