@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("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(); }