owner = new Principal("Owner");
name = "TestName";
}
public void testParse() {
FileAclStore manager = new FileAclStore();
String source = "PP1 { PM1 PM2 \n" +
" PM3 }" +
" PP2 { PM1 }";
Acl acl = manager.parse(owner, name, new StringReader(source));
assertEquals("PP1 has PM1",
1, acl.checkPermission(new Principal("PP1"), new Permission("PM1")));
assertEquals("PP1 has PM2",
1, acl.checkPermission(new Principal("PP1"), new Permission("PM2")));