assertEquals(role.getDescription(), "test descr");
}
@Test
public void testAddAndRemoveRole() throws Exception {
Role role = new Role("testrole");
role.setDescription("new role descr");
dao.save(role);
//setComplete(); // change behavior from rollback to commit
//endTransaction();
//startNewTransaction();
role = dao.getRoleByName("testrole");
assertNotNull(role.getDescription());
dao.removeRole("testrole");
//setComplete();
//super.endTransaction(); // deletes role from database