public class MockitoNewInvocationControl<T> extends java.lang.Object implements NewInvocationControl<org.mockito.stubbing.OngoingStubbing<T>>
| Modifier and Type | Field and Description |
|---|---|
private InvocationSubstitute<T> |
substitute |
| Constructor and Description |
|---|
MockitoNewInvocationControl(InvocationSubstitute<T> substitute) |
| Modifier and Type | Method and Description |
|---|---|
org.mockito.stubbing.OngoingStubbing<T> |
expectSubstitutionLogic(java.lang.Object... arguments)
Expect a call to the new instance substitution logic.
|
InvocationSubstitute<T> |
getSubstitute() |
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.
|
void |
verifyNoMoreInteractions() |
private final InvocationSubstitute<T> substitute
public MockitoNewInvocationControl(InvocationSubstitute<T> substitute)
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.mockito.stubbing.OngoingStubbing<T>>java.lang.Exceptionpublic org.mockito.stubbing.OngoingStubbing<T> expectSubstitutionLogic(java.lang.Object... arguments) throws java.lang.Exception
NewInvocationControlexpectSubstitutionLogic in interface NewInvocationControl<org.mockito.stubbing.OngoingStubbing<T>>java.lang.Exceptionpublic InvocationSubstitute<T> getSubstitute()
public 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).public void verifyNoMoreInteractions()