Clover Coverage Report - EasyMock 2.4
Coverage timestamp: mer. juil. 2 2008 02:17:38 CEST
7   37   3   3,5
0   25   0,43   2
2     1,5  
1    
 
 
  ExpectedMethodCallTest       Line # 16 7 3 88,9% 0.8888889
 
  (1)
 
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.tests;
6   
7    import static org.junit.Assert.*;
8   
9    import java.lang.reflect.Method;
10   
11    import org.easymock.internal.ExpectedInvocation;
12    import org.easymock.internal.Invocation;
13    import org.junit.Before;
14    import org.junit.Test;
15   
 
16    public class ExpectedMethodCallTest {
17   
18    private ExpectedInvocation call;
19   
 
20  1 toggle @Before
21    public void setup() throws SecurityException, NoSuchMethodException {
22  1 Object[] arguments1 = new Object[] { "" };
23  1 Method m = Object.class.getMethod("equals",
24    new Class[] { Object.class });
25  1 call = new ExpectedInvocation(new Invocation(null, m, arguments1), null);
26    }
27   
 
28  1 toggle @Test
29    public void testHashCode() {
30  1 try {
31  1 call.hashCode();
32  0 fail();
33    } catch (UnsupportedOperationException expected) {
34  1 assertEquals("hashCode() is not implemented", expected.getMessage());
35    }
36    }
37    }