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 void
addAnswer(Answer answer)
java.lang.Object
answer(InvocationOnMock invocation)
void
markStubUsed(DescribedInvocation usedAt)
java.lang.String
toString()
Describes the invocation in the human friendly way.boolean
wasUsed()
-
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:DescribedInvocation
Describes the invocation in the human friendly way.- Specified by:
toString
in interfaceDescribedInvocation
- Specified by:
toString
in interfacePrintableInvocation
- Overrides:
toString
in classInvocationMatcher
- Returns:
- the description of this invocation.
-
-