public class MockitoCore extends Object
Constructor and Description |
---|
MockitoCore() |
Modifier and Type | Method and Description |
---|---|
Stubber |
doAnswer(Answer answer) |
Invocation |
getLastInvocation()
For testing purposes only.
|
InOrder |
inOrder(Object... mocks) |
<T> T |
mock(Class<T> classToMock,
MockSettings mockSettings) |
<T> void |
reset(T... mocks) |
IOngoingStubbing |
stub() |
<T> DeprecatedOngoingStubbing<T> |
stub(T methodCall) |
<T> VoidMethodStubbable<T> |
stubVoid(T mock) |
void |
validateMockitoUsage() |
<T> T |
verify(T mock,
VerificationMode mode) |
void |
verifyNoMoreInteractions(Object... mocks) |
void |
verifyNoMoreInteractionsInOrder(List<Object> mocks,
InOrderContext inOrderContext) |
<T> OngoingStubbing<T> |
when(T methodCall) |
public <T> T mock(Class<T> classToMock, MockSettings mockSettings)
public IOngoingStubbing stub()
public <T> DeprecatedOngoingStubbing<T> stub(T methodCall)
public <T> OngoingStubbing<T> when(T methodCall)
public <T> T verify(T mock, VerificationMode mode)
public <T> void reset(T... mocks)
public void verifyNoMoreInteractions(Object... mocks)
public void verifyNoMoreInteractionsInOrder(List<Object> mocks, InOrderContext inOrderContext)
public <T> VoidMethodStubbable<T> stubVoid(T mock)
public void validateMockitoUsage()
public Invocation getLastInvocation()
Copyright © 2018. All rights reserved.