@Test public void handleParameterAnnotationShouldSetTypeAndName() throws Exception { when(mockParamConfigBuilder.setType(any(ParamType.class))).thenReturn(mockParamConfigBuilder); when(mockAnnotation.value()).thenReturn("a"); toTest.handleParameterAnnotation(mockAnnotation, mockParamConfigBuilder); verify(mockParamConfigBuilder).setType(ParamType.FORM); verify(mockParamConfigBuilder).setName("a"); verify(mockAnnotation).value(); }
@Override public void handleParameterAnnotation(FormParam annotation, ParamConfigBuilder builder) { builder.setType(FORM).setName(ph(annotation.value())); }
FormParamAnnotationHandler extends StringBasedAnnotationHandler<FormParam> { @Override public void handleParameterAnnotation(FormParam annotation, ParamConfigBuilder builder) { builder.setType(FORM).setName(ph(annotation.value())); } }
FormParamAnnotationHandler extends StringBasedAnnotationHandler<FormParam> { @Override public void handleParameterAnnotation(FormParam annotation, ParamConfigBuilder builder) { builder.setType(FORM).setName(ph(annotation.value())); } FormParamAnnotationHandler(CRestConfig crestConfig); }
FormParamAnnotationHandler extends StringBasedAnnotationHandler<FormParam> { @Override public void handleParameterAnnotation(FormParam annotation, ParamConfigBuilder builder) { builder.setType(FORM).setName(ph(annotation.value())); } FormParamAnnotationHandler(CRestConfig crestConfig); @Override void handleParameterAnnotation(FormParam annotation, ParamConfigBuilder builder); }
FormParamAnnotationHandler extends StringBasedAnnotationHandler<FormParam> { @Override public void handleParameterAnnotation(FormParam annotation, ParamConfigBuilder builder) { builder.setType(FORM).setName(ph(annotation.value())); } FormParamAnnotationHandler(CRestConfig crestConfig); @Override void handleParameterAnnotation(FormParam annotation, ParamConfigBuilder builder);  }