java.io.Serializable, InvocationContainerpublic class InvocationContainerImpl extends java.lang.Object implements InvocationContainer, java.io.Serializable
| Constructor | Description |
|---|---|
InvocationContainerImpl(MockingProgress mockingProgress,
MockCreationSettings mockSettings) |
| Modifier and Type | Method | 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() |
|
java.util.List<Invocation> |
getInvocations() |
|
java.util.List<StubbedInvocationMatcher> |
getStubbedInvocations() |
|
boolean |
hasAnswersForStubbing() |
|
boolean |
hasInvocationForPotentialStubbing() |
|
java.lang.Object |
invokedMock() |
|
void |
resetInvocationForPotentialStubbing(InvocationMatcher invocationMatcher) |
|
void |
setAnswersForStubbing(java.util.List<Answer> answers) |
|
void |
setInvocationForPotentialStubbing(InvocationMatcher invocation) |
|
void |
setMethodForStubbing(InvocationMatcher invocation) |
|
java.lang.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 void setAnswersForStubbing(java.util.List<Answer> answers)
public boolean hasAnswersForStubbing()
public boolean hasInvocationForPotentialStubbing()
public void setMethodForStubbing(InvocationMatcher invocation)
public java.lang.String toString()
toString in class java.lang.Objectpublic java.util.List<Invocation> getInvocations()
getInvocations in interface InvocationContainerpublic java.util.List<StubbedInvocationMatcher> getStubbedInvocations()
getStubbedInvocations in interface InvocationContainerpublic java.lang.Object invokedMock()
public InvocationMatcher getInvocationForStubbing()