org.powermock.core.spi
Interface NewInvocationControl<T>

All Superinterfaces:
DefaultBehavior

public interface NewInvocationControl<T>
extends DefaultBehavior

A new invocation control pairs up a InvocationSubstitute with the mock object created when invoking InvocationSubstitute.performSubstitutionLogic(Object...) object.


Method Summary
 T expectSubstitutionLogic(java.lang.Object... arguments)
          Expect a call to the new instance substitution logic.
 java.lang.Object invoke(java.lang.Class<?> type, java.lang.Object[] args, java.lang.Class<?>[] sig)
          Invoke the invocation control
 
Methods inherited from interface org.powermock.core.spi.DefaultBehavior
replay, reset, verify
 

Method Detail

invoke

java.lang.Object invoke(java.lang.Class<?> type,
                        java.lang.Object[] args,
                        java.lang.Class<?>[] sig)
                        throws java.lang.Exception
Invoke the invocation control

Throws:
java.lang.Exception

expectSubstitutionLogic

T expectSubstitutionLogic(java.lang.Object... arguments)
                          throws java.lang.Exception
Expect a call to the new instance substitution logic.

Throws:
java.lang.Exception


Copyright © 2007-2012. All Rights Reserved.