@Test @DatabaseSetup("remark-delete.xml") @DatabaseTearDown("teardown.xml") @ExpectedDatabase( assertionMode = DatabaseAssertionMode.NON_STRICT, value = "classpath:/org/restfulwhois/rdap/dao/impl/remark-empty.xml") public void testDeleteRemark() throws Exception { Domain domain = new Domain(); domain.setId(1L); updateDao.deleteAsInnerObjects(domain); }
@Test @DatabaseSetup("teardown.xml") @DatabaseTearDown("teardown.xml") @ExpectedDatabase( assertionMode = DatabaseAssertionMode.NON_STRICT, value = "classpath:/org/restfulwhois/rdap/dao/impl/remark-update.xml") public void testcreateRemark() throws Exception { Domain domain = new Domain(); domain.setId(1L); List<RemarkDto> remarkList = createRemarkList(); updateDao.saveAsInnerObjects(domain, remarkList); }