protected void setUp() throws Exception {
super.setUp();
}
public void testParsePermissionsAndMethods() {
FileMethodStore store = new FileMethodStore();
String source = "PM1 { M1 M2 \n" +
" M3 }" +
" PM2 { M1 }";
Map methodMap = store.parse(new StringReader(source));
assertTrue("PM1 contains M1", ((Set) methodMap.get("M1")).contains(new Permission("PM1")));
assertTrue("PM1 contains M2", ((Set) methodMap.get("M2")).contains(new Permission("PM1")));
assertTrue("PM1 contains M3", ((Set) methodMap.get("M3")).contains(new Permission("PM1")));
assertTrue("PM2 contains M1", ((Set) methodMap.get("M1")).contains(new Permission("PM2")));