@Test void testWriteAndReadBuildDiffInfo() { final BuildDiffInfo buildDiffInfo = getBuildDiffInfo(COMPARISON_NAME); buildWriter.saveBuildDiffInfo(buildDiffInfo); final BuildDiffInfo actualBuildDiffInfo = dao.loadBuildDiffInfo(BASE_BRANCH_NAME, BASE_BUILD_NAME, COMPARISON_NAME); assertStructueDiffInfo(actualBuildDiffInfo, COMPARISON_NAME); }
public BuildDiffInfo loadBuildDiffInfo(final String baseBranchName, final String baseBuildName, final String comparisonName) { final File file = diffFiles.getBuildFile(baseBranchName, baseBuildName, comparisonName); return ScenarioDocuXMLFileUtil.unmarshal(BuildDiffInfo.class, file); }
DiffViewerDao { public BuildDiffInfo loadBuildDiffInfo(final String baseBranchName, final String baseBuildName, final String comparisonName) { final File file = diffFiles.getBuildFile(baseBranchName, baseBuildName, comparisonName); return ScenarioDocuXMLFileUtil.unmarshal(BuildDiffInfo.class, file); } }
DiffViewerDao { public BuildDiffInfo loadBuildDiffInfo(final String baseBranchName, final String baseBuildName, final String comparisonName) { final File file = diffFiles.getBuildFile(baseBranchName, baseBuildName, comparisonName); return ScenarioDocuXMLFileUtil.unmarshal(BuildDiffInfo.class, file); }  }
DiffViewerDao { public BuildDiffInfo loadBuildDiffInfo(final String baseBranchName, final String baseBuildName, final String comparisonName) { final File file = diffFiles.getBuildFile(baseBranchName, baseBuildName, comparisonName); return ScenarioDocuXMLFileUtil.unmarshal(BuildDiffInfo.class, file); }  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 BuildDiffInfo loadBuildDiffInfo(final String baseBranchName, final String baseBuildName, final String comparisonName) { final File file = diffFiles.getBuildFile(baseBranchName, baseBuildName, comparisonName); return ScenarioDocuXMLFileUtil.unmarshal(BuildDiffInfo.class, file); }  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);  }