@Test @DatabaseSetup("/dataset/role/empty.xml") @ExpectedDatabase( table = "Role", value = "/dataset/role/afterCreate.xml", assertionMode = DatabaseAssertionMode.NON_STRICT) public void testCreate() throws Exception { roleDao.create(roles[1]); }
@Test(expected = RuntimeException.class) public void testCreateExists() throws Exception { roleDao.create(roles[0]); }
@Test(expected = IllegalArgumentException.class) public void testCreateWithNull() { roleDao.create(null); }