@Test public void handleInterfaceAnnotationShouldDelegateToInnerHandlerForEachAnnotations() throws Exception { when(mockAnnotation.value()).thenReturn(mockAnnotations); toTest.handleInterfaceAnnotation(mockAnnotation, mockInterfaceConfigBuilder); verify(mockHeaderParamAnnotationHandler).handleInterfaceAnnotation(mockAnnotations[0], mockInterfaceConfigBuilder); verify(mockHeaderParamAnnotationHandler).handleInterfaceAnnotation(mockAnnotations[1], mockInterfaceConfigBuilder); verify(mockAnnotation).value(); }
@Override public void handleInterfaceAnnotation(HeaderParams annotation, InterfaceConfigBuilder builder) { for(HeaderParam paramAnnotation : annotation.value()){ handler.handleInterfaceAnnotation(paramAnnotation, builder); } }
HeaderParamsAnnotationHandler extends NoOpAnnotationHandler<HeaderParams> { @Override public void handleInterfaceAnnotation(HeaderParams annotation, InterfaceConfigBuilder builder) { for(HeaderParam paramAnnotation : annotation.value()){ handler.handleInterfaceAnnotation(paramAnnotation, builder); } } }
HeaderParamsAnnotationHandler extends NoOpAnnotationHandler<HeaderParams> { @Override public void handleInterfaceAnnotation(HeaderParams annotation, InterfaceConfigBuilder builder) { for(HeaderParam paramAnnotation : annotation.value()){ handler.handleInterfaceAnnotation(paramAnnotation, builder); } } HeaderParamsAnnotationHandler(HeaderParamAnnotationHandler handler);  HeaderParamsAnnotationHandler(CRestConfig crestConfig); }
HeaderParamsAnnotationHandler extends NoOpAnnotationHandler<HeaderParams> { @Override public void handleInterfaceAnnotation(HeaderParams annotation, InterfaceConfigBuilder builder) { for(HeaderParam paramAnnotation : annotation.value()){ handler.handleInterfaceAnnotation(paramAnnotation, builder); } } HeaderParamsAnnotationHandler(HeaderParamAnnotationHandler handler);  HeaderParamsAnnotationHandler(CRestConfig crestConfig); @Override void handleInterfaceAnnotation(HeaderParams annotation, InterfaceConfigBuilder builder); @Override void handleMethodAnnotation(HeaderParams annotation, MethodConfigBuilder builder); }
HeaderParamsAnnotationHandler extends NoOpAnnotationHandler<HeaderParams> { @Override public void handleInterfaceAnnotation(HeaderParams annotation, InterfaceConfigBuilder builder) { for(HeaderParam paramAnnotation : annotation.value()){ handler.handleInterfaceAnnotation(paramAnnotation, builder); } } HeaderParamsAnnotationHandler(HeaderParamAnnotationHandler handler);  HeaderParamsAnnotationHandler(CRestConfig crestConfig); @Override void handleInterfaceAnnotation(HeaderParams annotation, InterfaceConfigBuilder builder); @Override void handleMethodAnnotation(HeaderParams annotation, MethodConfigBuilder builder);  }