Esempio n. 1
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");
 }
Esempio n. 2
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");
 }
Esempio n. 3
0
 @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);
 }