Clover Coverage Report - EasyMock 2.4
Coverage timestamp: mer. juil. 2 2008 02:17:38 CEST
0   42   0   -
0   5   -   0
0     -  
1    
 
 
  ArgumentsMatcher       Line # 21 0 0 - -1.0
 
No Tests
 
1    /*
2    * Copyright (c) 2001-2008 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    }