Class MockitoAssertionError

    • Constructor Detail

      • MockitoAssertionError

        public MockitoAssertionError​(String message)
      • MockitoAssertionError

        public MockitoAssertionError​(MockitoAssertionError error,
                                     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​(AssertionError error,
                                     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