org.mockito.exceptions.misusing
public class RedundantListenerException extends MockitoException
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)
.
Constructor and Description |
---|
RedundantListenerException(String message) |
getUnfilteredStackTrace
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public RedundantListenerException(String message)