EasyMock 2.3

Clover coverage report - EasyMock 2.3
Coverage timestamp: mar. juil. 10 2007 02:46:04 CEST
FRAMES NO FRAMES

file stats: | LOC: | 42 |  | Methods: | 0
| NCLOC: | 5 |  | Classes: | 1

Source file | Conditionals | Statements | Methods | TOTAL

ArgumentsMatcher.java

-

-

-

-

1 |  | /*
2 |  | * Copyright (c) 2001-2007 OFFIS, Tammo Freese.
3 |  | * This program is made available under the terms of 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 |  | * @deprecated Since EasyMock 2.0, <code>ArgumentsMatcher</code>s are only supported
17 |  | * for the legacy <code>MockControl</code>. For mock objects generated by the methods
18 |  | * on <code>EasyMock</code>, there are per-argument matchers available. For more
19 |  | * information, see the EasyMock documentation.
20 |  | */
21 |  | public interface ArgumentsMatcher {
22 |  |
23 |  | /**
24 |  | * Matches two arrays of arguments.
25 |  | *
26 |  | * @param expected
27 |  | * the expected arguments.
28 |  | * @param actual
29 |  | * the actual arguments.
30 |  | * @return true if the arguments match, false otherwise.
31 |  | */
32 |  | boolean matches(Object[] expected, Object[] actual);
33 |  |
34 |  | /**
35 |  | * Returns a string representation of the arguments.
36 |  | *
37 |  | * @param arguments
38 |  | * the arguments to be used in the string representation.
39 |  | * @return a string representation of the arguments.
40 |  | */
41 |  | String toString(Object[] arguments);
42 |  | }