T - the type of the object that provides the object to be matched.R - the type of the object to match against.public final class FunctionExpressionMatcher<T,R>
extends org.hamcrest.TypeSafeMatcher<T>
Function.| Modifier and Type | Method and Description |
|---|---|
void |
describeTo(org.hamcrest.Description description) |
static <T,R> FunctionExpressionMatcher<T,R> |
expressionMatches(Function<T,R> resolver,
org.hamcrest.Matcher<? extends R> matcher)
Builds a matcher that lazily evaluates against the object returned by the given resolver
Function. |
protected boolean |
matchesSafely(T item) |
describeMismatch, describeMismatchSafely, matchespublic static final <T,R> FunctionExpressionMatcher<T,R> expressionMatches(Function<T,R> resolver, org.hamcrest.Matcher<? extends R> matcher)
Function.resolver - the function to use to get the object to run the matcher against.matcher - the matcher to run against the resolved object.protected boolean matchesSafely(T item)
matchesSafely in class org.hamcrest.TypeSafeMatcher<T>public void describeTo(org.hamcrest.Description description)
Copyright © 2003–2018 MuleSoft, Inc.. All rights reserved.