Uses of Class
org.mockito.exceptions.base.MockitoException
-
Packages that use MockitoException Package Description org.mockito.creation.instance org.mockito.exceptions.misusing Exceptions thrown when Mockito is misused.org.mockito.exceptions.verification Verification errors. -
-
Uses of MockitoException in org.mockito.creation.instance
Subclasses of MockitoException in org.mockito.creation.instance Modifier and Type Class Description class
InstantiationException
Exception generated whenInstantiator.newInstance(Class)
failed. -
Uses of MockitoException in org.mockito.exceptions.misusing
Subclasses of MockitoException in org.mockito.exceptions.misusing Modifier and Type Class Description class
CannotStubVoidMethodWithReturnValue
class
CannotVerifyStubOnlyMock
class
DoNotMockException
Thrown when attempting to mock a class that is annotated withDoNotMock
.class
FriendlyReminderException
class
InjectMocksException
Thrown when creation of test subject annotated with InjectMocks fails.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 ofMockitoListener
is being added to Mockito (seeMockitoFramework
) and there is already a listener with this implementation type registered.class
UnfinishedMockingSessionException
This exception prevents the user from forgetting to useMockitoSession.finishMocking()
.class
UnfinishedStubbingException
class
UnfinishedVerificationException
class
UnnecessaryStubbingException
This exception indicates presence of unused stubbings.class
WrongTypeOfReturnValue
-
Uses of MockitoException in org.mockito.exceptions.verification
Subclasses of MockitoException in org.mockito.exceptions.verification Modifier and Type Class Description class
SmartNullPointerException
-