CannotStubVoidMethodWithReturnValue
, CannotVerifyStubOnlyMock
, FriendlyReminderException
, InstantationException
, InvalidUseOfMatchersException
, MissingMethodInvocationException
, MockitoConfigurationException
, NotAMockException
, NullInsteadOfMockException
, SmartNullPointerException
, UnfinishedStubbingException
, UnfinishedVerificationException
, WrongTypeOfReturnValue
public class MockitoException
extends java.lang.RuntimeException
The stack trace is filtered from mockito calls if you are using Throwable.getStackTrace()
.
For debugging purpose though you can still access the full stacktrace using getUnfilteredStackTrace()
.
However note that other calls related to the stackTrace will refer to the filter stacktrace.
Constructor | Description |
---|---|
MockitoException(java.lang.String message) |
|
MockitoException(java.lang.String message,
java.lang.Throwable t) |
Modifier and Type | Method | Description |
---|---|---|
java.lang.StackTraceElement[] |
getUnfilteredStackTrace() |