Package org.mockito.exceptions.misusing
Class UnfinishedMockingSessionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.mockito.exceptions.base.MockitoException
org.mockito.exceptions.misusing.UnfinishedMockingSessionException
- All Implemented Interfaces:
Serializable
This exception prevents the user from forgetting to use
MockitoSession.finishMocking()
.
When MockitoSession
is started is used
it needs to be concluded with MockitoSession.finishMocking()
.
For details on mocking session lifecycle see MockitoSessionBuilder.startMocking()
and MockitoSession.finishMocking()
. For examples of use see MockitoSession
.
- Since:
- 2.7.0
- See Also:
-
Constructor Summary
-
Method Summary
Methods inherited from class org.mockito.exceptions.base.MockitoException
getUnfilteredStackTrace
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
UnfinishedMockingSessionException
-