ListSeparatorAnnotationHandler extends StringBasedAnnotationHandler<ListSeparator> { @Override public void handleInterfaceAnnotation(ListSeparator annotation, InterfaceConfigBuilder builder) { builder.setParamsListSeparator(ph(annotation.value())); } ListSeparatorAnnotationHandler(CRestConfig crestConfig); @Override void handleInterfaceAnnotation(ListSeparator annotation, InterfaceConfigBuilder builder); @Override void handleMethodAnnotation(ListSeparator annotation, MethodConfigBuilder builder); @Override void handleParameterAnnotation(ListSeparator annotation, ParamConfigBuilder builder);  }
@Test public void handleInterfaceAnnotationShouldSetParamsListSeparator() throws Exception { when(mockAnnotation.value()).thenReturn("a"); toTest.handleInterfaceAnnotation(mockAnnotation, mockInterfaceConfigBuilder); verify(mockAnnotation).value(); verify(mockInterfaceConfigBuilder).setParamsListSeparator("a"); }
@Test public void handleInterfaceAnnotationShouldMergePlaceholdersAndSetParamsListSeparator() throws Exception { when(mockAnnotation.value()).thenReturn(VAL_WITH_PH); toTest.handleInterfaceAnnotation(mockAnnotation, mockInterfaceConfigBuilder); verify(mockAnnotation).value(); verify(mockInterfaceConfigBuilder).setParamsListSeparator(EXPECTED_MERGE_VAL); }