com.hammingweight.hammock
Interface IArgumentMatcher

All Known Implementing Classes:
ClassArgumentMatcher, DefaultArgumentMatcher, NotNullArgumentMatcher, PopulateArrayMatcher, PromiscuousArgumentMatcher

public interface IArgumentMatcher

The IArgumentMatcher is implemented by classes that determine whether two objects should be regarded as equal. This is useful when one needs to determine whether an argument passed to a mock object's method is expected.

Since:
Hammock 1.4
Author:
C.A. Meijer

Method Summary
 boolean areArgumentsEqual(java.lang.Object argumentExpected, java.lang.Object argumentActual)
          A method to determine whether an argument passed in a method invocation of a mock object is equal to the expected argument.
 

Method Detail

areArgumentsEqual

boolean areArgumentsEqual(java.lang.Object argumentExpected,
                          java.lang.Object argumentActual)
A method to determine whether an argument passed in a method invocation of a mock object is equal to the expected argument.

Parameters:
argumentExpected - An expected argument.
argumentActual - An actual argument passed to a mocked method.
Returns:
true if the arguments should be regarded as equal.