Uses of Class
org.mockito.exceptions.base.MockitoException
Packages that use MockitoException
Package
Description
Exceptions thrown when Mockito is misused.
Verification errors.
-
Uses of MockitoException in org.mockito.creation.instance
Subclasses of MockitoException in org.mockito.creation.instanceModifier and TypeClassDescriptionclassException generated whenInstantiator.newInstance(Class)failed. -
Uses of MockitoException in org.mockito.exceptions.misusing
Subclasses of MockitoException in org.mockito.exceptions.misusingModifier and TypeClassDescriptionclassclassclassThrown when a mock is accessed after it has been disabled byMockitoFramework.clearInlineMocks().classThrown when attempting to mock a class that is annotated withDoNotMock.classclassThrown when creation of test subject annotated with InjectMocks fails.classclassclassclassclassclassPotentialStubbingProblemimproves productivity by failing the test early when the user misconfigures mock's stubbing.classReported when instance ofMockitoListeneris being added to Mockito (seeMockitoFramework) and there is already a listener with this implementation type registered.classThis exception prevents the user from forgetting to useMockitoSession.finishMocking().classclassclassThis exception indicates presence of unused stubbings.class -
Uses of MockitoException in org.mockito.exceptions.verification
Subclasses of MockitoException in org.mockito.exceptions.verification