Class TryMatchers.FailureMatcher

  • All Implemented Interfaces:
    org.hamcrest.Matcher<Try<?>>, org.hamcrest.SelfDescribing
    Enclosing class:
    TryMatchers

    private static class TryMatchers.FailureMatcher
    extends org.hamcrest.TypeSafeMatcher<Try<?>>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private org.hamcrest.Matcher<? super java.lang.Exception> subMatcher  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private FailureMatcher​(org.hamcrest.Matcher<? super java.lang.Exception> subMatcher)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void describeMismatchSafely​(Try<?> actual, org.hamcrest.Description mismatchDescription)  
      void describeTo​(org.hamcrest.Description description)  
      protected boolean matchesSafely​(Try<?> actual)  
      • Methods inherited from class org.hamcrest.TypeSafeMatcher

        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
    • Field Detail

      • subMatcher

        private final org.hamcrest.Matcher<? super java.lang.Exception> subMatcher
    • Constructor Detail

      • FailureMatcher

        private FailureMatcher​(org.hamcrest.Matcher<? super java.lang.Exception> subMatcher)
    • Method Detail

      • matchesSafely

        protected boolean matchesSafely​(Try<?> actual)
        Specified by:
        matchesSafely in class org.hamcrest.TypeSafeMatcher<Try<?>>
      • describeTo

        public void describeTo​(org.hamcrest.Description description)
      • describeMismatchSafely

        protected void describeMismatchSafely​(Try<?> actual,
                                              org.hamcrest.Description mismatchDescription)
        Overrides:
        describeMismatchSafely in class org.hamcrest.TypeSafeMatcher<Try<?>>