@Test @ExpectedDatabase( table = "Role", value = "/dataset/role/afterUpdate.xml", assertionMode = DatabaseAssertionMode.NON_STRICT) public void testUpdate() throws Exception { Role role = roles[2]; role.setName("role55"); roleDao.update(role); }
@Test(expected = IllegalArgumentException.class) public void testUpdateWithNull() { roleDao.update(null); }