예제 #1
0
 @Test
 public void delete_withValidEntities_shouldDeleteEntities() {
   try {
     CRUDDeleteResponseDto responseDto = crudService.delete(getDeleteRequestDto());
     Assert.assertTrue("Update success", responseDto.isSuccess());
   } catch (Exception ex) {
     Assert.fail(ex.getMessage());
   }
 }
예제 #2
0
 @Test
 public void list_withValidEntities_shouldListEntities() {
   try {
     CRUDListResponseDto responseDto = crudService.list(getListRequestDto());
     Assert.assertTrue("Update success", responseDto.isSuccess());
     Assert.assertTrue("No objects returned", responseDto.getObjectDtoList().size() > 0);
   } catch (Exception ex) {
     Assert.fail(ex.getMessage());
   }
 }
예제 #3
0
 @Test
 public void create_withValidEntities_shouldPersistEntities() {
   try {
     CRUDCreateResponseDto responseDto = crudService.create(getCreateRequestDto());
     boolean validated = validIndexNo(responseDto.getIndexDto());
     Assert.assertTrue("Creation success", validated);
   } catch (Exception ex) {
     Assert.fail(ex.getMessage());
   }
 }