|
|||||||||||||||||||
| Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
| ArgumentsMatcher.java | - | - | - | - |
|
||||||||||||||
| 1 | /* | |
| 2 | * Copyright (c) 2001-2005 OFFIS. This program is made available under the terms of | |
| 3 | * the MIT License. | |
| 4 | */ | |
| 5 | package org.easymock; | |
| 6 | ||
| 7 | /** | |
| 8 | * A comparison function that is used to match arguments. | |
| 9 | * | |
| 10 | * @see MockControl#setDefaultMatcher | |
| 11 | * @see MockControl#setMatcher | |
| 12 | * @see MockControl#EQUALS_MATCHER | |
| 13 | * @see MockControl#ARRAY_MATCHER | |
| 14 | * @see MockControl#ALWAYS_MATCHER | |
| 15 | */ | |
| 16 | public interface ArgumentsMatcher { | |
| 17 | ||
| 18 | /** | |
| 19 | * Matches two arrays of arguments. | |
| 20 | * | |
| 21 | * @param expected | |
| 22 | * the expected arguments. | |
| 23 | * @param actual | |
| 24 | * the actual arguments. | |
| 25 | * @return true if the arguments match, false otherwise. | |
| 26 | */ | |
| 27 | boolean matches(Object[] expected, Object[] actual); | |
| 28 | ||
| 29 | /** | |
| 30 | * Returns a string representation of the arguments. | |
| 31 | * | |
| 32 | * @param arguments | |
| 33 | * the arguments to be used in the string representation. | |
| 34 | * @return a string representation of the arguments. | |
| 35 | */ | |
| 36 | String toString(Object[] arguments); | |
| 37 | } |
|
||||||||||