Class BrokenFragileMatcher

java.lang.Object
org.hamcrest.BaseMatcher<T>
org.hamcrest.TypeSafeDiagnosingMatcher<org.dmfs.jems2.Fragile<?,?>>
org.dmfs.jems2.hamcrest.matchers.fragile.BrokenFragileMatcher
All Implemented Interfaces:
org.hamcrest.Matcher<org.dmfs.jems2.Fragile<?,?>>, org.hamcrest.SelfDescribing

public final class BrokenFragileMatcher extends org.hamcrest.TypeSafeDiagnosingMatcher<org.dmfs.jems2.Fragile<?,?>>
A Matcher for Fragiles which are expected to be broken.
  • Constructor Summary

    Constructors
    Constructor
    Description
    BrokenFragileMatcher(org.hamcrest.Matcher<? super Throwable> exceptionMatcher)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    describeTo(org.hamcrest.Description description)
     
    protected boolean
    matchesSafely(org.dmfs.jems2.Fragile<?,?> item, org.hamcrest.Description mismatchDescription)
     
    static org.hamcrest.Matcher<org.dmfs.jems2.Fragile<?,?>>
    throwing(Class<? extends Throwable> exceptionClass)
     
    static org.hamcrest.Matcher<org.dmfs.jems2.Fragile<?,?>>
    throwing(org.hamcrest.Matcher<? super Throwable> exceptionMatcher)
     

    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

    • BrokenFragileMatcher

      public BrokenFragileMatcher(org.hamcrest.Matcher<? super Throwable> exceptionMatcher)
  • Method Details

    • throwing

      public static org.hamcrest.Matcher<org.dmfs.jems2.Fragile<?,?>> throwing(org.hamcrest.Matcher<? super Throwable> exceptionMatcher)
    • throwing

      public static org.hamcrest.Matcher<org.dmfs.jems2.Fragile<?,?>> throwing(Class<? extends Throwable> exceptionClass)
    • matchesSafely

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

      public void describeTo(org.hamcrest.Description description)