Skip to content

Commit

Permalink
Revert last commit
Browse files Browse the repository at this point in the history
  • Loading branch information
decebals committed Feb 17, 2016
1 parent f142ac2 commit f2e70cf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -195,11 +195,13 @@ public void removeRoute(Route route) {
@Override
public void addRouteGroup(RouteGroup routeGroup) {
routeGroup.getRoutes().forEach(this::addRoute);
routeGroup.getChildren().forEach(this::addRouteGroup);
}

@Override
public void removeRouteGroup(RouteGroup routeGroup) {
routeGroup.getRoutes().forEach(this::removeRoute);
routeGroup.getChildren().forEach(this::removeRouteGroup);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -676,7 +676,7 @@ public void testNestGroup() {
Route route = Route.POST("like", emptyRouteHandler);
child.addRoute(route);

router.addRouteGroup(child);
router.addRouteGroup(group);

List<RouteMatch> matches = router.findRoutes(HttpConstants.Method.POST, "/users/1/like");
assertEquals(1, matches.size());
Expand Down

0 comments on commit f2e70cf

Please sign in to comment.