org.powermock.api.mockito.internal.invocation
Class MockitoNewInvocationControl<T>

java.lang.Object
  extended by org.powermock.api.mockito.internal.invocation.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>>


Constructor Summary
MockitoNewInvocationControl(InvocationSubstitute<T> substitute)
           
 
Method Summary
 org.mockito.stubbing.OngoingStubbing<T> expectSubstitutionLogic(java.lang.Object... arguments)
           
 InvocationSubstitute<T> getSubstitute()
           
 java.lang.Object invoke(java.lang.Class<?> type, java.lang.Object[] args, java.lang.Class<?>[] sig)
           
 java.lang.Object replay(java.lang.Object... mocks)
          
 java.lang.Object reset(java.lang.Object... mocks)
          
 java.lang.Object verify(java.lang.Object... mocks)
          
 void verifyNoMoreInteractions()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MockitoNewInvocationControl

public MockitoNewInvocationControl(InvocationSubstitute<T> substitute)
Method Detail

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-2013. All Rights Reserved.