Package org.mockito.internal.junit
Class StrictStubsRunnerTestListener
java.lang.Object
org.mockito.internal.junit.StrictStubsRunnerTestListener
- All Implemented Interfaces:
MockitoTestListener,MockCreationListener,MockitoListener
Fails early when mismatched arguments used for stubbing
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonMockCreated(Object mock, MockCreationSettings settings) Mock object was just created.voidtestFinished(TestFinishedEvent event) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.mockito.listeners.MockCreationListener
onStaticMockCreated
-
Constructor Details
-
StrictStubsRunnerTestListener
public StrictStubsRunnerTestListener()
-
-
Method Details
-
testFinished
- Specified by:
testFinishedin interfaceMockitoTestListener
-
onMockCreated
Description copied from interface:MockCreationListenerMock object was just created.- Specified by:
onMockCreatedin interfaceMockCreationListener- Parameters:
mock- created mock objectsettings- the settings used for creation
-