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: | 26 |  | Methods: | 3
| NCLOC: | 16 |  | Classes: | 1

Source file | Conditionals | Statements | Methods | TOTAL

Not.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.matchers;
6 |  |
7 |  | import org.easymock.IArgumentMatcher;
8 |  |
9 |  | public class Not implements IArgumentMatcher {
10 |  |
11 |  | private final IArgumentMatcher first;
12 |  |
13 | 14 | public Not(IArgumentMatcher first) {
14 | 14 | this.first = first;
15 |  | }
16 |  |
17 | 12 | public boolean matches(Object actual) {
18 | 12 | return !first.matches(actual);
19 |  | }
20 |  |
21 | 1 | public void appendTo(StringBuffer buffer) {
22 | 1 | buffer.append("not(");
23 | 1 | first.appendTo(buffer);
24 | 1 | buffer.append(")");
25 |  | }
26 |  | }