public class EasyMockNewInvocationControl<T> extends Object implements NewInvocationControl<org.easymock.IExpectationSetters<T>>
Constructor and Description |
---|
EasyMockNewInvocationControl(InvocationSubstitute<T> substitute,
Class<T> type) |
Modifier and Type | Method and 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 constructor invocation control
|
Object |
replay(Object... mocks)
Replay the given objects or classes.
|
Object |
reset(Object... mocks)
Reset the given objects or classes.
|
Object |
verify(Object... mocks) |
public EasyMockNewInvocationControl(InvocationSubstitute<T> substitute, Class<T> type)
public Object invoke(Class<?> type, Object[] args, Class<?>[] sig) throws Exception
NewInvocationControl
invoke
in interface NewInvocationControl<org.easymock.IExpectationSetters<T>>
type
- invocation target typeargs
- arguments of constructor invocationsig
- parameters of a constructorException
public org.easymock.IExpectationSetters<T> expectSubstitutionLogic(Object... arguments) throws Exception
NewInvocationControl
expectSubstitutionLogic
in interface NewInvocationControl<org.easymock.IExpectationSetters<T>>
arguments
- constructor argumentsException
public Object replay(Object... mocks)
DefaultBehavior
replay
in interface DefaultBehavior
mocks
- The object(s) to replay. May be null
.null
).public Object reset(Object... mocks)
DefaultBehavior
reset
in interface DefaultBehavior
mocks
- The object(s) to replay. May be null
.null
).Copyright © 2019. All rights reserved.