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
 @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();
 }
Esempio n. 3
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. 4
0
 @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();
 }
Esempio n. 5
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);
 }
Esempio n. 6
0
 @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);
 }
Esempio n. 7
0
 @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);
 }