com.atlassian.hamcrest
Interface MatcherFactory


public interface MatcherFactory

Used when creating Matchers for the object fields being compared.


Method Summary
<T> org.hamcrest.Matcher<? super T>
newEqualMatcher(T expected, MatcherFactory baseMatcherFactory)
          Creates and returns a Matcher to be used for the expected value.
 

Method Detail

newEqualMatcher

<T> org.hamcrest.Matcher<? super T> newEqualMatcher(T expected,
                                                    MatcherFactory baseMatcherFactory)
Creates and returns a Matcher to be used for the expected value.

Type Parameters:
T - type of the values to match
Parameters:
expected - the expected value
baseMatcherFactory - the base MatcherFactory which can be used when recursively building a matcher
Returns:
Matcher to be used for the expected value


Copyright © 2009 Atlassian. All Rights Reserved.