public class NewInvocationControlImpl<T> extends java.lang.Object implements NewInvocationControl<org.easymock.IExpectationSetters<T>>
| Modifier and Type | Field and Description |
|---|---|
private boolean |
hasReplayed |
private boolean |
hasVerified |
private java.lang.Class<T> |
subsitutionType |
private InvocationSubstitute<T> |
substitute |
| Constructor and Description |
|---|
NewInvocationControlImpl(InvocationSubstitute<T> substitute,
java.lang.Class<T> type) |
| Modifier and Type | Method and Description |
|---|---|
org.easymock.IExpectationSetters<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
|
java.lang.Object |
replay(java.lang.Object... mocks)
Replay the given objects or classes.
|
java.lang.Object |
reset(java.lang.Object... mocks)
Reset the given objects or classes.
|
java.lang.Object |
verify(java.lang.Object... mocks)
Verify the given objects or classes.
|
private final InvocationSubstitute<T> substitute
private final java.lang.Class<T> subsitutionType
private boolean hasReplayed
private boolean hasVerified
public NewInvocationControlImpl(InvocationSubstitute<T> substitute, java.lang.Class<T> type)
public java.lang.Object invoke(java.lang.Class<?> type,
java.lang.Object[] args,
java.lang.Class<?>[] sig)
throws java.lang.Exception
NewInvocationControlinvoke in interface NewInvocationControl<org.easymock.IExpectationSetters<T>>java.lang.Exceptionpublic org.easymock.IExpectationSetters<T> expectSubstitutionLogic(java.lang.Object... arguments) throws java.lang.Exception
NewInvocationControlexpectSubstitutionLogic in interface NewInvocationControl<org.easymock.IExpectationSetters<T>>java.lang.Exceptionpublic java.lang.Object replay(java.lang.Object... mocks)
replay in interface DefaultBehaviornull).public java.lang.Object verify(java.lang.Object... mocks)
verify in interface DefaultBehaviornull).public java.lang.Object reset(java.lang.Object... mocks)
reset in interface DefaultBehaviornull).