public class Any extends ArgumentMatcher implements Serializable
Modifier and Type | Method and Description |
---|---|
void |
describeTo(Description description)
Generates a description of the object.
|
boolean |
matches(Object actual)
Returns whether this matcher accepts the given argument.
|
_dont_implement_Matcher___instead_extend_BaseMatcher_, describeMismatch, toString
public static final Any ANY
public boolean matches(Object actual)
ArgumentMatcher
The method should never assert if the argument doesn't match. It should only return false.
matches
in interface Matcher
matches
in class ArgumentMatcher
actual
- the argumentBaseMatcher
public void describeTo(Description description)
SelfDescribing
describeTo
in interface SelfDescribing
describeTo
in class ArgumentMatcher
description
- The description to be built or appended to.Copyright © 2016. All rights reserved.