Java Code Examples for org.mockito.BDDMockito#BDDStubber

The following examples show how to use org.mockito.BDDMockito#BDDStubber . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: WithBDDMockito.java    From mockito-java8 with Apache License 2.0 4 votes vote down vote up
/**
 * Delegates call to {@link BDDMockito#willThrow(Throwable...)}
 */
default BDDMockito.BDDStubber willThrow(Throwable... toBeThrown) {
    return BDDMockito.willThrow(toBeThrown);
}
 
Example 2
Source File: WithBDDMockito.java    From mockito-java8 with Apache License 2.0 4 votes vote down vote up
/**
 * Delegates call to {@link BDDMockito#willThrow(Class)}
 */
default BDDMockito.BDDStubber willThrow(Class<? extends Throwable> toBeThrown) {
    return BDDMockito.willThrow(toBeThrown);
}
 
Example 3
Source File: WithBDDMockito.java    From mockito-java8 with Apache License 2.0 4 votes vote down vote up
/**
 * Delegates call to {@link BDDMockito#doAnswer(Answer)}
 */
default BDDMockito.BDDStubber willAnswer(Answer answer) {
    return BDDMockito.willAnswer(answer);
}
 
Example 4
Source File: WithBDDMockito.java    From mockito-java8 with Apache License 2.0 4 votes vote down vote up
/**
 * Delegates call to {@link BDDMockito#doNothing()}
 */
default BDDMockito.BDDStubber willDoNothing() {
    return BDDMockito.willDoNothing();
}
 
Example 5
Source File: WithBDDMockito.java    From mockito-java8 with Apache License 2.0 4 votes vote down vote up
/**
 * Delegates call to {@link BDDMockito#doReturn(Object)}
 */
default BDDMockito.BDDStubber willReturn(Object toBeReturned) {
    return BDDMockito.willReturn(toBeReturned);
}
 
Example 6
Source File: WithBDDMockito.java    From mockito-java8 with Apache License 2.0 4 votes vote down vote up
/**
 * Delegates call to {@link BDDMockito#doReturn(Object, Object...)}
 */
default BDDMockito.BDDStubber willReturn(Object toBeReturned, Object... toBeReturnedNext) {
    return BDDMockito.willReturn(toBeReturned, toBeReturnedNext);
}
 
Example 7
Source File: WithBDDMockito.java    From mockito-java8 with Apache License 2.0 4 votes vote down vote up
/**
 * Delegates call to {@link BDDMockito#doCallRealMethod()}
 */
default BDDMockito.BDDStubber willCallRealMethod() {
    return BDDMockito.willCallRealMethod();
}