@Test public void findAllWithFunctionalityErrors_ShouldReturnMappedDataFromScenarioRepositoryFindAllWithFunctionalityErrors_WhenCalled() { List<ScenarioSummary> functionalities = Collections.emptyList(); when(scenarioRepository.findAllWithFunctionalityErrors(PROJECT_ID)).thenReturn(functionalities); List<ScenarioSummaryDTO> functionalitiesDTOs = Collections.emptyList(); when(scenarioSummaryMapper.toDto(same(functionalities))).thenReturn(functionalitiesDTOs); final List<ScenarioSummaryDTO> result = cut.findAllWithFunctionalityErrors(PROJECT_ID); assertThat(result).isSameAs(functionalitiesDTOs); }
public List<ScenarioSummaryDTO> findAllWithFunctionalityErrors(long projectId) { return scenarioSummaryMapper.toDto(scenarioRepository.findAllWithFunctionalityErrors(projectId)); }
ScenarioService { public List<ScenarioSummaryDTO> findAllWithFunctionalityErrors(long projectId) { return scenarioSummaryMapper.toDto(scenarioRepository.findAllWithFunctionalityErrors(projectId)); } }
ScenarioService { public List<ScenarioSummaryDTO> findAllWithFunctionalityErrors(long projectId) { return scenarioSummaryMapper.toDto(scenarioRepository.findAllWithFunctionalityErrors(projectId)); }  }
ScenarioService { public List<ScenarioSummaryDTO> findAllWithFunctionalityErrors(long projectId) { return scenarioSummaryMapper.toDto(scenarioRepository.findAllWithFunctionalityErrors(projectId)); }  List<ScenarioSummaryDTO> findAllWithFunctionalityErrors(long projectId); List<ScenarioIgnoreSourceDTO> getIgnoredScenarioCounts(long projectId); }
ScenarioService { public List<ScenarioSummaryDTO> findAllWithFunctionalityErrors(long projectId) { return scenarioSummaryMapper.toDto(scenarioRepository.findAllWithFunctionalityErrors(projectId)); }  List<ScenarioSummaryDTO> findAllWithFunctionalityErrors(long projectId); List<ScenarioIgnoreSourceDTO> getIgnoredScenarioCounts(long projectId);  }