@Test public void handleMethodAnnotationShouldSetMethodsConsumesWithGivenValue() throws Exception { when(mockAnnotation.value()).thenReturn(new String[]{"a","b"}); toTest.handleMethodAnnotation(mockAnnotation,mockMethodConfigBuilder); verify(mockMethodConfigBuilder).setConsumes("a", "b"); verify(mockAnnotation).value(); }
@Override public void handleMethodAnnotation(Produces annotation, MethodConfigBuilder builder) { builder.setConsumes(ph(annotation.value())); }
ProducesAnnotationHandler extends StringBasedAnnotationHandler<Produces> { @Override public void handleMethodAnnotation(Produces annotation, MethodConfigBuilder builder) { builder.setConsumes(ph(annotation.value())); } }
ProducesAnnotationHandler extends StringBasedAnnotationHandler<Produces> { @Override public void handleMethodAnnotation(Produces annotation, MethodConfigBuilder builder) { builder.setConsumes(ph(annotation.value())); } ProducesAnnotationHandler(CRestConfig crestConfig); }
ProducesAnnotationHandler extends StringBasedAnnotationHandler<Produces> { @Override public void handleMethodAnnotation(Produces annotation, MethodConfigBuilder builder) { builder.setConsumes(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 handleMethodAnnotation(Produces annotation, MethodConfigBuilder builder) { builder.setConsumes(ph(annotation.value())); } ProducesAnnotationHandler(CRestConfig crestConfig); @Override void handleInterfaceAnnotation(Produces annotation, InterfaceConfigBuilder builder); @Override void handleMethodAnnotation(Produces annotation, MethodConfigBuilder builder);  }