@Test
public void testGetAnnotationRecursive() throws NoSuchMethodException {
assertNotNull(AnnotationProcessor.getAnnotationRecursive(
ConcreteClassWithoutAnnotation.class.getMethod("methodWithAnnotation"), DisableSockets.class)
);
assertNull(AnnotationProcessor.getAnnotationRecursive(
ConcreteClassWithoutAnnotation.class.getMethod("methodWithoutAnnotation"), DisableSockets.class)
);
assertNotNull(AnnotationProcessor.getAnnotationRecursive(
ConcreteClassWithAnnotation.class.getMethod("methodWithAnnotation"), DisableSockets.class)
);
assertNotNull(AnnotationProcessor.getAnnotationRecursive(
ConcreteClassWithAnnotation.class.getMethod("methodWithoutAnnotation"), DisableSockets.class)
);
assertNotNull(AnnotationProcessor.getAnnotationRecursive(
ConcreteClassExtendsBaseClassWithoutAnnotation.class.getMethod("methodWithAnnotation"), DisableSockets.class)
);
assertNull(AnnotationProcessor.getAnnotationRecursive(
ConcreteClassExtendsBaseClassWithoutAnnotation.class.getMethod("methodWithoutAnnotation"), DisableSockets.class)
);
assertNotNull(AnnotationProcessor.getAnnotationRecursive(
ConcreteClassExtendsBaseClassWithAnnotation.class.getMethod("methodWithAnnotation"), DisableSockets.class)
);
assertNotNull(AnnotationProcessor.getAnnotationRecursive(
ConcreteClassExtendsBaseClassWithAnnotation.class.getMethod("methodWithoutAnnotation"), DisableSockets.class)
);
}