@Test @DatabaseSetup("entityTel-delete.xml") @DatabaseTearDown("teardown.xml") public void testDeleteEntityTel() throws Exception { Entity entity = new Entity(); entity.setId(1L); updateDao.deleteAsInnerObjects(entity); super.assertTablesForUpdate("teardown.xml", "RDAP_VCARD_TEL"); }
@Test @DatabaseTearDown("teardown.xml") public void testUpdateIpAddress() throws Exception { super.databaseSetupWithBinaryColumns("ipAddress-delete.xml"); Nameserver nameserver = new Nameserver(); nameserver.setId(1L); List<IpAddressDto> ipAddressList = createIpAddressList(); updateDao.updateAsInnerObjects(nameserver, ipAddressList); assertIpAddress(); }
@Test // @DatabaseSetup("ipAddress-delete.xml") @DatabaseTearDown("teardown.xml") public void testDeleteIpAddress() throws Exception { super.databaseSetupWithBinaryColumns("ipAddress-delete.xml"); Nameserver nameserver = new Nameserver(); nameserver.setId(1L); updateDao.deleteAsInnerObjects(nameserver); super.assertTablesForUpdate("teardown.xml", "RDAP_NAMESERVER_IP"); }
@Test @DatabaseSetup("teardown.xml") @DatabaseTearDown("teardown.xml") public void testCreateIPAddress() throws Exception { Nameserver nameserver = new Nameserver(); nameserver.setId(1L); List<IpAddressDto> ipAddressList = createIpAddressList(); updateDao.saveAsInnerObjects(nameserver, ipAddressList); assertIpAddress(); }
@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); }
@Test @DatabaseSetup("entityAddress-delete.xml") @DatabaseTearDown("teardown.xml") @ExpectedDatabase( assertionMode = DatabaseAssertionMode.NON_STRICT, value = "classpath:/org/restfulwhois/rdap/dao/impl/entityTel-create.xml") public void testUpdateEntityTel() throws Exception { Entity entity = new Entity(); entity.setId(1L); List<EntityTelephoneDto> entityAddressList = createEntityTelList(); updateDao.updateAsInnerObjects(entity, entityAddressList); }