Class NewInvocationControlImpl<T>
java.lang.Object
org.powermock.api.easymock.internal.invocationcontrol.NewInvocationControlImpl<T>
- All Implemented Interfaces:
DefaultBehavior,NewInvocationControl<org.easymock.IExpectationSetters<T>>
public class NewInvocationControlImpl<T>
extends Object
implements NewInvocationControl<org.easymock.IExpectationSetters<T>>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate booleanprivate final InvocationSubstitute<T> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.easymock.IExpectationSetters<T> expectSubstitutionLogic(Object... arguments) Expect a call to the new instance substitution logic.Invoke the invocation controlReplay the given objects or classes.Reset the given objects or classes.Verify the given objects or classes.
-
Field Details
-
substitute
-
subsitutionType
-
hasReplayed
private boolean hasReplayed -
hasVerified
private boolean hasVerified
-
-
Constructor Details
-
NewInvocationControlImpl
-
-
Method Details
-
invoke
Description copied from interface:NewInvocationControlInvoke the invocation control- Specified by:
invokein interfaceNewInvocationControl<T>- Throws:
Exception
-
expectSubstitutionLogic
public org.easymock.IExpectationSetters<T> expectSubstitutionLogic(Object... arguments) throws Exception Description copied from interface:NewInvocationControlExpect a call to the new instance substitution logic.- Specified by:
expectSubstitutionLogicin interfaceNewInvocationControl<T>- Throws:
Exception
-
replay
Replay the given objects or classes. May throw exception if replay is not needed or not supported.- Specified by:
replayin interfaceDefaultBehavior- Returns:
- the result of the replay (may be
null).
-
verify
Verify the given objects or classes. May throw exception if verify is not needed or not supported.- Specified by:
verifyin interfaceDefaultBehavior- Returns:
- the result of the verification (may be
null).
-
reset
Reset the given objects or classes. May throw exception if reset is not needed or not supported.- Specified by:
resetin interfaceDefaultBehavior- Returns:
- the result of the replay (may be
null).
-