@Test public void handleInterfaceAnnotationShouldSetMethodsConsumes() throws Exception { when(mockAnnotation.value()).thenReturn(new String[]{"a","b"}); toTest.handleInterfaceAnnotation(mockAnnotation, mockInterfaceConfigBuilder); verify(mockAnnotation).value(); verify(mockInterfaceConfigBuilder).setMethodsConsumes("a","b"); }
@Override public void handleInterfaceAnnotation(Consumes annotation, InterfaceConfigBuilder builder) { builder.setMethodsConsumes(ph(annotation.value())); }
ConsumesAnnotationHandler extends StringBasedAnnotationHandler<Consumes> { @Override public void handleInterfaceAnnotation(Consumes annotation, InterfaceConfigBuilder builder) { builder.setMethodsConsumes(ph(annotation.value())); } }
ConsumesAnnotationHandler extends StringBasedAnnotationHandler<Consumes> { @Override public void handleInterfaceAnnotation(Consumes annotation, InterfaceConfigBuilder builder) { builder.setMethodsConsumes(ph(annotation.value())); } ConsumesAnnotationHandler(CRestConfig crestConfig); }
ConsumesAnnotationHandler extends StringBasedAnnotationHandler<Consumes> { @Override public void handleInterfaceAnnotation(Consumes annotation, InterfaceConfigBuilder builder) { builder.setMethodsConsumes(ph(annotation.value())); } ConsumesAnnotationHandler(CRestConfig crestConfig); @Override void handleInterfaceAnnotation(Consumes annotation, InterfaceConfigBuilder builder); @Override void handleMethodAnnotation(Consumes annotation, MethodConfigBuilder builder); }
ConsumesAnnotationHandler extends StringBasedAnnotationHandler<Consumes> { @Override public void handleInterfaceAnnotation(Consumes annotation, InterfaceConfigBuilder builder) { builder.setMethodsConsumes(ph(annotation.value())); } ConsumesAnnotationHandler(CRestConfig crestConfig); @Override void handleInterfaceAnnotation(Consumes annotation, InterfaceConfigBuilder builder); @Override void handleMethodAnnotation(Consumes annotation, MethodConfigBuilder builder);  }