public abstract class BaseMatcher<T> extends Object implements Matcher<T>
Matcher
Constructor and Description |
---|
BaseMatcher() |
Modifier and Type | Method and Description |
---|---|
void |
_dont_implement_Matcher___instead_extend_BaseMatcher_()
This method simply acts a friendly reminder not to implement Matcher directly and
instead extend BaseMatcher.
|
void |
describeMismatch(Object item,
Description description)
Generate a description of why the matcher has not accepted the item.
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
describeTo
public final void _dont_implement_Matcher___instead_extend_BaseMatcher_()
Matcher
_dont_implement_Matcher___instead_extend_BaseMatcher_
in interface Matcher<T>
Matcher._dont_implement_Matcher___instead_extend_BaseMatcher_()
public void describeMismatch(Object item, Description description)
Matcher
matches(item)
is false, but
will not check this.describeMismatch
in interface Matcher<T>
item
- The item that the Matcher has rejected.description
- The description to be built or appended to.Copyright © 2016. All rights reserved.