public PermissionTestCase(String s) {
super(s);
}
public void testPanelPermission() throws Exception {
PanelPermission pp = new PanelPermission("101.101.*", "view, maximize,!edit");
PanelPermission p1 = new PanelPermission("101.101.103", "view, !edit");
PanelPermission p2 = new PanelPermission("101.101.103", "view, edit");
PanelPermission p3 = new PanelPermission("101.101.103", "view, !maximize");
PanelPermission p4 = new PanelPermission("101.101.103", "edit");
// Permission action status
Assert.assertTrue(pp.isActionGranted("view"));
Assert.assertTrue(!pp.isActionDenied("view"));
Assert.assertTrue(!pp.isActionUndefined("view"));