Class DelegatingToConstructorsOngoingStubbing<T>
java.lang.Object
org.powermock.api.mockito.internal.expectation.DelegatingToConstructorsOngoingStubbing<T>
- Type Parameters:
T
-
- All Implemented Interfaces:
org.mockito.internal.progress.IOngoingStubbing
,org.mockito.stubbing.OngoingStubbing<T>
public class DelegatingToConstructorsOngoingStubbing<T>
extends Object
implements org.mockito.stubbing.OngoingStubbing<T>
Implementation of OngoingStubbing that delegates invocations to all supplied ctors
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Constructor<?>[]
private final org.mockito.stubbing.OngoingStubbing<T>
-
Constructor Summary
ConstructorsConstructorDescriptionDelegatingToConstructorsOngoingStubbing
(Constructor<?>[] ctors, org.mockito.stubbing.OngoingStubbing<T> stubbing) -
Method Summary
Modifier and TypeMethodDescription<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>
org.mockito.stubbing.OngoingStubbing<T>
thenReturn
(T value) org.mockito.stubbing.OngoingStubbing<T>
thenReturn
(T value, T... values) org.mockito.stubbing.OngoingStubbing<T>
org.mockito.stubbing.OngoingStubbing<T>
-
Field Details
-
stubbing
-
ctors
-
-
Constructor Details
-
DelegatingToConstructorsOngoingStubbing
public DelegatingToConstructorsOngoingStubbing(Constructor<?>[] ctors, org.mockito.stubbing.OngoingStubbing<T> stubbing)
-
-
Method Details
-
thenReturn
- Specified by:
thenReturn
in interfaceorg.mockito.stubbing.OngoingStubbing<T>
-
thenReturn
- Specified by:
thenReturn
in interfaceorg.mockito.stubbing.OngoingStubbing<T>
-
thenThrow
- Specified by:
thenThrow
in interfaceorg.mockito.stubbing.OngoingStubbing<T>
-
thenThrow
public org.mockito.stubbing.OngoingStubbing<T> thenThrow(Class<? extends Throwable>... throwableClasses) - Specified by:
thenThrow
in interfaceorg.mockito.stubbing.OngoingStubbing<T>
-
thenCallRealMethod
- Specified by:
thenCallRealMethod
in interfaceorg.mockito.stubbing.OngoingStubbing<T>
-
thenAnswer
- Specified by:
thenAnswer
in interfaceorg.mockito.stubbing.OngoingStubbing<T>
-
then
- Specified by:
then
in interfaceorg.mockito.stubbing.OngoingStubbing<T>
-
getMock
public <M> M getMock()- Specified by:
getMock
in interfaceorg.mockito.stubbing.OngoingStubbing<T>
-