org.powermock.api.mockito.internal.invocationcontrol
Class MockitoNewInvocationControl<T>
java.lang.Object
org.powermock.api.mockito.internal.invocationcontrol.MockitoNewInvocationControl<T>
- All Implemented Interfaces:
- DefaultBehavior, NewInvocationControl<org.mockito.stubbing.OngoingStubbing<T>>
public class MockitoNewInvocationControl<T>
- extends java.lang.Object
- implements NewInvocationControl<org.mockito.stubbing.OngoingStubbing<T>>
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MockitoNewInvocationControl
public MockitoNewInvocationControl(InvocationSubstitute<T> substitute)
invoke
public java.lang.Object invoke(java.lang.Class<?> type,
java.lang.Object[] args,
java.lang.Class<?>[] sig)
throws java.lang.Exception
- Specified by:
invoke in interface NewInvocationControl<org.mockito.stubbing.OngoingStubbing<T>>
- Throws:
java.lang.Exception
expectSubstitutionLogic
public org.mockito.stubbing.OngoingStubbing<T> expectSubstitutionLogic(java.lang.Object... arguments)
throws java.lang.Exception
- Specified by:
expectSubstitutionLogic in interface NewInvocationControl<org.mockito.stubbing.OngoingStubbing<T>>
- Throws:
java.lang.Exception
getSubstitute
public InvocationSubstitute<T> getSubstitute()
replay
public java.lang.Object replay(java.lang.Object... mocks)
-
- Specified by:
replay in interface DefaultBehavior
verify
public java.lang.Object verify(java.lang.Object... mocks)
-
- Specified by:
verify in interface DefaultBehavior
reset
public java.lang.Object reset(java.lang.Object... mocks)
-
- Specified by:
reset in interface DefaultBehavior
verifyNoMoreInteractions
public void verifyNoMoreInteractions()
Copyright © 2007-2012. All Rights Reserved.