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