When using Spring's HATEOAS support, I really like the AnnotationMappingDiscoverer
which helps avoid hard-coding REST resource paths in tests. With it, I can do things like
discoverer = new AnnotationMappingDiscoverer(RequestMapping.class);
Method method = MyController.class.getMethod("myResourceMethod", params);
String path = discoverer.getMapping(method);
And then use that path
as the resource path in tests. Much better than hard-coding paths in tests that have to be kept in sync with the controller class and method annotations.
Is there anything similar for RESTEasy?