com.hammingweight.hammock
Class PopulateArrayMatcher
java.lang.Object
com.hammingweight.hammock.PopulateArrayMatcher
- All Implemented Interfaces:
- IArgumentMatcher
public class PopulateArrayMatcher
- extends java.lang.Object
- implements IArgumentMatcher
The PopulateArrayMatcher class allows a mocked method to populate an array
when the method is invoked.
- Since:
- Hammock 1.6
- Author:
- C.A. Meijer
|
Method Summary |
boolean |
areArgumentsEqual(java.lang.Object argumentExpected,
java.lang.Object argumentActual)
A method to check whether this matcher can copy data to a destination
array. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PopulateArrayMatcher
public PopulateArrayMatcher(int srcOffset,
int srcLen,
int destOffset)
- Constructor.
- Parameters:
srcOffset - The offset in the source array to start copying from.srcLen - The number of elements to copy.destOffset - The offset in the destination array to start copying to.
areArgumentsEqual
public boolean areArgumentsEqual(java.lang.Object argumentExpected,
java.lang.Object argumentActual)
- A method to check whether this matcher can copy data to a destination
array.
- Specified by:
areArgumentsEqual in interface IArgumentMatcher
- Parameters:
argumentExpected - The source array specified in the expectation.argumentActual - The destination array.
- Returns:
true if this matcher can copy data into the
destination array.