org.apache.hivemind.test
Interface ArgumentMatcher

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

public interface ArgumentMatcher

Used with AggregateArgumentsMatcher to provide matching logic for a single argument.

Since:
1.1
Author:
Howard M. Lewis Ship

Method Summary
 boolean compareArguments(java.lang.Object expected, java.lang.Object actual)
          Compares an expected argument value (provided when training the mock object), against the actual argument value.
 

Method Detail

compareArguments

boolean compareArguments(java.lang.Object expected,
                         java.lang.Object actual)
Compares an expected argument value (provided when training the mock object), against the actual argument value. This method is only invoked if both arguments are non-null and not the same object (based on identity comparison, not equals()).

Parameters:
expected - The expected argument value
actual - The actual argument value
Returns:
true if the two objects can be considered the same, false otherwise.