Class LocalizedMatcher

java.lang.Object
org.mockito.internal.matchers.LocalizedMatcher
All Implemented Interfaces:
Serializable, org.hamcrest.Matcher, org.hamcrest.SelfDescribing, CapturesArguments, ContainsExtraTypeInformation, MatcherDecorator

public class LocalizedMatcher extends Object implements org.hamcrest.Matcher, ContainsExtraTypeInformation, CapturesArguments, MatcherDecorator, Serializable
See Also:
  • Constructor Details

    • LocalizedMatcher

      public LocalizedMatcher(org.hamcrest.Matcher actualMatcher)
  • Method Details

    • describeMismatch

      public void describeMismatch(Object item, org.hamcrest.Description mismatchDescription)
      Specified by:
      describeMismatch in interface org.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 interface org.hamcrest.Matcher
    • matches

      public boolean matches(Object item)
      Specified by:
      matches in interface org.hamcrest.Matcher
    • describeTo

      public void describeTo(org.hamcrest.Description description)
      Specified by:
      describeTo in interface org.hamcrest.SelfDescribing
    • getLocation

      public Location getLocation()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • withExtraTypeInfo

      public org.hamcrest.SelfDescribing withExtraTypeInfo()
      Specified by:
      withExtraTypeInfo in interface ContainsExtraTypeInformation
    • typeMatches

      public boolean typeMatches(Object object)
      Specified by:
      typeMatches in interface ContainsExtraTypeInformation
    • captureFrom

      public void captureFrom(Object argument)
      Specified by:
      captureFrom in interface CapturesArguments
    • getActualMatcher

      public org.hamcrest.Matcher getActualMatcher()
      Specified by:
      getActualMatcher in interface MatcherDecorator