T - public class DelegatingToConstructorsOngoingStubbing<T>
extends java.lang.Object
implements org.mockito.stubbing.OngoingStubbing<T>
| Modifier and Type | Class and Description |
|---|---|
private class |
DelegatingToConstructorsOngoingStubbing.InvokeStubMethod |
| Modifier and Type | Field and Description |
|---|---|
private java.lang.reflect.Constructor<?>[] |
ctors |
private org.mockito.stubbing.OngoingStubbing<T> |
stubbing |
| 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>... throwableClasses) |
org.mockito.stubbing.OngoingStubbing<T> |
thenThrow(java.lang.Throwable... throwables) |
private final org.mockito.stubbing.OngoingStubbing<T> stubbing
private final java.lang.reflect.Constructor<?>[] ctors
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>... throwableClasses)
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>