@Test public void handleInterfaceAnnotationShouldAppendMethodsPathWithAnnotationValue() throws Exception { when(mockAnnotation.value()).thenReturn("a"); toTest.handleInterfaceAnnotation(mockAnnotation, mockInterfaceConfigBuilder); verify(mockInterfaceConfigBuilder).appendMethodsPath("a"); verify(mockAnnotation).value(); }
@Override public void handleInterfaceAnnotation(Path annotation, InterfaceConfigBuilder builder) { builder.appendMethodsPath(ph(annotation.value())); }
PathAnnotationHandler extends StringBasedAnnotationHandler<Path> { @Override public void handleInterfaceAnnotation(Path annotation, InterfaceConfigBuilder builder) { builder.appendMethodsPath(ph(annotation.value())); } }
PathAnnotationHandler extends StringBasedAnnotationHandler<Path> { @Override public void handleInterfaceAnnotation(Path annotation, InterfaceConfigBuilder builder) { builder.appendMethodsPath(ph(annotation.value())); } PathAnnotationHandler(CRestConfig crestConfig); }
PathAnnotationHandler extends StringBasedAnnotationHandler<Path> { @Override public void handleInterfaceAnnotation(Path annotation, InterfaceConfigBuilder builder) { builder.appendMethodsPath(ph(annotation.value())); } PathAnnotationHandler(CRestConfig crestConfig); @Override void handleInterfaceAnnotation(Path annotation, InterfaceConfigBuilder builder); @Override void handleMethodAnnotation(Path annotation, MethodConfigBuilder builder); }
PathAnnotationHandler extends StringBasedAnnotationHandler<Path> { @Override public void handleInterfaceAnnotation(Path annotation, InterfaceConfigBuilder builder) { builder.appendMethodsPath(ph(annotation.value())); } PathAnnotationHandler(CRestConfig crestConfig); @Override void handleInterfaceAnnotation(Path annotation, InterfaceConfigBuilder builder); @Override void handleMethodAnnotation(Path annotation, MethodConfigBuilder builder);  }