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>>
-
-
Constructor Summary
Constructors Constructor Description NewInvocationControlImpl(InvocationSubstitute<T> substitute, Class<T> type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.easymock.IExpectationSetters<T>
expectSubstitutionLogic(Object... arguments)
Expect a call to the new instance substitution logic.Object
invoke(Class<?> type, Object[] args, Class<?>[] sig)
Invoke the invocation controlObject
replay(Object... mocks)
Replay the given objects or classes.Object
reset(Object... mocks)
Reset the given objects or classes.Object
verify(Object... mocks)
Verify the given objects or classes.
-
-
-
Constructor Detail
-
NewInvocationControlImpl
public NewInvocationControlImpl(InvocationSubstitute<T> substitute, Class<T> type)
-
-
Method Detail
-
invoke
public Object invoke(Class<?> type, Object[] args, Class<?>[] sig) throws Exception
Description copied from interface:NewInvocationControl
Invoke the invocation control- Specified by:
invoke
in interfaceNewInvocationControl<T>
- Throws:
Exception
-
expectSubstitutionLogic
public org.easymock.IExpectationSetters<T> expectSubstitutionLogic(Object... arguments) throws Exception
Description copied from interface:NewInvocationControl
Expect a call to the new instance substitution logic.- Specified by:
expectSubstitutionLogic
in interfaceNewInvocationControl<T>
- Throws:
Exception
-
replay
public Object replay(Object... mocks)
Replay the given objects or classes. May throw exception if replay is not needed or not supported.- Specified by:
replay
in interfaceDefaultBehavior
- Returns:
- the result of the replay (may be
null
).
-
verify
public Object verify(Object... mocks)
Verify the given objects or classes. May throw exception if verify is not needed or not supported.- Specified by:
verify
in interfaceDefaultBehavior
- Returns:
- the result of the verification (may be
null
).
-
reset
public Object reset(Object... mocks)
Reset the given objects or classes. May throw exception if reset is not needed or not supported.- Specified by:
reset
in interfaceDefaultBehavior
- Returns:
- the result of the replay (may be
null
).
-
-