()
| 59 | } |
| 60 | |
| 61 | public void testWithAnnotation() { |
| 62 | Key<Object> k = Key.get(Object.class); |
| 63 | Key<Object> kf = k.withAnnotation(Foo.class); |
| 64 | assertNull(k.getAnnotationType()); |
| 65 | assertEquals(Foo.class, kf.getAnnotationType()); |
| 66 | } |
| 67 | |
| 68 | public void testWithAnnotationInstance() throws NoSuchFieldException { |
| 69 | Foo annotation = getClass().getDeclaredField("baz").getAnnotation(Foo.class); |
nothing calls this directly
no test coverage detected