@Test public void handleParameterAnnotationShouldMergePlaceholdersAndSetTypeAndName() throws Exception { when(mockParamConfigBuilder.setType(any(ParamType.class))).thenReturn(mockParamConfigBuilder); when(mockAnnotation.value()).thenReturn(VAL_WITH_PH); toTest.handleParameterAnnotation(mockAnnotation, mockParamConfigBuilder); verify(mockParamConfigBuilder).setType(ParamType.MATRIX); verify(mockParamConfigBuilder).setName(EXPECTED_MERGE_VAL); verify(mockAnnotation).value(); }
@Override public void handleParameterAnnotation(MatrixParam annotation, ParamConfigBuilder builder) { builder.setType(MATRIX).setName(ph(annotation.value())); }
MatrixParamAnnotationHandler extends StringBasedAnnotationHandler<MatrixParam> { @Override public void handleParameterAnnotation(MatrixParam annotation, ParamConfigBuilder builder) { builder.setType(MATRIX).setName(ph(annotation.value())); } }
MatrixParamAnnotationHandler extends StringBasedAnnotationHandler<MatrixParam> { @Override public void handleParameterAnnotation(MatrixParam annotation, ParamConfigBuilder builder) { builder.setType(MATRIX).setName(ph(annotation.value())); } MatrixParamAnnotationHandler(CRestConfig crestConfig); }
MatrixParamAnnotationHandler extends StringBasedAnnotationHandler<MatrixParam> { @Override public void handleParameterAnnotation(MatrixParam annotation, ParamConfigBuilder builder) { builder.setType(MATRIX).setName(ph(annotation.value())); } MatrixParamAnnotationHandler(CRestConfig crestConfig); @Override void handleParameterAnnotation(MatrixParam annotation, ParamConfigBuilder builder); }
MatrixParamAnnotationHandler extends StringBasedAnnotationHandler<MatrixParam> { @Override public void handleParameterAnnotation(MatrixParam annotation, ParamConfigBuilder builder) { builder.setType(MATRIX).setName(ph(annotation.value())); } MatrixParamAnnotationHandler(CRestConfig crestConfig); @Override void handleParameterAnnotation(MatrixParam annotation, ParamConfigBuilder builder);  }