Package org.mockito.internal.junit
Class StrictStubsRunnerTestListener
- java.lang.Object
-
- org.mockito.internal.junit.StrictStubsRunnerTestListener
-
- All Implemented Interfaces:
MockitoTestListener
,MockCreationListener
,MockitoListener
public class StrictStubsRunnerTestListener extends java.lang.Object implements MockitoTestListener
Fails early when mismatched arguments used for stubbing
-
-
Field Summary
Fields Modifier and Type Field Description private DefaultStubbingLookupListener
stubbingLookupListener
-
Constructor Summary
Constructors Constructor Description StrictStubsRunnerTestListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onMockCreated(java.lang.Object mock, MockCreationSettings settings)
Mock object was just created.void
testFinished(TestFinishedEvent event)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.mockito.listeners.MockCreationListener
onStaticMockCreated
-
-
-
-
Field Detail
-
stubbingLookupListener
private final DefaultStubbingLookupListener stubbingLookupListener
-
-
Method Detail
-
testFinished
public void testFinished(TestFinishedEvent event)
- Specified by:
testFinished
in interfaceMockitoTestListener
-
onMockCreated
public void onMockCreated(java.lang.Object mock, MockCreationSettings settings)
Description copied from interface:MockCreationListener
Mock object was just created.- Specified by:
onMockCreated
in interfaceMockCreationListener
- Parameters:
mock
- created mock objectsettings
- the settings used for creation
-
-