|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.mockito.internal.invocation.InvocationMatcher org.mockito.internal.stubbing.StubbedInvocationMatcher
public class StubbedInvocationMatcher
Constructor Summary | |
---|---|
StubbedInvocationMatcher(InvocationMatcher invocation,
Answer answer)
|
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public StubbedInvocationMatcher(InvocationMatcher invocation, Answer answer)
Method Detail |
---|
public java.lang.Object answer(InvocationOnMock invocation) throws java.lang.Throwable
answer
in interface Answer
invocation
- the invocation on the mock.
java.lang.Throwable
- the throwable to be thrownpublic void addAnswer(Answer answer)
public void markStubUsed(DescribedInvocation usedAt)
public boolean wasUsed()
public java.lang.String toString()
DescribedInvocation
toString
in interface PrintableInvocation
toString
in interface DescribedInvocation
toString
in class InvocationMatcher
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |