Class ExceptionMatchers


  • @Deprecated
    public class ExceptionMatchers
    extends Object
    Deprecated.
    since 7.20 Use org.assertj.core.api.Assertions#assertThatThrownBy(org.assertj.core.api.ThrowableAssert.ThrowingCallable)
    Matchers for Exceptions.
    • Constructor Detail

      • ExceptionMatchers

        public ExceptionMatchers()
        Deprecated.
    • Method Detail

      • hasWrappedExceptionWith

        public static org.hamcrest.TypeSafeMatcher<Exception> hasWrappedExceptionWith​(Class<?> exceptionClass,
                                                                                      String message)
        Deprecated.