Package | Description |
---|---|
org.mockito.creation.instance | |
org.mockito.exceptions.misusing |
Exceptions thrown when Mockito is misused.
|
org.mockito.exceptions.verification |
Verification errors.
|
Modifier and Type | Class and Description |
---|---|
class |
InstantiationException
Exception generated when
Instantiator.newInstance(Class) failed. |
Modifier and Type | Class and Description |
---|---|
class |
CannotStubVoidMethodWithReturnValue |
class |
CannotVerifyStubOnlyMock |
class |
FriendlyReminderException |
class |
InvalidUseOfMatchersException |
class |
MissingMethodInvocationException |
class |
MockitoConfigurationException |
class |
NotAMockException |
class |
NullInsteadOfMockException |
class |
PotentialStubbingProblem
PotentialStubbingProblem improves productivity by failing the test early when the user
misconfigures mock's stubbing. |
class |
RedundantListenerException
Reported when instance of
MockitoListener
is being added to Mockito (see MockitoFramework )
and there is already a listener with this implementation type registered. |
class |
UnfinishedMockingSessionException
This exception prevents the user from forgetting to use
MockitoSession.finishMocking() . |
class |
UnfinishedStubbingException |
class |
UnfinishedVerificationException |
class |
UnnecessaryStubbingException
This exception indicates presence of unused stubbings.
|
class |
WrongTypeOfReturnValue |
Modifier and Type | Class and Description |
---|---|
class |
SmartNullPointerException |