| 1 |
|
package org.easymock.tests; |
| 2 |
|
|
| 3 |
|
import static org.junit.Assert.*; |
| 4 |
|
|
| 5 |
|
import java.lang.reflect.Method; |
| 6 |
|
|
| 7 |
|
import org.easymock.internal.MethodSerializationWrapper; |
| 8 |
|
import org.junit.Test; |
| 9 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (4) |
Complexity: 1 |
Complexity Density: 0,33 |
|
| 10 |
|
public class MethodSerializationWrapperTest { |
| 11 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: - |
|
| 12 |
|
public static class A { |
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 13 |
0
|
public void foo(String s, int i, String[] sArray, int[] iArray, String...varargs ) { ... |
| 14 |
|
} |
| 15 |
|
} |
| 16 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (3) |
Complexity: 1 |
Complexity Density: 0,33 |
1
PASS
|
|
| 17 |
1
|
@Test... |
| 18 |
|
public void testGetMethod() throws Exception { |
| 19 |
1
|
Method foo = A.class.getMethod("foo", String.class, Integer.TYPE, String[].class, int[].class, String[].class); |
| 20 |
1
|
MethodSerializationWrapper wrapper = new MethodSerializationWrapper(foo); |
| 21 |
1
|
assertEquals(foo, wrapper.getMethod()); |
| 22 |
|
} |
| 23 |
|
|
| 24 |
|
} |