Package org.mockito.internal.junit
Class MismatchReportingTestListener
java.lang.Object
org.mockito.internal.junit.MismatchReportingTestListener
- All Implemented Interfaces:
MockitoTestListener
,MockCreationListener
,MockitoListener
Reports stubbing argument mismatches to the supplied logger
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
onMockCreated
(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 Details
-
logger
-
mocks
-
-
Constructor Details
-
MismatchReportingTestListener
-
-
Method Details
-
testFinished
- Specified by:
testFinished
in interfaceMockitoTestListener
-
onMockCreated
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
-