public class LocalizedMatcher extends Object implements org.hamcrest.Matcher, ContainsExtraTypeInformation, CapturesArguments, MatcherDecorator, Serializable
| Constructor and Description |
|---|
LocalizedMatcher(org.hamcrest.Matcher actualMatcher) |
| 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 |
captureFrom(Object argument) |
void |
describeTo(org.hamcrest.Description description)
Generates a description of the object.
|
org.hamcrest.Matcher |
getActualMatcher() |
Location |
getLocation() |
boolean |
matches(Object item)
Evaluates the matcher for argument item.
|
String |
toString() |
boolean |
typeMatches(Object object) |
org.hamcrest.SelfDescribing |
withExtraTypeInfo() |
public void _dont_implement_Matcher___instead_extend_BaseMatcher_()
org.hamcrest.Matcher_dont_implement_Matcher___instead_extend_BaseMatcher_ in interface org.hamcrest.Matcherfor reasons why.,
BaseMatcherpublic boolean matches(Object item)
org.hamcrest.Matchermatches in interface org.hamcrest.Matcheritem - the object against which the matcher is evaluated.true if item matches, otherwise false.BaseMatcherpublic void describeTo(org.hamcrest.Description description)
org.hamcrest.SelfDescribingdescribeTo in interface org.hamcrest.SelfDescribingdescription - The description to be built or appended to.public Location getLocation()
public org.hamcrest.SelfDescribing withExtraTypeInfo()
withExtraTypeInfo in interface ContainsExtraTypeInformationpublic boolean typeMatches(Object object)
typeMatches in interface ContainsExtraTypeInformationpublic void captureFrom(Object argument)
captureFrom in interface CapturesArgumentspublic org.hamcrest.Matcher getActualMatcher()
getActualMatcher in interface MatcherDecoratorMockito, MIT License