Package org.mockito.internal.stubbing
Class InvocationContainerImpl
java.lang.Object
org.mockito.internal.stubbing.InvocationContainerImpl
- All Implemented Interfaces:
Serializable
,InvocationContainer
- See Also:
-
Constructor Summary
-
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.void
addAnswer
(Answer<?> answer, Strictness stubbingStrictness) void
addConsecutiveAnswer
(Answer<?> answer) void
findAnswerFor
(Invocation invocation) Answer
<?> Stubbings in ascending order, most recent lastboolean
boolean
void
resetInvocationForPotentialStubbing
(MatchableInvocation invocationMatcher) void
setAnswersForStubbing
(List<Answer<?>> answers, Strictness strictness) Sets the answers declared with 'doAnswer' style.void
setInvocationForPotentialStubbing
(MatchableInvocation invocation) void
setMethodForStubbing
(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
-