@Test public void triggers_repository_delete_method_for_complete_project() { ScheduleDeleteAllProjectAcessService service = new ScheduleDeleteAllProjectAcessService(); service.repository=mock(ScheduleAccessRepository.class); service.assertion=mock(UserInputAssertion.class); service.deleteAnyAccessDataForProject("project1"); verify(service.repository).deleteAnyAccessForProject("project1"); }
@Transactional @UseCaseAdministratorDeleteProject(@Step(number=6,name="Update authorization parts - remove entries for deleted project")) public void deleteAnyAccessDataForProject(String projectId) { assertion.isValidProjectId(projectId); repository.deleteAnyAccessForProject(projectId); LOG.info("Removed any access entry for project:{}",projectId); }
ScheduleDeleteAllProjectAcessService { @Transactional @UseCaseAdministratorDeleteProject(@Step(number=6,name="Update authorization parts - remove entries for deleted project")) public void deleteAnyAccessDataForProject(String projectId) { assertion.isValidProjectId(projectId); repository.deleteAnyAccessForProject(projectId); LOG.info("Removed any access entry for project:{}",projectId); } }
ScheduleDeleteAllProjectAcessService { @Transactional @UseCaseAdministratorDeleteProject(@Step(number=6,name="Update authorization parts - remove entries for deleted project")) public void deleteAnyAccessDataForProject(String projectId) { assertion.isValidProjectId(projectId); repository.deleteAnyAccessForProject(projectId); LOG.info("Removed any access entry for project:{}",projectId); }  }
ScheduleDeleteAllProjectAcessService { @Transactional @UseCaseAdministratorDeleteProject(@Step(number=6,name="Update authorization parts - remove entries for deleted project")) public void deleteAnyAccessDataForProject(String projectId) { assertion.isValidProjectId(projectId); repository.deleteAnyAccessForProject(projectId); LOG.info("Removed any access entry for project:{}",projectId); }  @Transactional @UseCaseAdministratorDeleteProject(@Step(number=6,name="Update authorization parts - remove entries for deleted project")) void deleteAnyAccessDataForProject(String projectId); }
ScheduleDeleteAllProjectAcessService { @Transactional @UseCaseAdministratorDeleteProject(@Step(number=6,name="Update authorization parts - remove entries for deleted project")) public void deleteAnyAccessDataForProject(String projectId) { assertion.isValidProjectId(projectId); repository.deleteAnyAccessForProject(projectId); LOG.info("Removed any access entry for project:{}",projectId); }  @Transactional @UseCaseAdministratorDeleteProject(@Step(number=6,name="Update authorization parts - remove entries for deleted project")) void deleteAnyAccessDataForProject(String projectId);  }