org.mockito.internal.stubbing
Class InvocationContainerImpl
java.lang.Object
org.mockito.internal.stubbing.InvocationContainerImpl
- All Implemented Interfaces:
- java.io.Serializable, InvocationContainer
public class InvocationContainerImpl
- extends java.lang.Object
- implements InvocationContainer, java.io.Serializable
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
InvocationContainerImpl
public InvocationContainerImpl(MockingProgress mockingProgress)
setInvocationForPotentialStubbing
public void setInvocationForPotentialStubbing(InvocationMatcher invocation)
resetInvocationForPotentialStubbing
public void resetInvocationForPotentialStubbing(InvocationMatcher invocationMatcher)
addAnswer
public void addAnswer(Answer answer)
addConsecutiveAnswer
public void addConsecutiveAnswer(Answer answer)
addAnswer
public void addAnswer(Answer answer,
boolean isConsecutive)
findAnswerFor
public StubbedInvocationMatcher findAnswerFor(Invocation invocation)
addAnswerForVoidMethod
public void addAnswerForVoidMethod(Answer answer)
setAnswersForStubbing
public void setAnswersForStubbing(java.util.List<Answer> answers)
hasAnswersForStubbing
public boolean hasAnswersForStubbing()
hasInvocationForPotentialStubbing
public boolean hasInvocationForPotentialStubbing()
setMethodForStubbing
public void setMethodForStubbing(InvocationMatcher invocation)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
getInvocations
public java.util.List<Invocation> getInvocations()
- Specified by:
getInvocations
in interface InvocationContainer
getStubbedInvocations
public java.util.List<StubbedInvocationMatcher> getStubbedInvocations()
- Specified by:
getStubbedInvocations
in interface InvocationContainer
invokedMock
public java.lang.Object invokedMock()
getInvocationForStubbing
public InvocationMatcher getInvocationForStubbing()