()
| 46 | } |
| 47 | |
| 48 | private static void testProxyDefaultValue() { |
| 49 | ClassLoader loader = Annotations.class.getClassLoader(); |
| 50 | InvocationHandler handler = new InvocationHandler() { |
| 51 | public Object invoke(Object proxy, Method method, Object... args) { |
| 52 | return method.getDefaultValue(); |
| 53 | } |
| 54 | }; |
| 55 | Test test = (Test) |
| 56 | Proxy.newProxyInstance(loader, new Class[] { Test.class }, handler); |
| 57 | expect("Hello, world!".equals(test.value())); |
| 58 | } |
| 59 | |
| 60 | private interface World { |
| 61 | @TestComplex(arrayValue = { @Test, @Test(value = "7/9") }, |
no test coverage detected