Clover Coverage Report - EasyMock 2.4
Coverage timestamp: mer. juil. 2 2008 02:17:38 CEST
5   30   3   1,67
0   18   0,6   3
3     1  
1    
 
 
  Not       Line # 11 5 3 100% 1.0
 
  (5)
 
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.internal.matchers;
6   
7    import java.io.Serializable;
8   
9    import org.easymock.IArgumentMatcher;
10   
 
11    public class Not implements IArgumentMatcher, Serializable {
12   
13    private static final long serialVersionUID = -5160559075998939348L;
14   
15    private final IArgumentMatcher first;
16   
 
17  14 toggle public Not(IArgumentMatcher first) {
18  14 this.first = first;
19    }
20   
 
21  12 toggle public boolean matches(Object actual) {
22  12 return !first.matches(actual);
23    }
24   
 
25  1 toggle public void appendTo(StringBuffer buffer) {
26  1 buffer.append("not(");
27  1 first.appendTo(buffer);
28  1 buffer.append(")");
29    }
30    }