Exception | Description |
---|---|
CannotStubVoidMethodWithReturnValue | |
CannotVerifyStubOnlyMock | |
FriendlyReminderException | |
InvalidUseOfMatchersException | |
MissingMethodInvocationException | |
MockitoConfigurationException | |
NotAMockException | |
NullInsteadOfMockException | |
PotentialStubbingProblem |
Strict stubbing is a new opt-in feature for JUnit Rule (
MockitoRule.strictness(Strictness) )
and JUnit Runner (MockitoJUnitRunner.StrictStubs ). |
RedundantListenerException |
Reported when instance of
MockitoListener
is being added to Mockito (see MockitoFramework )
and there is already a listener with this implementation type registered. |
UnfinishedStubbingException | |
UnfinishedVerificationException | |
UnnecessaryStubbingException |
This exception indicates presence of unused stubbings.
|
WrongTypeOfReturnValue |