@Test public void handleParameterAnnotationShouldFillDefaultValueWithAnnotationValue() throws Exception { when(mockAnnotation.value()).thenReturn("a"); when(mockParamConfigBuilder.setDefaultValue("a")).thenReturn(mockParamConfigBuilder); toTest.handleParameterAnnotation(mockAnnotation, mockParamConfigBuilder); verify(mockAnnotation).value(); verify(mockParamConfigBuilder).setDefaultValue("a"); }
@Override public void handleParameterAnnotation(DefaultValue annotation, ParamConfigBuilder builder) { builder.setDefaultValue(ph(annotation.value())); }
DefaultValueAnnotationHandler extends StringBasedAnnotationHandler<DefaultValue> { @Override public void handleParameterAnnotation(DefaultValue annotation, ParamConfigBuilder builder) { builder.setDefaultValue(ph(annotation.value())); } }
DefaultValueAnnotationHandler extends StringBasedAnnotationHandler<DefaultValue> { @Override public void handleParameterAnnotation(DefaultValue annotation, ParamConfigBuilder builder) { builder.setDefaultValue(ph(annotation.value())); } DefaultValueAnnotationHandler(CRestConfig crestConfig); }
DefaultValueAnnotationHandler extends StringBasedAnnotationHandler<DefaultValue> { @Override public void handleParameterAnnotation(DefaultValue annotation, ParamConfigBuilder builder) { builder.setDefaultValue(ph(annotation.value())); } DefaultValueAnnotationHandler(CRestConfig crestConfig); @Override void handleParameterAnnotation(DefaultValue annotation, ParamConfigBuilder builder); }
DefaultValueAnnotationHandler extends StringBasedAnnotationHandler<DefaultValue> { @Override public void handleParameterAnnotation(DefaultValue annotation, ParamConfigBuilder builder) { builder.setDefaultValue(ph(annotation.value())); } DefaultValueAnnotationHandler(CRestConfig crestConfig); @Override void handleParameterAnnotation(DefaultValue annotation, ParamConfigBuilder builder);  }