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.Matcher
for reasons why.
,
BaseMatcher
public boolean matches(Object item)
org.hamcrest.Matcher
matches
in interface org.hamcrest.Matcher
item
- the object against which the matcher is evaluated.true
if item matches, otherwise false
.BaseMatcher
public void describeTo(org.hamcrest.Description description)
org.hamcrest.SelfDescribing
describeTo
in interface org.hamcrest.SelfDescribing
description
- The description to be built or appended to.public Location getLocation()
public org.hamcrest.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 org.hamcrest.Matcher getActualMatcher()
getActualMatcher
in interface MatcherDecorator
Mockito, MIT License