@Test public void supportOverrideTypeHttpMethodAnnotation() throws SecurityException, NoSuchMethodException { List<Route> routes = parser.rulesFor(new DefaultResourceClass(AnnotatedController.class)); Route route = getRouteMatching(routes, "/annotated/overridden"); assertThat(route.allowedMethods(), is(EnumSet.of(HttpMethod.GET))); }
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);  }