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