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