예제 #1
0
 @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");
 }
예제 #2
0
 @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");
 }
예제 #3
0
 @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();
 }