public class IsAnything<T> extends BaseMatcher<T>
true
.Constructor and Description |
---|
IsAnything() |
IsAnything(java.lang.String message) |
Modifier and Type | Method and Description |
---|---|
static Matcher<java.lang.Object> |
anything()
Creates a matcher that always matches, regardless of the examined object.
|
static Matcher<java.lang.Object> |
anything(java.lang.String description)
Creates a matcher that always matches, regardless of the examined object, but describes
itself with the specified
String . |
void |
describeTo(Description description)
Generates a description of the object.
|
boolean |
matches(java.lang.Object o)
Evaluates the matcher for argument item.
|
_dont_implement_Matcher___instead_extend_BaseMatcher_, describeMismatch, isNotNull, toString
public IsAnything()
public IsAnything(java.lang.String message)
public boolean matches(java.lang.Object o)
Matcher
o
- the object against which the matcher is evaluated.true
if item matches, otherwise false
.BaseMatcher
public void describeTo(Description description)
SelfDescribing
description
- The description to be built or appended to.public static Matcher<java.lang.Object> anything()
public static Matcher<java.lang.Object> anything(java.lang.String description)
String
.description
- a meaningful String
used when describing itself