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 Matcher
for reasons why.
,
BaseMatcher
public boolean matches(Object item)
Matcher
matches
in interface Matcher
item
- the object against which the matcher is evaluated.true
if item matches, otherwise false
.BaseMatcher
public void describeTo(Description description)
SelfDescribing
describeTo
in interface SelfDescribing
description
- The description to be built or appended to.public Location getLocation()
public SelfDescribing withExtraTypeInfo()
withExtraTypeInfo
in interface ContainsExtraTypeInformation
public boolean typeMatches(Object object)
typeMatches
in interface ContainsExtraTypeInformation
public void captureFrom(Object argument)
captureFrom
in interface CapturesArguments
public Matcher getActualMatcher()
getActualMatcher
in interface MatcherDecorator
Copyright © 2018. All rights reserved.