Class FragileFunctionMatcher<Argument,Result>
java.lang.Object
org.hamcrest.BaseMatcher<T>
org.hamcrest.TypeSafeDiagnosingMatcher<org.dmfs.jems2.FragileFunction<? super Argument,? extends Result,?>>
org.dmfs.jems2.hamcrest.matchers.function.FragileFunctionMatcher<Argument,Result>
- All Implemented Interfaces:
org.hamcrest.Matcher<org.dmfs.jems2.FragileFunction<? super Argument,,? extends Result, ?>> org.hamcrest.SelfDescribing
public final class FragileFunctionMatcher<Argument,Result>
extends org.hamcrest.TypeSafeDiagnosingMatcher<org.dmfs.jems2.FragileFunction<? super Argument,? extends Result,?>>
A
Matcher to test FragileFunctions.-
Constructor Summary
ConstructorsConstructorDescriptionFragileFunctionMatcher(Argument mArgument, org.hamcrest.Matcher<? super Result> mResultMatcher) -
Method Summary
Modifier and TypeMethodDescriptionstatic <Argument,Result>
org.hamcrest.Matcher<org.dmfs.jems2.FragileFunction<? super Argument,? extends Result, ?>> associates(Argument argument, org.hamcrest.Matcher<? super Result> resultMatcher) Returns aMatcherwhich verifies that the testedFragileFunctionassociates a result satisfying the givenMatcherto the given argument.static <Argument,Result>
org.hamcrest.Matcher<org.dmfs.jems2.FragileFunction<? super Argument,? extends Result, ?>> associates(Argument argument, Result result) Returns aMatcherwhich verifies that the testedFragileFunctionassociates the given result to the given argument.voiddescribeTo(org.hamcrest.Description description) protected booleanmatchesSafely(org.dmfs.jems2.FragileFunction<? super Argument, ? extends Result, ?> item, org.hamcrest.Description mismatchDescription) static <Argument,Result>
org.hamcrest.Matcher<org.dmfs.jems2.FragileFunction<? super Argument,? extends Result, ?>> Returns aMatcherwhich verifies that the testedFragileFunctionthrows the given throwable to the given argument.Methods inherited from class org.hamcrest.TypeSafeDiagnosingMatcher
describeMismatch, matchesMethods inherited from class org.hamcrest.BaseMatcher
_dont_implement_Matcher___instead_extend_BaseMatcher_, isNotNull, toString
-
Constructor Details
-
FragileFunctionMatcher
-
-
Method Details
-
throwing
public static <Argument,Result> org.hamcrest.Matcher<org.dmfs.jems2.FragileFunction<? super Argument,? extends Result, throwing?>> (Argument argument, org.hamcrest.Matcher<? super Throwable> throwableMatcher) Returns aMatcherwhich verifies that the testedFragileFunctionthrows the given throwable to the given argument. -
associates
public static <Argument,Result> org.hamcrest.Matcher<org.dmfs.jems2.FragileFunction<? super Argument,? extends Result, associates?>> (Argument argument, Result result) Returns aMatcherwhich verifies that the testedFragileFunctionassociates the given result to the given argument. -
associates
public static <Argument,Result> org.hamcrest.Matcher<org.dmfs.jems2.FragileFunction<? super Argument,? extends Result, associates?>> (Argument argument, org.hamcrest.Matcher<? super Result> resultMatcher) Returns aMatcherwhich verifies that the testedFragileFunctionassociates a result satisfying the givenMatcherto the given argument. -
matchesSafely
-
describeTo
public void describeTo(org.hamcrest.Description description)
-