T - public class DelegatingToConstructorsOngoingStubbing<T>
extends java.lang.Object
implements org.mockito.stubbing.OngoingStubbing<T>
| Constructor and Description |
|---|
DelegatingToConstructorsOngoingStubbing(java.lang.reflect.Constructor<?>[] ctors,
org.mockito.stubbing.OngoingStubbing<T> stubbing) |
| Modifier and Type | Method and Description |
|---|---|
<M> M |
getMock() |
org.mockito.stubbing.OngoingStubbing<T> |
then(org.mockito.stubbing.Answer<?> answer) |
org.mockito.stubbing.OngoingStubbing<T> |
thenAnswer(org.mockito.stubbing.Answer<?> answer) |
org.mockito.stubbing.OngoingStubbing<T> |
thenCallRealMethod() |
org.mockito.stubbing.OngoingStubbing<T> |
thenReturn(T value) |
org.mockito.stubbing.OngoingStubbing<T> |
thenReturn(T value,
T... values) |
org.mockito.stubbing.OngoingStubbing<T> |
thenThrow(java.lang.Class<? extends java.lang.Throwable> throwableType) |
org.mockito.stubbing.OngoingStubbing<T> |
thenThrow(java.lang.Class<? extends java.lang.Throwable> toBeThrown,
java.lang.Class<? extends java.lang.Throwable>[] nextToBeThrown) |
org.mockito.stubbing.OngoingStubbing<T> |
thenThrow(java.lang.Throwable... throwables) |
public DelegatingToConstructorsOngoingStubbing(java.lang.reflect.Constructor<?>[] ctors,
org.mockito.stubbing.OngoingStubbing<T> stubbing)
public org.mockito.stubbing.OngoingStubbing<T> thenReturn(T value)
thenReturn in interface org.mockito.stubbing.OngoingStubbing<T>public org.mockito.stubbing.OngoingStubbing<T> thenReturn(T value, T... values)
thenReturn in interface org.mockito.stubbing.OngoingStubbing<T>public org.mockito.stubbing.OngoingStubbing<T> thenThrow(java.lang.Throwable... throwables)
thenThrow in interface org.mockito.stubbing.OngoingStubbing<T>public org.mockito.stubbing.OngoingStubbing<T> thenThrow(java.lang.Class<? extends java.lang.Throwable> throwableType)
thenThrow in interface org.mockito.stubbing.OngoingStubbing<T>public org.mockito.stubbing.OngoingStubbing<T> thenThrow(java.lang.Class<? extends java.lang.Throwable> toBeThrown, java.lang.Class<? extends java.lang.Throwable>[] nextToBeThrown)
thenThrow in interface org.mockito.stubbing.OngoingStubbing<T>public org.mockito.stubbing.OngoingStubbing<T> thenCallRealMethod()
thenCallRealMethod in interface org.mockito.stubbing.OngoingStubbing<T>public org.mockito.stubbing.OngoingStubbing<T> thenAnswer(org.mockito.stubbing.Answer<?> answer)
thenAnswer in interface org.mockito.stubbing.OngoingStubbing<T>public org.mockito.stubbing.OngoingStubbing<T> then(org.mockito.stubbing.Answer<?> answer)
then in interface org.mockito.stubbing.OngoingStubbing<T>public <M> M getMock()
getMock in interface org.mockito.stubbing.OngoingStubbing<T>