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