org.apache.hivemind.test
Interface ArgumentMatcher

All Known Implementing Classes:
AbstractArgumentMatcher

public interface ArgumentMatcher

Used with AggregateArgumentsMatcherto 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

public 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