org.powermock.api.mockito.internal.expectation
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 java.lang.Object
- implements org.mockito.stubbing.OngoingStubbing<T>
Implementation of OngoingStubbing that delegates invocations to all supplied ctors
|
Method Summary |
|
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)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DelegatingToConstructorsOngoingStubbing
public DelegatingToConstructorsOngoingStubbing(java.lang.reflect.Constructor<?>[] ctors,
org.mockito.stubbing.OngoingStubbing<T> stubbing)
thenReturn
public org.mockito.stubbing.OngoingStubbing<T> thenReturn(T value)
- Specified by:
thenReturn in interface org.mockito.stubbing.OngoingStubbing<T>
thenReturn
public org.mockito.stubbing.OngoingStubbing<T> thenReturn(T value,
T... values)
- Specified by:
thenReturn in interface org.mockito.stubbing.OngoingStubbing<T>
thenThrow
public org.mockito.stubbing.OngoingStubbing<T> thenThrow(java.lang.Throwable... throwables)
- Specified by:
thenThrow in interface org.mockito.stubbing.OngoingStubbing<T>
thenThrow
public org.mockito.stubbing.OngoingStubbing<T> thenThrow(java.lang.Class<? extends java.lang.Throwable>... throwableClasses)
- Specified by:
thenThrow in interface org.mockito.stubbing.OngoingStubbing<T>
thenCallRealMethod
public org.mockito.stubbing.OngoingStubbing<T> thenCallRealMethod()
- Specified by:
thenCallRealMethod in interface org.mockito.stubbing.OngoingStubbing<T>
thenAnswer
public org.mockito.stubbing.OngoingStubbing<T> thenAnswer(org.mockito.stubbing.Answer<?> answer)
- Specified by:
thenAnswer in interface org.mockito.stubbing.OngoingStubbing<T>
then
public org.mockito.stubbing.OngoingStubbing<T> then(org.mockito.stubbing.Answer<?> answer)
- Specified by:
then in interface org.mockito.stubbing.OngoingStubbing<T>
getMock
public <M> M getMock()
- Specified by:
getMock in interface org.mockito.stubbing.OngoingStubbing<T>
Copyright © 2007-2013. All Rights Reserved.