Home
last modified time | relevance | path

Searched refs:OngoingStubbing (Results 1 – 13 of 13) sorted by relevance

/external/mockito/src/main/java/org/mockito/stubbing/
DOngoingStubbing.java34 public interface OngoingStubbing<T> { interface
48 OngoingStubbing<T> thenReturn(T value); in thenReturn()
67 OngoingStubbing<T> thenReturn(T value, T... values); in thenReturn()
89 OngoingStubbing<T> thenThrow(Throwable... throwables); in thenThrow()
114 OngoingStubbing<T> thenThrow(Class<? extends Throwable> throwableType); in thenThrow()
149OngoingStubbing<T> thenThrow(Class<? extends Throwable> toBeThrown, Class<? extends Throwable>... … in thenThrow()
180 OngoingStubbing<T> thenCallRealMethod(); in thenCallRealMethod()
196 OngoingStubbing<T> thenAnswer(Answer<?> answer); in thenAnswer()
217 OngoingStubbing<T> then(Answer<?> answer); in then()
DLenientStubber.java26 <T> OngoingStubbing<T> when(T methodCall); in when()
/external/mockito/src/main/java/org/mockito/internal/stubbing/
DBaseStubbing.java14 import org.mockito.stubbing.OngoingStubbing;
16 public abstract class BaseStubbing<T> implements OngoingStubbing<T> {
19 public OngoingStubbing<T> thenReturn(T value) { in thenReturn()
24 public OngoingStubbing<T> thenReturn(T value, T... values) { in thenReturn()
25 OngoingStubbing<T> stubbing = thenReturn(value); in thenReturn()
37 private OngoingStubbing<T> thenThrow(Throwable throwable) { in thenThrow()
42 public OngoingStubbing<T> thenThrow(Throwable... throwables) { in thenThrow()
46 OngoingStubbing<T> stubbing = null; in thenThrow()
58 public OngoingStubbing<T> thenThrow(Class<? extends Throwable> throwableType) { in thenThrow()
67 …public OngoingStubbing<T> thenThrow(Class<? extends Throwable> toBeThrown, Class<? extends Throwab… in thenThrow()
[all …]
DConsecutiveStubbing.java8 import org.mockito.stubbing.OngoingStubbing;
17 public OngoingStubbing<T> thenAnswer(Answer<?> answer) { in thenAnswer()
22 public OngoingStubbing<T> then(Answer<?> answer) { in then()
DOngoingStubbingImpl.java10 import org.mockito.stubbing.OngoingStubbing;
26 public OngoingStubbing<T> thenAnswer(Answer<?> answer) { in thenAnswer()
36 public OngoingStubbing<T> then(Answer<?> answer) { in then()
DDefaultLenientStubber.java11 import org.mockito.stubbing.OngoingStubbing;
59 public <T> OngoingStubbing<T> when(T methodCall) { in when()
/external/mockito/src/main/java/org/mockito/internal/progress/
DMockingProgressImpl.java17 import org.mockito.stubbing.OngoingStubbing;
32 private OngoingStubbing<?> ongoingStubbing;
50 public void reportOngoingStubbing(OngoingStubbing ongoingStubbing) {
54 public OngoingStubbing<?> pullOngoingStubbing() {
55 OngoingStubbing<?> temp = ongoingStubbing;
DMockingProgress.java12 import org.mockito.stubbing.OngoingStubbing;
18 void reportOngoingStubbing(OngoingStubbing<?> ongoingStubbing); in reportOngoingStubbing()
20 OngoingStubbing<?> pullOngoingStubbing(); in pullOngoingStubbing()
/external/mockito/src/test/java/org/mockitousage/bugs/
DIOOBExceptionShouldNotBeThrownWhenNotCodingFluentlyTest.java9 import org.mockito.stubbing.OngoingStubbing;
27 OngoingStubbing<String> mapOngoingStubbing = when(map.get(anyString())); in second_stubbing_throws_IndexOutOfBoundsException()
/external/grpc-grpc-java/core/src/test/java/io/grpc/internal/
DAbstractReadableBufferTest.java28 import org.mockito.stubbing.OngoingStubbing;
58 OngoingStubbing<Integer> stub = when(buffer.readUnsignedByte()); in mockBytes()
/external/mockito/src/main/java/org/mockito/internal/
DMockitoCore.java31 import org.mockito.stubbing.OngoingStubbing;
74 public <T> OngoingStubbing<T> when(T methodCall) { in when()
78 OngoingStubbing<T> stubbing = (OngoingStubbing<T>) mockingProgress.pullOngoingStubbing(); in when()
/external/mockito/src/main/java/org/mockito/
DBDDMockito.java8 import org.mockito.stubbing.OngoingStubbing;
149 private final OngoingStubbing<T> mockitoOngoingStubbing;
151 public BDDOngoingStubbingImpl(OngoingStubbing<T> ongoingStubbing) { in BDDOngoingStubbingImpl()
DMockito.java34 import org.mockito.stubbing.OngoingStubbing;
2091 public static <T> OngoingStubbing<T> when(T methodCall) { in when()