Package org.mockito.internal.matchers
Class LocalizedMatcher
- java.lang.Object
-
- org.mockito.internal.matchers.LocalizedMatcher
-
- All Implemented Interfaces:
java.io.Serializable,org.hamcrest.Matcher,org.hamcrest.SelfDescribing,CapturesArguments,ContainsExtraTypeInformation,MatcherDecorator
public class LocalizedMatcher extends java.lang.Object implements org.hamcrest.Matcher, ContainsExtraTypeInformation, CapturesArguments, MatcherDecorator, java.io.Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LocalizedMatcher(org.hamcrest.Matcher actualMatcher)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void_dont_implement_Matcher___instead_extend_BaseMatcher_()voidcaptureFrom(java.lang.Object argument)voiddescribeMismatch(java.lang.Object item, org.hamcrest.Description mismatchDescription)voiddescribeTo(org.hamcrest.Description description)org.hamcrest.MatchergetActualMatcher()LocationgetLocation()booleanmatches(java.lang.Object item)java.lang.StringtoString()booleantypeMatches(java.lang.Object object)org.hamcrest.SelfDescribingwithExtraTypeInfo()
-
-
-
Method Detail
-
describeMismatch
public void describeMismatch(java.lang.Object item, org.hamcrest.Description mismatchDescription)- Specified by:
describeMismatchin interfaceorg.hamcrest.Matcher
-
_dont_implement_Matcher___instead_extend_BaseMatcher_
public void _dont_implement_Matcher___instead_extend_BaseMatcher_()
- Specified by:
_dont_implement_Matcher___instead_extend_BaseMatcher_in interfaceorg.hamcrest.Matcher
-
matches
public boolean matches(java.lang.Object item)
- Specified by:
matchesin interfaceorg.hamcrest.Matcher
-
describeTo
public void describeTo(org.hamcrest.Description description)
- Specified by:
describeToin interfaceorg.hamcrest.SelfDescribing
-
getLocation
public Location getLocation()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
withExtraTypeInfo
public org.hamcrest.SelfDescribing withExtraTypeInfo()
- Specified by:
withExtraTypeInfoin interfaceContainsExtraTypeInformation
-
typeMatches
public boolean typeMatches(java.lang.Object object)
- Specified by:
typeMatchesin interfaceContainsExtraTypeInformation
-
captureFrom
public void captureFrom(java.lang.Object argument)
- Specified by:
captureFromin interfaceCapturesArguments
-
getActualMatcher
public org.hamcrest.Matcher getActualMatcher()
- Specified by:
getActualMatcherin interfaceMatcherDecorator
-
-