Package org.mockito.internal.junit
Class UnnecessaryStubbingsReporter
java.lang.Object
org.mockito.internal.junit.UnnecessaryStubbingsReporter
- All Implemented Interfaces:
MockCreationListener
,MockitoListener
Reports unnecessary stubbings
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
onMockCreated
(Object mock, MockCreationSettings settings) Mock object was just created.void
validateUnusedStubs
(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
-
Field Details
-
mocks
-
-
Constructor Details
-
UnnecessaryStubbingsReporter
public UnnecessaryStubbingsReporter()
-
-
Method Details
-
validateUnusedStubs
public void validateUnusedStubs(Class<?> testClass, org.junit.runner.notification.RunNotifier notifier) -
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
-