public class MockitoNewInvocationControl<T> extends Object implements NewInvocationControl<org.mockito.stubbing.OngoingStubbing<T>>
| Constructor and Description |
|---|
MockitoNewInvocationControl(InvocationSubstitute<T> substitute) |
| Modifier and Type | Method and Description |
|---|---|
org.mockito.stubbing.OngoingStubbing<T> |
expectSubstitutionLogic(Object... arguments)
Expect a call to the new instance substitution logic.
|
InvocationSubstitute<T> |
getSubstitute() |
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.
|
void |
verify(org.mockito.verification.VerificationMode verificationMode) |
void |
verifyNoMoreInteractions() |
public MockitoNewInvocationControl(InvocationSubstitute<T> substitute)
public Object invoke(Class<?> type, Object[] args, Class<?>[] sig) throws Exception
NewInvocationControlinvoke in interface NewInvocationControl<org.mockito.stubbing.OngoingStubbing<T>>type - invocation target typeargs - arguments of constructor invocationsig - parameters of a constructorExceptionpublic org.mockito.stubbing.OngoingStubbing<T> expectSubstitutionLogic(Object... arguments) throws Exception
NewInvocationControlexpectSubstitutionLogic in interface NewInvocationControl<org.mockito.stubbing.OngoingStubbing<T>>arguments - constructor argumentsExceptionpublic InvocationSubstitute<T> getSubstitute()
public Object replay(Object... mocks)
DefaultBehaviorreplay in interface DefaultBehaviormocks - The object(s) to replay. May be null.null).public void verify(org.mockito.verification.VerificationMode verificationMode)
public Object reset(Object... mocks)
DefaultBehaviorreset in interface DefaultBehaviormocks - The object(s) to replay. May be null.null).public void verifyNoMoreInteractions()
Copyright © 2025. All rights reserved.