org.mockito.stubbing.LenientStubber Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mockito-core Show documentation
Show all versions of mockito-core Show documentation
Mock objects library for java
/*
* Copyright (c) 2007 Mockito contributors
* This program is made available under the terms of the MIT License.
*/
package org.mockito.stubbing;
import org.mockito.CheckReturnValue;
import org.mockito.Mockito;
import org.mockito.NotExtensible;
/**
* Used for declaring optional stubbings with {@link Mockito#lenient()}
*
* @since 2.20.0
*/
@NotExtensible
public interface LenientStubber extends BaseStubber {
/**
* Allows declaring the method to stub. See {@link Mockito#when(Object)}.
* Needed for classic stubbing with when().then()
*
* @since 2.20.0
*/
@CheckReturnValue
OngoingStubbing when(T methodCall);
}