assertFalse(implies(p, permissions, "Admin"));
assertFalse(implies(p, permissions, "Peon"));
}
public void testExcludedRemovesRoleConstraint() throws Exception {
WebApp webApp = parse("security/web4.xml");
WebAppInfoBuilder webAppInfoBuilder = new WebAppInfoBuilder(webApp, new DefaultWebAppInfoFactory());
webAppInfoBuilder.build();
SpecSecurityBuilder builder = new SpecSecurityBuilder(webAppInfoBuilder.getWebAppInfo());
ComponentPermissions permissions = builder.buildSpecSecurityConfig();
// test excluding longer path than allowed
Permission p = new WebResourcePermission("/Foo/Baz", "GET");