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: | 20 |  | Methods: | 2
| NCLOC: | 12 |  | Classes: | 1

Source file | Conditionals | Statements | Methods | TOTAL

ArrayMatcher.java

-

100%

100%

100%

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.internal;
6 |  |
7 |  | import org.easymock.AbstractMatcher;
8 |  | import org.easymock.internal.matchers.ArrayEquals;
9 |  |
10 |  | public class ArrayMatcher extends AbstractMatcher {
11 | 15 | public String argumentToString(Object argument) {
12 | 15 | StringBuffer result = new StringBuffer();
13 | 15 | new ArrayEquals(argument).appendTo(result);
14 | 15 | return result.toString();
15 |  | }
16 |  |
17 | 27 | public boolean argumentMatches(Object expected, Object actual) {
18 | 27 | return new ArrayEquals(expected).matches(actual);
19 |  | }
20 |  | }