T
- type of mock object to handlepublic class MockHandler<T> extends Object implements MockitoInvocationHandler, MockHandlerInterface<T>
Constructor and Description |
---|
MockHandler(MockHandlerInterface<T> oldMockHandler) |
MockHandler(MockSettingsImpl mockSettings) |
Modifier and Type | Method and Description |
---|---|
InvocationContainer |
getInvocationContainer() |
MockSettingsImpl |
getMockSettings() |
Object |
handle(Invocation invocation) |
void |
setAnswersForStubbing(List<Answer> answers) |
VoidMethodStubbable<T> |
voidMethodStubbable(T mock) |
public MockHandler(MockSettingsImpl mockSettings)
public MockHandler(MockHandlerInterface<T> oldMockHandler)
public Object handle(Invocation invocation) throws Throwable
handle
in interface MockitoInvocationHandler
Throwable
public VoidMethodStubbable<T> voidMethodStubbable(T mock)
voidMethodStubbable
in interface MockHandlerInterface<T>
public MockSettingsImpl getMockSettings()
getMockSettings
in interface MockHandlerInterface<T>
public void setAnswersForStubbing(List<Answer> answers)
setAnswersForStubbing
in interface MockHandlerInterface<T>
public InvocationContainer getInvocationContainer()
getInvocationContainer
in interface MockHandlerInterface<T>
Copyright © 2018. All rights reserved.