@Test public void testExecute() { List<Long> request = Arrays.asList(1L, 2L, 3L); List<ActivitySecurityDTO> results = sut.execute(request); Assert.assertEquals(3, results.size()); Assert.assertEquals(Boolean.FALSE, results.get(0).getExists()); Assert.assertEquals(Boolean.FALSE, results.get(1).getExists()); Assert.assertEquals(Boolean.FALSE, results.get(2).getExists()); Assert.assertEquals(new Long(1L), results.get(0).getId()); Assert.assertEquals(new Long(2L), results.get(1).getId()); Assert.assertEquals(new Long(3L), results.get(2).getId()); }
public List<ActivitySecurityDTO> execute(final List<Long> inRequest) { List<ActivitySecurityDTO> deletedDTOs = new ArrayList<ActivitySecurityDTO>(); for (Long deletedActivityId : inRequest) { deletedDTOs.add(new ActivitySecurityDTO(deletedActivityId, 0L, false, false)); } return deletedDTOs; }
BulkDeletedActivitySecurityMapper implements DomainMapper<List<Long>, List<ActivitySecurityDTO>> { public List<ActivitySecurityDTO> execute(final List<Long> inRequest) { List<ActivitySecurityDTO> deletedDTOs = new ArrayList<ActivitySecurityDTO>(); for (Long deletedActivityId : inRequest) { deletedDTOs.add(new ActivitySecurityDTO(deletedActivityId, 0L, false, false)); } return deletedDTOs; } }
BulkDeletedActivitySecurityMapper implements DomainMapper<List<Long>, List<ActivitySecurityDTO>> { public List<ActivitySecurityDTO> execute(final List<Long> inRequest) { List<ActivitySecurityDTO> deletedDTOs = new ArrayList<ActivitySecurityDTO>(); for (Long deletedActivityId : inRequest) { deletedDTOs.add(new ActivitySecurityDTO(deletedActivityId, 0L, false, false)); } return deletedDTOs; }  }
BulkDeletedActivitySecurityMapper implements DomainMapper<List<Long>, List<ActivitySecurityDTO>> { public List<ActivitySecurityDTO> execute(final List<Long> inRequest) { List<ActivitySecurityDTO> deletedDTOs = new ArrayList<ActivitySecurityDTO>(); for (Long deletedActivityId : inRequest) { deletedDTOs.add(new ActivitySecurityDTO(deletedActivityId, 0L, false, false)); } return deletedDTOs; }  List<ActivitySecurityDTO> execute(final List<Long> inRequest); }
BulkDeletedActivitySecurityMapper implements DomainMapper<List<Long>, List<ActivitySecurityDTO>> { public List<ActivitySecurityDTO> execute(final List<Long> inRequest) { List<ActivitySecurityDTO> deletedDTOs = new ArrayList<ActivitySecurityDTO>(); for (Long deletedActivityId : inRequest) { deletedDTOs.add(new ActivitySecurityDTO(deletedActivityId, 0L, false, false)); } return deletedDTOs; }  List<ActivitySecurityDTO> execute(final List<Long> inRequest);  }