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_, toString
public boolean matches(Object argument)
ArgumentMatcher
The 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 argumentBaseMatcher
public void describeTo(Description description)
SelfDescribing
describeTo
in interface SelfDescribing
describeTo
in class ArgumentMatcher<T>
description
- The description to be built or appended to.public T getLastValue()
public void captureFrom(Object argument)
captureFrom
in interface CapturesArguments
Copyright © 2018. All rights reserved.