120121122123124125126127
mockitoStubber.addAnswerForVoidMethod(new ThrowsException(throwable)); return this; } public VoidMethodStubbable<T> toReturn() { mockitoStubber.addAnswerForVoidMethod(new DoesNothing()); return this; }
853854855856857858859
* </pre> * * @return stubber - to select a method for stubbing */ public static Stubber doNothing() { return doAnswer(new DoesNothing()); }
804805806807808809810
134135136137138139140141
984985986987988989990
130131132133134135136137
1271127212731274127512761277
* See examples in javadoc for {@link Mockito} class * * @return stubber - to select a method for stubbing */ public static Stubber doNothing() { return MOCKITO_CORE.doAnswer(new DoesNothing()); }
5253545556575859
answers.add(new ThrowsExceptionClass(toBeThrown)); return this; } public Stubber doNothing() { answers.add(new DoesNothing()); return this; }
2324252627282930
invocationContainerImpl.addAnswerForVoidMethod(new ThrowsException(throwable)); return this; } public VoidMethodStubbable<T> toReturn() { invocationContainerImpl.addAnswerForVoidMethod(new DoesNothing()); return this; }
2223242526272829