public class InvocationContainerImpl extends Object implements InvocationContainer, Serializable
Constructor and Description |
---|
InvocationContainerImpl(MockingProgress mockingProgress,
MockCreationSettings mockSettings) |
Modifier and Type | Method and Description |
---|---|
void |
addAnswer(Answer answer) |
void |
addAnswer(Answer answer,
boolean isConsecutive) |
void |
addAnswerForVoidMethod(Answer answer) |
void |
addConsecutiveAnswer(Answer answer) |
StubbedInvocationMatcher |
findAnswerFor(Invocation invocation) |
InvocationMatcher |
getInvocationForStubbing() |
List<Invocation> |
getInvocations() |
List<StubbedInvocationMatcher> |
getStubbedInvocations() |
boolean |
hasAnswersForStubbing() |
boolean |
hasInvocationForPotentialStubbing() |
Object |
invokedMock() |
void |
resetInvocationForPotentialStubbing(InvocationMatcher invocationMatcher) |
void |
setAnswersForStubbing(List<Answer> answers) |
void |
setInvocationForPotentialStubbing(InvocationMatcher invocation) |
void |
setMethodForStubbing(InvocationMatcher invocation) |
String |
toString() |
public InvocationContainerImpl(MockingProgress mockingProgress, MockCreationSettings mockSettings)
public void setInvocationForPotentialStubbing(InvocationMatcher invocation)
public void resetInvocationForPotentialStubbing(InvocationMatcher invocationMatcher)
public void addAnswer(Answer answer)
public void addConsecutiveAnswer(Answer answer)
public void addAnswer(Answer answer, boolean isConsecutive)
public StubbedInvocationMatcher findAnswerFor(Invocation invocation)
public void addAnswerForVoidMethod(Answer answer)
public boolean hasAnswersForStubbing()
public boolean hasInvocationForPotentialStubbing()
public void setMethodForStubbing(InvocationMatcher invocation)
public List<Invocation> getInvocations()
getInvocations
in interface InvocationContainer
public List<StubbedInvocationMatcher> getStubbedInvocations()
getStubbedInvocations
in interface InvocationContainer
public Object invokedMock()
public InvocationMatcher getInvocationForStubbing()
Mockito, MIT License