1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
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 |
28 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (4) |
Complexity: 1 |
Complexity Density: 0,33 |
|
29 |
|
public class MethodSerializationWrapperTest { |
30 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: - |
|
31 |
|
public static class A { |
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
32 |
0
|
public void foo(final String s, final int i, final String[] sArray, final int[] iArray,... |
33 |
|
final String... varargs) { |
34 |
|
} |
35 |
|
} |
36 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (3) |
Complexity: 1 |
Complexity Density: 0,33 |
1
PASS
|
|
37 |
2
|
@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 |
|
} |