org.mockito.exceptions.base
public class MockitoAssertionError extends AssertionError
Constructor and Description |
---|
MockitoAssertionError(MockitoAssertionError error,
String message)
Creates a copy of the given assertion error with the custom failure message prepended.
|
MockitoAssertionError(String message) |
Modifier and Type | Method and Description |
---|---|
StackTraceElement[] |
getUnfilteredStackTrace() |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public MockitoAssertionError(String message)
public MockitoAssertionError(MockitoAssertionError error, String message)
error
- The assertion error to copymessage
- The custom message to prependpublic StackTraceElement[] getUnfilteredStackTrace()