Class StrictStubsRunnerTestListener
java.lang.Object
org.mockito.internal.junit.StrictStubsRunnerTestListener
- All Implemented Interfaces:
MockitoTestListener, MockCreationListener, MockitoListener
Fails early when mismatched arguments used for stubbing
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonMockCreated(Object mock, MockCreationSettings settings) Mock object was just created.voidtestFinished(TestFinishedEvent event) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface MockCreationListener
onStaticMockCreated
-
Field Details
-
stubbingLookupListener
-
-
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
-