Interface LenientStubber

All Superinterfaces:
BaseStubber

@NotExtensible public interface LenientStubber extends BaseStubber
Used for declaring optional stubbings with Mockito.lenient()
Since:
2.20.0
  • Method Details

    • when

      <T> OngoingStubbing<T> when(T methodCall)
      Allows declaring the method to stub. See Mockito.when(Object). Needed for classic stubbing with when().then()
      Since:
      2.20.0