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: | 48 |  | Methods: | 7
| NCLOC: | 36 |  | Classes: | 1

Source file | Conditionals | Statements | Methods | TOTAL

LogicalOperator.java

-

100%

100%

100%

1 |  | /*
2 |  | * Copyright (c) 2001-2007 OFFIS, Henri Tremblay.
3 |  | * This program is made available under the terms of the MIT License.
4 |  | */
5 |  | package org.easymock;
6 |  |
7 |  | /**
8 |  | * See {@link EasyMock#cmp}
9 |  | */
10 |  | public enum LogicalOperator {
11 |  | LESS_THAN("<") {
12 | 5 | public boolean matchResult(int result) {
13 | 5 | return result < 0;
14 |  | }
15 |  | },
16 |  | LESS_OR_EQUAL("<=") {
17 | 8 | public boolean matchResult(int result) {
18 | 8 | return result <= 0;
19 |  | }
20 |  | },
21 |  | EQUAL("==") {
22 | 7 | public boolean matchResult(int result) {
23 | 7 | return result == 0;
24 |  | }
25 |  | },
26 |  | GREATER_OR_EQUAL(">=") {
27 | 8 | public boolean matchResult(int result) {
28 | 8 | return result >= 0;
29 |  | }
30 |  | },
31 |  | GREATER(">") {
32 | 7 | public boolean matchResult(int result) {
33 | 7 | return result > 0;
34 |  | }
35 |  | };
36 |  |
37 |  | private String symbol;
38 |  |
39 | 5 | private LogicalOperator(String symbol) {
40 | 5 | this.symbol = symbol;
41 |  | }
42 |  |
43 | 17 | public String getSymbol() {
44 | 17 | return symbol;
45 |  | }
46 |  |
47 |  | public abstract boolean matchResult(int result);
48 |  | }