@Test public void handleMethodsAnnotationShouldSetPath() throws Exception { when(mockAnnotation.value()).thenReturn("a"); toTest.handleMethodAnnotation(mockAnnotation, mockMethodConfigBuilder); verify(mockAnnotation).value(); verify(mockMethodConfigBuilder).appendPath("a"); }
@Override public void handleMethodAnnotation(Path annotation, MethodConfigBuilder builder) { builder.appendPath(ph(annotation.value())); }
PathAnnotationHandler extends StringBasedAnnotationHandler<Path> { @Override public void handleMethodAnnotation(Path annotation, MethodConfigBuilder builder) { builder.appendPath(ph(annotation.value())); } }
PathAnnotationHandler extends StringBasedAnnotationHandler<Path> { @Override public void handleMethodAnnotation(Path annotation, MethodConfigBuilder builder) { builder.appendPath(ph(annotation.value())); } PathAnnotationHandler(CRestConfig crestConfig); }
PathAnnotationHandler extends StringBasedAnnotationHandler<Path> { @Override public void handleMethodAnnotation(Path annotation, MethodConfigBuilder builder) { builder.appendPath(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 handleMethodAnnotation(Path annotation, MethodConfigBuilder builder) { builder.appendPath(ph(annotation.value())); } PathAnnotationHandler(CRestConfig crestConfig); @Override void handleInterfaceAnnotation(Path annotation, InterfaceConfigBuilder builder); @Override void handleMethodAnnotation(Path annotation, MethodConfigBuilder builder);  }