Class UnusedStubbingReporting

java.lang.Object
org.mockito.internal.stubbing.UnusedStubbingReporting

public final class UnusedStubbingReporting extends Object
Helps determining if stubbing should be reported as unused
  • Constructor Details

    • UnusedStubbingReporting

      private UnusedStubbingReporting()
  • Method Details

    • shouldBeReported

      public static boolean shouldBeReported(Stubbing stubbing)
      Decides if the stubbing should be reported as unused. Lenient stubbings are not reported as unused.