Class MockitoAssertionError

    • Constructor Summary

      Constructors 
      Constructor Description
      MockitoAssertionError​(java.lang.AssertionError error, java.lang.String message)
      Creates a copy of the given assertion error with the custom failure message prepended.
      MockitoAssertionError​(java.lang.String message)  
      MockitoAssertionError​(MockitoAssertionError error, java.lang.String message)
      Creates a copy of the given assertion error with the custom failure message prepended.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.StackTraceElement[] getUnfilteredStackTrace()  
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • unfilteredStackTrace

        private final java.lang.StackTraceElement[] unfilteredStackTrace
    • Constructor Detail

      • MockitoAssertionError

        public MockitoAssertionError​(java.lang.String message)
      • MockitoAssertionError

        public MockitoAssertionError​(MockitoAssertionError error,
                                     java.lang.String message)
        Creates a copy of the given assertion error with the custom failure message prepended.
        Parameters:
        error - The assertion error to copy
        message - The custom message to prepend
        Since:
        2.1.0
      • MockitoAssertionError

        public MockitoAssertionError​(java.lang.AssertionError error,
                                     java.lang.String message)
        Creates a copy of the given assertion error with the custom failure message prepended.
        Parameters:
        error - The assertion error to copy
        message - The custom message to prepend
        Since:
        3.3.13
    • Method Detail

      • getUnfilteredStackTrace

        public java.lang.StackTraceElement[] getUnfilteredStackTrace()