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

    Constructors
    Constructor
    Description
    FragileFunctionMatcher(Argument mArgument, org.hamcrest.Matcher<? super Result> mResultMatcher)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static <Argument, Result>
    org.hamcrest.Matcher<org.dmfs.jems2.FragileFunction<? super Argument,? extends Result,?>>
    associates(Argument argument, org.hamcrest.Matcher<? super Result> resultMatcher)
    Returns a Matcher which verifies that the tested FragileFunction associates a result satisfying the given Matcher to the given argument.
    static <Argument, Result>
    org.hamcrest.Matcher<org.dmfs.jems2.FragileFunction<? super Argument,? extends Result,?>>
    associates(Argument argument, Result result)
    Returns a Matcher which verifies that the tested FragileFunction associates the given result to the given argument.
    void
    describeTo(org.hamcrest.Description description)
     
    protected boolean
    matchesSafely(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,?>>
    throwing(Argument argument, org.hamcrest.Matcher<? super Throwable> throwableMatcher)
    Returns a Matcher which verifies that the tested FragileFunction throws the given throwable to the given argument.

    Methods inherited from class org.hamcrest.TypeSafeDiagnosingMatcher

    describeMismatch, matches

    Methods inherited from class org.hamcrest.BaseMatcher

    _dont_implement_Matcher___instead_extend_BaseMatcher_, isNotNull, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • FragileFunctionMatcher

      public FragileFunctionMatcher(Argument mArgument, org.hamcrest.Matcher<? super Result> mResultMatcher)
  • 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 a Matcher which verifies that the tested FragileFunction throws 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 a Matcher which verifies that the tested FragileFunction associates 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 a Matcher which verifies that the tested FragileFunction associates a result satisfying the given Matcher to the given argument.
    • matchesSafely

      protected boolean matchesSafely(org.dmfs.jems2.FragileFunction<? super Argument,? extends Result,?> item, org.hamcrest.Description mismatchDescription)
      Specified by:
      matchesSafely in class org.hamcrest.TypeSafeDiagnosingMatcher<org.dmfs.jems2.FragileFunction<? super Argument,? extends Result,?>>
    • describeTo

      public void describeTo(org.hamcrest.Description description)