@Test public void addsAPrefixToMethodsWhenTheGetControllerIsAnnotatedWithPath() throws Exception { List<Route> routes = parser.rulesFor(new DefaultResourceClass(GetAnnotatedController.class)); Route route = getRouteMatching(routes, "/prefix/withoutPath"); assertThat(route, canHandle(GetAnnotatedController.class, "withoutPath")); }
public List<Route> rulesFor(ResourceClass resource) { Class<?> baseType = resource.getType(); return registerRulesFor(baseType); }
PathAnnotationRoutesParser implements RoutesParser { public List<Route> rulesFor(ResourceClass resource) { Class<?> baseType = resource.getType(); return registerRulesFor(baseType); } }
PathAnnotationRoutesParser implements RoutesParser { public List<Route> rulesFor(ResourceClass resource) { Class<?> baseType = resource.getType(); return registerRulesFor(baseType); } PathAnnotationRoutesParser(Router router); }
PathAnnotationRoutesParser implements RoutesParser { public List<Route> rulesFor(ResourceClass resource) { Class<?> baseType = resource.getType(); return registerRulesFor(baseType); } PathAnnotationRoutesParser(Router router); List<Route> rulesFor(ResourceClass resource); }
PathAnnotationRoutesParser implements RoutesParser { public List<Route> rulesFor(ResourceClass resource) { Class<?> baseType = resource.getType(); return registerRulesFor(baseType); } PathAnnotationRoutesParser(Router router); List<Route> rulesFor(ResourceClass resource);  }