Lines Matching defs:given
12 * Behavior Driven Development style of writing tests uses <b>//given //when //then</b> comments as fundamental parts of your test methods.
17 * The problem is that current stubbing api with canonical role of <b>when</b> word does not integrate nicely with <b>//given //when //then</b> comments.
18 * It's because stubbing belongs to <b>given</b> component of the test and not to the <b>when</b> component of the test.
19 * Hence {@link BDDMockito} class introduces an alias so that you stub method calls with {@link BDDMockito#given(Object)} method.
20 * Now it really nicely integrates with the <b>given</b> component of a BDD style test!
30 * //given
31 * given(seller.askForBread()).willReturn(new Bread());
43 * //given
44 * willThrow(new RuntimeException("boo")).given(mock).foo();
177 public static <T> BDDMyOngoingStubbing<T> given(T methodCall) {
226 <T> T given(T mock);
238 * @see BDDMockito.BDDStubber#given(java.lang.Object)
240 public <T> T given(T mock) {