Clover Coverage Report - EasyMock 2.4
Coverage timestamp: mer. juil. 2 2008 02:17:38 CEST
7   48   7   1
0   36   1   7
7     1  
1    
 
 
  LogicalOperator       Line # 10 7 7 100% 1.0
 
  (1)
 
1    /*
2    * Copyright (c) 2001-2008 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 toggle public boolean matchResult(int result) {
13  5 return result < 0;
14    }
15    },
16    LESS_OR_EQUAL("<=") {
 
17  12 toggle public boolean matchResult(int result) {
18  12 return result <= 0;
19    }
20    },
21    EQUAL("==") {
 
22  11 toggle public boolean matchResult(int result) {
23  11 return result == 0;
24    }
25    },
26    GREATER_OR_EQUAL(">=") {
 
27  10 toggle public boolean matchResult(int result) {
28  10 return result >= 0;
29    }
30    },
31    GREATER(">") {
 
32  9 toggle public boolean matchResult(int result) {
33  9 return result > 0;
34    }
35    };
36   
37    private String symbol;
38   
 
39  5 toggle private LogicalOperator(String symbol) {
40  5 this.symbol = symbol;
41    }
42   
 
43  23 toggle public String getSymbol() {
44  23 return symbol;
45    }
46   
47    public abstract boolean matchResult(int result);
48    }