Package org.mockito.internal.stubbing
Class StubbedInvocationMatcher
- java.lang.Object
-
- org.mockito.internal.invocation.InvocationMatcher
-
- org.mockito.internal.stubbing.StubbedInvocationMatcher
-
- All Implemented Interfaces:
java.io.Serializable,PrintableInvocation,CapturesArgumensFromInvocation,DescribedInvocation,Answer
public class StubbedInvocationMatcher extends InvocationMatcher implements Answer, java.io.Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description StubbedInvocationMatcher(InvocationMatcher invocation, Answer answer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAnswer(Answer answer)java.lang.Objectanswer(InvocationOnMock invocation)voidmarkStubUsed(DescribedInvocation usedAt)java.lang.StringtoString()Describes the invocation in the human friendly way.booleanwasUsed()-
Methods inherited from class org.mockito.internal.invocation.InvocationMatcher
captureArgumentsFrom, createFrom, getInvocation, getLocation, getMatchers, getMethod, hasSameMethod, hasSimilarMethod, matches
-
-
-
-
Constructor Detail
-
StubbedInvocationMatcher
public StubbedInvocationMatcher(InvocationMatcher invocation, Answer answer)
-
-
Method Detail
-
answer
public java.lang.Object answer(InvocationOnMock invocation) throws java.lang.Throwable
-
addAnswer
public void addAnswer(Answer answer)
-
markStubUsed
public void markStubUsed(DescribedInvocation usedAt)
-
wasUsed
public boolean wasUsed()
-
toString
public java.lang.String toString()
Description copied from interface:DescribedInvocationDescribes the invocation in the human friendly way.- Specified by:
toStringin interfaceDescribedInvocation- Specified by:
toStringin interfacePrintableInvocation- Overrides:
toStringin classInvocationMatcher- Returns:
- the description of this invocation.
-
-