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