@Test public void handleInterfaceAnnotationShouldSetParamsProduces() throws Exception { when(mockAnnotation.value()).thenReturn("a"); toTest.handleInterfaceAnnotation(mockAnnotation, mockInterfaceConfigBuilder); verify(mockAnnotation).value(); verify(mockInterfaceConfigBuilder).setMethodsProduces("a"); }
@Override public void handleInterfaceAnnotation(Produces annotation, InterfaceConfigBuilder builder) { builder.setMethodsProduces(ph(annotation.value())); }
ProducesAnnotationHandler extends StringBasedAnnotationHandler<Produces> { @Override public void handleInterfaceAnnotation(Produces annotation, InterfaceConfigBuilder builder) { builder.setMethodsProduces(ph(annotation.value())); } }
ProducesAnnotationHandler extends StringBasedAnnotationHandler<Produces> { @Override public void handleInterfaceAnnotation(Produces annotation, InterfaceConfigBuilder builder) { builder.setMethodsProduces(ph(annotation.value())); } ProducesAnnotationHandler(CRestConfig crestConfig); }
ProducesAnnotationHandler extends StringBasedAnnotationHandler<Produces> { @Override public void handleInterfaceAnnotation(Produces annotation, InterfaceConfigBuilder builder) { builder.setMethodsProduces(ph(annotation.value())); } ProducesAnnotationHandler(CRestConfig crestConfig); @Override void handleInterfaceAnnotation(Produces annotation, InterfaceConfigBuilder builder); @Override void handleMethodAnnotation(Produces annotation, MethodConfigBuilder builder); }
ProducesAnnotationHandler extends StringBasedAnnotationHandler<Produces> { @Override public void handleInterfaceAnnotation(Produces annotation, InterfaceConfigBuilder builder) { builder.setMethodsProduces(ph(annotation.value())); } ProducesAnnotationHandler(CRestConfig crestConfig); @Override void handleInterfaceAnnotation(Produces annotation, InterfaceConfigBuilder builder); @Override void handleMethodAnnotation(Produces annotation, MethodConfigBuilder builder);  }