Package org.mockito.internal.junit
Class UnnecessaryStubbingsReporter
- java.lang.Object
-
- org.mockito.internal.junit.UnnecessaryStubbingsReporter
-
- All Implemented Interfaces:
MockCreationListener
,MockitoListener
public class UnnecessaryStubbingsReporter extends java.lang.Object implements MockCreationListener
Reports unnecessary stubbings
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<java.lang.Object>
mocks
-
Constructor Summary
Constructors Constructor Description UnnecessaryStubbingsReporter()
-
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
validateUnusedStubs(java.lang.Class<?> testClass, org.junit.runner.notification.RunNotifier notifier)
-
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
-
-
-
-
Method Detail
-
validateUnusedStubs
public void validateUnusedStubs(java.lang.Class<?> testClass, org.junit.runner.notification.RunNotifier notifier)
-
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
-
-