public class InvocationMatcher extends Object implements PrintableInvocation, PrintingFriendlyInvocation, CapturesArgumensFromInvocation, Serializable
Constructor and Description |
---|
InvocationMatcher(Invocation invocation) |
InvocationMatcher(Invocation invocation,
List<Matcher> matchers) |
Modifier and Type | Method and Description |
---|---|
void |
captureArgumentsFrom(Invocation i) |
static List<InvocationMatcher> |
createFrom(List<Invocation> invocations) |
Invocation |
getInvocation() |
Location |
getLocation() |
List<Matcher> |
getMatchers() |
Method |
getMethod() |
boolean |
hasSameMethod(Invocation candidate) |
boolean |
hasSimilarMethod(Invocation candidate)
similar means the same method name, same mock, unverified
and: if arguments are the same cannot be overloaded
|
boolean |
matches(Invocation actual) |
String |
toString() |
String |
toString(PrintSettings printSettings) |
public InvocationMatcher(Invocation invocation, List<Matcher> matchers)
public InvocationMatcher(Invocation invocation)
public Method getMethod()
public Invocation getInvocation()
public String toString()
toString
in interface PrintableInvocation
toString
in class Object
public boolean matches(Invocation actual)
public boolean hasSimilarMethod(Invocation candidate)
public boolean hasSameMethod(Invocation candidate)
public Location getLocation()
getLocation
in interface PrintableInvocation
public String toString(PrintSettings printSettings)
toString
in interface PrintingFriendlyInvocation
public void captureArgumentsFrom(Invocation i)
captureArgumentsFrom
in interface CapturesArgumensFromInvocation
public static List<InvocationMatcher> createFrom(List<Invocation> invocations)
Copyright © 2018. All rights reserved.