Class UnnecessaryStubbingsReporter

java.lang.Object
org.mockito.internal.junit.UnnecessaryStubbingsReporter
All Implemented Interfaces:
MockCreationListener, MockitoListener

public class UnnecessaryStubbingsReporter extends Object implements MockCreationListener
Reports unnecessary stubbings
  • Field Details

  • Constructor Details

    • UnnecessaryStubbingsReporter

      public UnnecessaryStubbingsReporter()
  • Method Details

    • validateUnusedStubs

      public void validateUnusedStubs(Class<?> testClass, org.junit.runner.notification.RunNotifier notifier)
    • onMockCreated

      public void onMockCreated(Object mock, MockCreationSettings settings)
      Description copied from interface: MockCreationListener
      Mock object was just created.
      Specified by:
      onMockCreated in interface MockCreationListener
      Parameters:
      mock - created mock object
      settings - the settings used for creation