org.apache.hivemind.test
Interface ArgumentMatcher

All Known Implementing Classes:
ArrayMatcher, EqualsMatcher, RegexpMatcher, TypeMatcher

public interface ArgumentMatcher

Used with AggregateArgumentsMatcherto provide matching logic for a single argument.

Since:
1.1
Author:
Howard M. Lewis Ship

Method Summary
 boolean matches(java.lang.Object expected, java.lang.Object actual)
          Returns true if the two objects are considered the same.
 

Method Detail

matches

public boolean matches(java.lang.Object expected,
                       java.lang.Object actual)
Returns true if the two objects are considered the same. This method is only invoked if both arguments are non-null and not the same object (identity comparison, not equals()).

Parameters:
expected - The expected argument value
actual - The actual argument value