Package org.mockito.internal.junit
Class UnnecessaryStubbingsReporter
java.lang.Object
org.mockito.internal.junit.UnnecessaryStubbingsReporter
- All Implemented Interfaces:
MockCreationListener,MockitoListener
Reports unnecessary stubbings
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonMockCreated(Object mock, MockCreationSettings settings) Mock object was just created.voidvalidateUnusedStubs(Class<?> testClass, RunNotifier notifier) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.mockito.listeners.MockCreationListener
onStaticMockCreated
-
Constructor Details
-
UnnecessaryStubbingsReporter
public UnnecessaryStubbingsReporter()
-
-
Method Details
-
validateUnusedStubs
-
onMockCreated
Description copied from interface:MockCreationListenerMock object was just created.- Specified by:
onMockCreatedin interfaceMockCreationListener- Parameters:
mock- created mock objectsettings- the settings used for creation
-