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 TypeMethodDescriptionvoidonMockCreated(Object mock, MockCreationSettings settings) Mock object was just created.voidvalidateUnusedStubs(Class<?> testClass, org.junit.runner.notification.RunNotifier notifier) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface 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:MockCreationListenerMock object was just created.- Specified by:
onMockCreatedin interfaceMockCreationListener- Parameters:
mock- created mock objectsettings- the settings used for creation
-