public class StubbedInvocationMatcher extends InvocationMatcher implements Answer, Serializable
Constructor and Description |
---|
StubbedInvocationMatcher(InvocationMatcher invocation,
Answer answer) |
Modifier and Type | Method and Description |
---|---|
void |
addAnswer(Answer answer) |
Object |
answer(InvocationOnMock invocation) |
void |
markStubUsed(PrintableInvocation usedAt) |
String |
toString() |
boolean |
wasUsed() |
captureArgumentsFrom, createFrom, getInvocation, getLocation, getMatchers, getMethod, hasSameMethod, hasSimilarMethod, matches, toString
public StubbedInvocationMatcher(InvocationMatcher invocation, Answer answer)
public Object answer(InvocationOnMock invocation) throws Throwable
public void addAnswer(Answer answer)
public void markStubUsed(PrintableInvocation usedAt)
public boolean wasUsed()
public String toString()
toString
in interface PrintableInvocation
toString
in class InvocationMatcher
Copyright © 2018. All rights reserved.