Beispiel #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");
 }
Beispiel #2
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);
 }