Class TryMatchers


  • public final class TryMatchers
    extends java.lang.Object
    Since:
    4.7.0
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private TryMatchers()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static org.hamcrest.Matcher<Try<?>> isFailure()  
      static org.hamcrest.Matcher<Try<?>> isFailure​(org.hamcrest.Matcher<? super java.lang.Exception> subMatcher)  
      static <A> org.hamcrest.Matcher<Try<A>> isSuccessful​(org.hamcrest.Matcher<? super A> subMatcher)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TryMatchers

        private TryMatchers()
    • Method Detail

      • isFailure

        public static org.hamcrest.Matcher<Try<?>> isFailure​(org.hamcrest.Matcher<? super java.lang.Exception> subMatcher)
      • isFailure

        public static org.hamcrest.Matcher<Try<?>> isFailure()
      • isSuccessful

        public static <A> org.hamcrest.Matcher<Try<A>> isSuccessful​(org.hamcrest.Matcher<? super A> subMatcher)