Class DelegatingToConstructorsOngoingStubbing<T>
- java.lang.Object
-
- org.powermock.api.mockito.internal.expectation.DelegatingToConstructorsOngoingStubbing<T>
-
- Type Parameters:
T-
- All Implemented Interfaces:
org.mockito.stubbing.OngoingStubbing<T>
public class DelegatingToConstructorsOngoingStubbing<T> extends java.lang.Object implements org.mockito.stubbing.OngoingStubbing<T>Implementation of OngoingStubbing that delegates invocations to all supplied ctors
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private classDelegatingToConstructorsOngoingStubbing.InvokeStubMethod
-
Constructor Summary
Constructors Constructor Description DelegatingToConstructorsOngoingStubbing(java.lang.reflect.Constructor<?>[] ctors, org.mockito.stubbing.OngoingStubbing<T> stubbing)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <M> MgetMock()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)
-
-
-
Field Detail
-
stubbing
private final org.mockito.stubbing.OngoingStubbing<T> stubbing
-
ctors
private final java.lang.reflect.Constructor<?>[] ctors
-
-
Constructor Detail
-
DelegatingToConstructorsOngoingStubbing
public DelegatingToConstructorsOngoingStubbing(java.lang.reflect.Constructor<?>[] ctors, org.mockito.stubbing.OngoingStubbing<T> stubbing)
-
-
Method Detail
-
thenReturn
public org.mockito.stubbing.OngoingStubbing<T> thenReturn(T value)
- Specified by:
thenReturnin interfaceorg.mockito.stubbing.OngoingStubbing<T>
-
thenReturn
public org.mockito.stubbing.OngoingStubbing<T> thenReturn(T value, T... values)
- Specified by:
thenReturnin interfaceorg.mockito.stubbing.OngoingStubbing<T>
-
thenThrow
public org.mockito.stubbing.OngoingStubbing<T> thenThrow(java.lang.Throwable... throwables)
- Specified by:
thenThrowin interfaceorg.mockito.stubbing.OngoingStubbing<T>
-
thenThrow
public org.mockito.stubbing.OngoingStubbing<T> thenThrow(java.lang.Class<? extends java.lang.Throwable> throwableType)
- Specified by:
thenThrowin interfaceorg.mockito.stubbing.OngoingStubbing<T>
-
thenThrow
public org.mockito.stubbing.OngoingStubbing<T> thenThrow(java.lang.Class<? extends java.lang.Throwable> toBeThrown, java.lang.Class<? extends java.lang.Throwable>[] nextToBeThrown)
- Specified by:
thenThrowin interfaceorg.mockito.stubbing.OngoingStubbing<T>
-
thenCallRealMethod
public org.mockito.stubbing.OngoingStubbing<T> thenCallRealMethod()
- Specified by:
thenCallRealMethodin interfaceorg.mockito.stubbing.OngoingStubbing<T>
-
thenAnswer
public org.mockito.stubbing.OngoingStubbing<T> thenAnswer(org.mockito.stubbing.Answer<?> answer)
- Specified by:
thenAnswerin interfaceorg.mockito.stubbing.OngoingStubbing<T>
-
then
public org.mockito.stubbing.OngoingStubbing<T> then(org.mockito.stubbing.Answer<?> answer)
- Specified by:
thenin interfaceorg.mockito.stubbing.OngoingStubbing<T>
-
getMock
public <M> M getMock()
- Specified by:
getMockin interfaceorg.mockito.stubbing.OngoingStubbing<T>
-
-