@Test void testWriteAndReadStepDiffInfos() { for (int i = 0; i < NUMBER_OF_FILES; i++) { final StepDiffInfo stepDiffInfo = getStepDiffInfo(STEP_INDEX + i); buildWriter.saveStepDiffInfo(USE_CASE_NAME, SCENARIO_NAME, stepDiffInfo); } final List<StepDiffInfo> actualStepDiffInfos = dao.loadStepDiffInfos(BASE_BRANCH_NAME, BASE_BUILD_NAME, COMPARISON_NAME, USE_CASE_NAME, SCENARIO_NAME); assertEquals(2, actualStepDiffInfos.size()); for (int i = 0; i < NUMBER_OF_FILES; i++) { assertStepDiffInfo(actualStepDiffInfos.get(i), STEP_INDEX + i); } }
public List<StepDiffInfo> loadStepDiffInfos(final String baseBranchName, final String baseBuildName, final String comparisonName, final String useCaseName, final String scenarioName) { final List<File> files = diffFiles.getStepFiles(baseBranchName, baseBuildName, comparisonName, useCaseName, scenarioName); return ScenarioDocuXMLFileUtil.unmarshalListOfFiles(StepDiffInfo.class, files); }
DiffViewerDao { public List<StepDiffInfo> loadStepDiffInfos(final String baseBranchName, final String baseBuildName, final String comparisonName, final String useCaseName, final String scenarioName) { final List<File> files = diffFiles.getStepFiles(baseBranchName, baseBuildName, comparisonName, useCaseName, scenarioName); return ScenarioDocuXMLFileUtil.unmarshalListOfFiles(StepDiffInfo.class, files); } }
DiffViewerDao { public List<StepDiffInfo> loadStepDiffInfos(final String baseBranchName, final String baseBuildName, final String comparisonName, final String useCaseName, final String scenarioName) { final List<File> files = diffFiles.getStepFiles(baseBranchName, baseBuildName, comparisonName, useCaseName, scenarioName); return ScenarioDocuXMLFileUtil.unmarshalListOfFiles(StepDiffInfo.class, files); }  }
DiffViewerDao { public List<StepDiffInfo> loadStepDiffInfos(final String baseBranchName, final String baseBuildName, final String comparisonName, final String useCaseName, final String scenarioName) { final List<File> files = diffFiles.getStepFiles(baseBranchName, baseBuildName, comparisonName, useCaseName, scenarioName); return ScenarioDocuXMLFileUtil.unmarshalListOfFiles(StepDiffInfo.class, files); }  List<BuildDiffInfo> loadAllBuildDiffInfos(); List<BuildDiffInfo> loadBuildDiffInfos(final String baseBranchName, final String baseBuildName); BuildDiffInfo loadBuildDiffInfo(final String baseBranchName, final String baseBuildName,
										   final String comparisonName); List<UseCaseDiffInfo> loadUseCaseDiffInfos(final String baseBranchName, final String baseBuildName,
													  final String comparisonName); UseCaseDiffInfo loadUseCaseDiffInfo(final String baseBranchName, final String baseBuildName,
											   final String comparisonName, final String useCaseName); List<ScenarioDiffInfo> loadScenarioDiffInfos(final String baseBranchName, final String baseBuildName,
														final String comparisonName, final String useCaseName); ScenarioDiffInfo loadScenarioDiffInfo(final String baseBranchName, final String baseBuildName,
												 final String comparisonName, final String useCaseName, final String scenarioName); List<StepDiffInfo> loadStepDiffInfos(final String baseBranchName, final String baseBuildName,
												final String comparisonName, final String useCaseName, final String scenarioName); StepDiffInfo loadStepDiffInfo(final String baseBranchName, final String baseBuildName,
										 final String comparisonName, final String useCaseName, final String scenarioName, final int stepIndex); File getScreenshotFile(final String baseBranchName, final String baseBuildName, final String comparisonName,
								  final String useCaseName,
								  final String scenarioName, final String imageName); File getBuildComparisonLogFile(final String baseBranchName, final String baseBuildName,
										  final String comparisonName); DiffViewerBuildWriter getBuildDiffWriter(final String baseBranchName, final String baseBuildName,
													final String comparisonName); }
DiffViewerDao { public List<StepDiffInfo> loadStepDiffInfos(final String baseBranchName, final String baseBuildName, final String comparisonName, final String useCaseName, final String scenarioName) { final List<File> files = diffFiles.getStepFiles(baseBranchName, baseBuildName, comparisonName, useCaseName, scenarioName); return ScenarioDocuXMLFileUtil.unmarshalListOfFiles(StepDiffInfo.class, files); }  List<BuildDiffInfo> loadAllBuildDiffInfos(); List<BuildDiffInfo> loadBuildDiffInfos(final String baseBranchName, final String baseBuildName); BuildDiffInfo loadBuildDiffInfo(final String baseBranchName, final String baseBuildName,
										   final String comparisonName); List<UseCaseDiffInfo> loadUseCaseDiffInfos(final String baseBranchName, final String baseBuildName,
													  final String comparisonName); UseCaseDiffInfo loadUseCaseDiffInfo(final String baseBranchName, final String baseBuildName,
											   final String comparisonName, final String useCaseName); List<ScenarioDiffInfo> loadScenarioDiffInfos(final String baseBranchName, final String baseBuildName,
														final String comparisonName, final String useCaseName); ScenarioDiffInfo loadScenarioDiffInfo(final String baseBranchName, final String baseBuildName,
												 final String comparisonName, final String useCaseName, final String scenarioName); List<StepDiffInfo> loadStepDiffInfos(final String baseBranchName, final String baseBuildName,
												final String comparisonName, final String useCaseName, final String scenarioName); StepDiffInfo loadStepDiffInfo(final String baseBranchName, final String baseBuildName,
										 final String comparisonName, final String useCaseName, final String scenarioName, final int stepIndex); File getScreenshotFile(final String baseBranchName, final String baseBuildName, final String comparisonName,
								  final String useCaseName,
								  final String scenarioName, final String imageName); File getBuildComparisonLogFile(final String baseBranchName, final String baseBuildName,
										  final String comparisonName); DiffViewerBuildWriter getBuildDiffWriter(final String baseBranchName, final String baseBuildName,
													final String comparisonName);  }