org.mockito
public static interface BDDMockito.BDDStubber
Stubber
BDDMockito.BDDStubber willAnswer(Answer<?> answer)
Stubber.doAnswer(Answer)
BDDMockito.BDDStubber will(Answer<?> answer)
Stubber.doAnswer(Answer)
@Deprecated BDDMockito.BDDStubber willNothing()
willDoNothing()
insteadStubber.doNothing()
.
This method will be removed in version 3.0.0BDDMockito.BDDStubber willDoNothing()
Stubber.doNothing()
BDDMockito.BDDStubber willReturn(Object toBeReturned)
Stubber.doReturn(Object)
BDDMockito.BDDStubber willReturn(Object toBeReturned, Object... nextToBeReturned)
Stubber.doReturn(Object)
BDDMockito.BDDStubber willThrow(Throwable... toBeThrown)
Stubber.doThrow(Throwable...)
BDDMockito.BDDStubber willThrow(Class<? extends Throwable> toBeThrown)
Stubber.doThrow(Class)
BDDMockito.BDDStubber willThrow(Class<? extends Throwable> toBeThrown, Class<? extends Throwable>... nextToBeThrown)
Stubber.doThrow(Class, Class[])
BDDMockito.BDDStubber willCallRealMethod()
Stubber.doCallRealMethod()
<T> T given(T mock)
Stubber.when(Object)