@Test public void deleteAllDataForProject_triggers_deleteAllLogDataForProject() { serviceToTest.deleteAllDataForProject("project-1"); verify(projectScanLogRepository).deleteAllLogDataForProject("project-1"); }
@Transactional @UseCaseAdministratorDeleteProject(@Step(number=8,name="delete all project scan data")) public void deleteAllDataForProject(String projectId) { assertion.isValidProjectId(projectId); productResultRepository.deleteAllResultsForProject(projectId); scanReportRepository.deleteAllReportsForProject(projectId); scanLogRepository.deleteAllLogDataForProject(projectId); scanProjectConfigRepository.deleteAllConfigurationsForProject(projectId); LOG.info("Deleted all data (results,reports, scanlogs) for project:{}",logSanitizer.sanitize(projectId, 30)); }
ProjectDataDeleteService { @Transactional @UseCaseAdministratorDeleteProject(@Step(number=8,name="delete all project scan data")) public void deleteAllDataForProject(String projectId) { assertion.isValidProjectId(projectId); productResultRepository.deleteAllResultsForProject(projectId); scanReportRepository.deleteAllReportsForProject(projectId); scanLogRepository.deleteAllLogDataForProject(projectId); scanProjectConfigRepository.deleteAllConfigurationsForProject(projectId); LOG.info("Deleted all data (results,reports, scanlogs) for project:{}",logSanitizer.sanitize(projectId, 30)); } }
ProjectDataDeleteService { @Transactional @UseCaseAdministratorDeleteProject(@Step(number=8,name="delete all project scan data")) public void deleteAllDataForProject(String projectId) { assertion.isValidProjectId(projectId); productResultRepository.deleteAllResultsForProject(projectId); scanReportRepository.deleteAllReportsForProject(projectId); scanLogRepository.deleteAllLogDataForProject(projectId); scanProjectConfigRepository.deleteAllConfigurationsForProject(projectId); LOG.info("Deleted all data (results,reports, scanlogs) for project:{}",logSanitizer.sanitize(projectId, 30)); }  }
ProjectDataDeleteService { @Transactional @UseCaseAdministratorDeleteProject(@Step(number=8,name="delete all project scan data")) public void deleteAllDataForProject(String projectId) { assertion.isValidProjectId(projectId); productResultRepository.deleteAllResultsForProject(projectId); scanReportRepository.deleteAllReportsForProject(projectId); scanLogRepository.deleteAllLogDataForProject(projectId); scanProjectConfigRepository.deleteAllConfigurationsForProject(projectId); LOG.info("Deleted all data (results,reports, scanlogs) for project:{}",logSanitizer.sanitize(projectId, 30)); }  @Transactional @UseCaseAdministratorDeleteProject(@Step(number=8,name="delete all project scan data")) void deleteAllDataForProject(String projectId); }
ProjectDataDeleteService { @Transactional @UseCaseAdministratorDeleteProject(@Step(number=8,name="delete all project scan data")) public void deleteAllDataForProject(String projectId) { assertion.isValidProjectId(projectId); productResultRepository.deleteAllResultsForProject(projectId); scanReportRepository.deleteAllReportsForProject(projectId); scanLogRepository.deleteAllLogDataForProject(projectId); scanProjectConfigRepository.deleteAllConfigurationsForProject(projectId); LOG.info("Deleted all data (results,reports, scanlogs) for project:{}",logSanitizer.sanitize(projectId, 30)); }  @Transactional @UseCaseAdministratorDeleteProject(@Step(number=8,name="delete all project scan data")) void deleteAllDataForProject(String projectId);  }