public class CapturingMatcher<T> extends ArgumentMatcher<T> implements CapturesArguments, Serializable
| Constructor and Description |
|---|
CapturingMatcher() |
| Modifier and Type | Method and Description |
|---|---|
void |
captureFrom(Object argument) |
void |
describeTo(Description description)
Generates a description of the object.
|
List<T> |
getAllValues() |
T |
getLastValue() |
boolean |
matches(Object argument)
Returns whether this matcher accepts the given argument.
|
_dont_implement_Matcher___instead_extend_BaseMatcher_, toStringpublic boolean matches(Object argument)
ArgumentMatcherThe method should never assert if the argument doesn't match. It should only return false.
matches in interface Matcher<T>matches in class ArgumentMatcher<T>argument - the argumentBaseMatcherpublic void describeTo(Description description)
SelfDescribingdescribeTo in interface SelfDescribingdescribeTo in class ArgumentMatcher<T>description - The description to be built or appended to.public T getLastValue()
public void captureFrom(Object argument)
captureFrom in interface CapturesArgumentsCopyright © 2018. All rights reserved.