Package org.mockito.internal.stubbing
Class InvocationContainerImpl
java.lang.Object
org.mockito.internal.stubbing.InvocationContainerImpl
- All Implemented Interfaces:
Serializable,InvocationContainer
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAnswer(Answer<?> answer, boolean isConsecutive, Strictness stubbingStrictness) Adds new stubbed answer and returns the invocation matcher the answer was added to.voidaddAnswer(Answer<?> answer, Strictness stubbingStrictness) voidaddConsecutiveAnswer(Answer<?> answer) voidfindAnswerFor(Invocation invocation) Answer<?> Stubbings in ascending order, most recent lastbooleanbooleanvoidresetInvocationForPotentialStubbing(MatchableInvocation invocationMatcher) voidsetAnswersForStubbing(List<Answer<?>> answers, Strictness strictness) Sets the answers declared with 'doAnswer' style.voidsetInvocationForPotentialStubbing(MatchableInvocation invocation) voidsetMethodForStubbing(MatchableInvocation invocation) toString()
-
Constructor Details
-
InvocationContainerImpl
-
-
Method Details
-
setInvocationForPotentialStubbing
-
resetInvocationForPotentialStubbing
-
addAnswer
-
addAnswer
public StubbedInvocationMatcher addAnswer(Answer<?> answer, boolean isConsecutive, Strictness stubbingStrictness) Adds new stubbed answer and returns the invocation matcher the answer was added to. -
addConsecutiveAnswer
-
findAnswerFor
-
setAnswersForStubbing
Sets the answers declared with 'doAnswer' style. -
hasAnswersForStubbing
public boolean hasAnswersForStubbing() -
hasInvocationForPotentialStubbing
public boolean hasInvocationForPotentialStubbing() -
setMethodForStubbing
-
toString
-
getInvocations
-
clearInvocations
public void clearInvocations() -
getStubbingsAscending
Stubbings in ascending order, most recent last -
invokedMock
-
findStubbedAnswer
-