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 classInstantiationExceptionException 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 classCannotStubVoidMethodWithReturnValueclassCannotVerifyStubOnlyMockclassDoNotMockExceptionThrown when attempting to mock a class that is annotated withDoNotMock.classFriendlyReminderExceptionclassInjectMocksExceptionThrown when creation of test subject annotated with InjectMocks fails.classInvalidUseOfMatchersExceptionclassMissingMethodInvocationExceptionclassMockitoConfigurationExceptionclassNotAMockExceptionclassNullInsteadOfMockExceptionclassPotentialStubbingProblemPotentialStubbingProblemimproves productivity by failing the test early when the user misconfigures mock's stubbing.classRedundantListenerExceptionReported when instance ofMockitoListeneris being added to Mockito (seeMockitoFramework) and there is already a listener with this implementation type registered.classUnfinishedMockingSessionExceptionThis exception prevents the user from forgetting to useMockitoSession.finishMocking().classUnfinishedStubbingExceptionclassUnfinishedVerificationExceptionclassUnnecessaryStubbingExceptionThis exception indicates presence of unused stubbings.classWrongTypeOfReturnValue -
Uses of MockitoException in org.mockito.exceptions.verification
Subclasses of MockitoException in org.mockito.exceptions.verification Modifier and Type Class Description classSmartNullPointerException
-