java.io.Serializable, PrintableInvocation, CapturesArgumensFromInvocation, DescribedInvocation, Answerpublic class StubbedInvocationMatcher extends InvocationMatcher implements Answer, java.io.Serializable
| Constructor | Description |
|---|---|
StubbedInvocationMatcher(InvocationMatcher invocation,
Answer answer) |
| 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() |
captureArgumentsFrom, createFrom, getInvocation, getLocation, getMatchers, getMethod, hasSameMethod, hasSimilarMethod, matchespublic StubbedInvocationMatcher(InvocationMatcher invocation, Answer answer)
public java.lang.Object answer(InvocationOnMock invocation) throws java.lang.Throwable
public void addAnswer(Answer answer)
public void markStubUsed(DescribedInvocation usedAt)
public boolean wasUsed()
public java.lang.String toString()
DescribedInvocationtoString in interface DescribedInvocationtoString in interface PrintableInvocationtoString in class InvocationMatcher