Package org.mockito.internal.junit
Class MismatchReportingTestListener
- java.lang.Object
-
- org.mockito.internal.junit.MismatchReportingTestListener
-
- All Implemented Interfaces:
MockitoTestListener
,MockCreationListener
,MockitoListener
public class MismatchReportingTestListener extends java.lang.Object implements MockitoTestListener
Reports stubbing argument mismatches to the supplied logger
-
-
Field Summary
Fields Modifier and Type Field Description private MockitoLogger
logger
private java.util.List<java.lang.Object>
mocks
-
Constructor Summary
Constructors Constructor Description MismatchReportingTestListener(MockitoLogger logger)
-
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
-
logger
private final MockitoLogger logger
-
mocks
private java.util.List<java.lang.Object> mocks
-
-
Constructor Detail
-
MismatchReportingTestListener
public MismatchReportingTestListener(MockitoLogger logger)
-
-
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
-
-