Clover Coverage Report - EasyMock 3.0
Coverage timestamp: sam. mai 8 2010 14:37:27 CEST
3   45   2   1,5
0   19   0,67   1
2     1  
2    
 
  MethodSerializationWrapperTest       Line # 29 3 0% 1 0 100% 1.0
  MethodSerializationWrapperTest.A       Line # 31 0 0% 1 1 0% 0.0
 
  (2)
 
1    /**
2    * Copyright 2001-2010 the original author or authors.
3    *
4    * Licensed under the Apache License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    * http://www.apache.org/licenses/LICENSE-2.0
9    *
10    * Unless required by applicable law or agreed to in writing, software
11    * distributed under the License is distributed on an "AS IS" BASIS,
12    * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13    * See the License for the specific language governing permissions and
14    * limitations under the License.
15    */
16   
17    package org.easymock.tests;
18   
19    import static org.junit.Assert.*;
20   
21    import java.lang.reflect.Method;
22   
23    import org.easymock.internal.MethodSerializationWrapper;
24    import org.junit.Test;
25   
26    /**
27    * @author OFFIS, Tammo Freese
28    */
 
29    public class MethodSerializationWrapperTest {
30   
 
31    public static class A {
 
32  0 toggle public void foo(final String s, final int i, final String[] sArray, final int[] iArray,
33    final String... varargs) {
34    }
35    }
36   
 
37  2 toggle @Test
38    public void testGetMethod() throws Exception {
39  2 final Method foo = A.class.getMethod("foo", String.class, Integer.TYPE, String[].class, int[].class,
40    String[].class);
41  2 final MethodSerializationWrapper wrapper = new MethodSerializationWrapper(foo);
42  2 assertEquals(foo, wrapper.getMethod());
43    }
44   
45    }