Assert.assertTrue(match(tree, "/test/idmatch/namematch", "test/idmatch/namematch"));
}
protected boolean match(RouteMatcher tree, String route, String expected) {
MatchedRoute rt = tree.find(route);
if (rt == null && expected == null)
return true;
if (rt == null) {
log.warn("Route matched was null: " + route);
return false;
}
if (rt.getMapping().getRoute().equals(expected)) {
return true;
}
log.warn("Route didn't match: " + route + " GOT: " + rt.getMapping().getRoute() + " EXPECTED: " + expected);
return false;
}