Package org.mockito.exceptions.misusing
Class RedundantListenerException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.mockito.exceptions.base.MockitoException
org.mockito.exceptions.misusing.RedundantListenerException
- All Implemented Interfaces:
Serializable
Reported when instance of
MockitoListener
is being added to Mockito (see MockitoFramework
)
and there is already a listener with this implementation type registered.
Note that it is ok to add multiple different implementations of the same listener interface type.
Indicates a user error - previous listener was not removed
according to the API specification - see MockitoFramework.addListener(MockitoListener)
.
- Since:
- 2.5.2
- 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
-
RedundantListenerException
-