public interface NewInvocationControl<T> extends DefaultBehavior
InvocationSubstitute
with the
mock object created when invoking
InvocationSubstitute.performSubstitutionLogic(Object...)
object.Modifier and Type | Method and Description |
---|---|
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 constructor invocation control
|
replay, reset
java.lang.Object invoke(java.lang.Class<?> type, java.lang.Object[] args, java.lang.Class<?>[] sig) throws java.lang.Exception
type
- invocation target typeargs
- arguments of constructor invocationsig
- parameters of a constructorjava.lang.Exception
T expectSubstitutionLogic(java.lang.Object... arguments) throws java.lang.Exception
arguments
- constructor argumentsjava.lang.Exception