@Test public void handleMethodsAnnotationShouldSetRequestInterceptor() throws Exception { when(mockAnnotation.value()).thenReturn((Class)NoOpRequestInterceptor.class); toTest.handleMethodAnnotation(mockAnnotation, mockMethodConfigBuilder); verify(mockAnnotation).value(); verify(mockMethodConfigBuilder).setRequestInterceptor(NoOpRequestInterceptor.class); }
@Override public void handleMethodAnnotation(RequestInterceptor annotation, MethodConfigBuilder builder) throws InvocationTargetException, NoSuchMethodException, IllegalAccessException, InstantiationException { builder.setRequestInterceptor(annotation.value()); }
RequestInterceptorAnnotationHandler extends NoOpAnnotationHandler<RequestInterceptor> { @Override public void handleMethodAnnotation(RequestInterceptor annotation, MethodConfigBuilder builder) throws InvocationTargetException, NoSuchMethodException, IllegalAccessException, InstantiationException { builder.setRequestInterceptor(annotation.value()); } }
RequestInterceptorAnnotationHandler extends NoOpAnnotationHandler<RequestInterceptor> { @Override public void handleMethodAnnotation(RequestInterceptor annotation, MethodConfigBuilder builder) throws InvocationTargetException, NoSuchMethodException, IllegalAccessException, InstantiationException { builder.setRequestInterceptor(annotation.value()); }  }
RequestInterceptorAnnotationHandler extends NoOpAnnotationHandler<RequestInterceptor> { @Override public void handleMethodAnnotation(RequestInterceptor annotation, MethodConfigBuilder builder) throws InvocationTargetException, NoSuchMethodException, IllegalAccessException, InstantiationException { builder.setRequestInterceptor(annotation.value()); }  @Override void handleInterfaceAnnotation(RequestInterceptor annotation, InterfaceConfigBuilder builder); @Override void handleMethodAnnotation(RequestInterceptor annotation, MethodConfigBuilder builder); }
RequestInterceptorAnnotationHandler extends NoOpAnnotationHandler<RequestInterceptor> { @Override public void handleMethodAnnotation(RequestInterceptor annotation, MethodConfigBuilder builder) throws InvocationTargetException, NoSuchMethodException, IllegalAccessException, InstantiationException { builder.setRequestInterceptor(annotation.value()); }  @Override void handleInterfaceAnnotation(RequestInterceptor annotation, InterfaceConfigBuilder builder); @Override void handleMethodAnnotation(RequestInterceptor annotation, MethodConfigBuilder builder);  }