protected ApplicationContext getContext() {
return new ClassPathXmlApplicationContext("com/javaeye/jert/service/test/SecurityServiceTest.xml");
}
public void testAddRemove() {
Group group = userManager.newGroup();
group.setName("test group");
ReportDefinition reportDefinition = getReportDefintion();
ReportPermissionGroup rpg = service.addReportPermissionToGroup(reportDefinition, group);
assertEquals(group.getName(), rpg.getGroupName());
assertEquals(reportDefinition, rpg.getReportDefinition());
service.removeReportPermissionFromGroup(reportDefinition, group);
}