1 package com.atlassian.selenium.visualcomparison.utils;
2
3 import java.io.File;
4
5 public class PageDifferenceImages
6 {
7 private File oldImageFile;
8 private File newImageFile;
9 private File diffImageFile;
10 private String outputDir;
11
12 public PageDifferenceImages(File oldImageFile, File newImageFile, File diffImageFile, String outputDir)
13 {
14 this.oldImageFile = oldImageFile;
15 this.newImageFile = newImageFile;
16 this.diffImageFile = diffImageFile;
17 this.outputDir = outputDir;
18 }
19
20 public String getOldImageFile()
21 {
22 return ScreenshotDiff.relativePath(oldImageFile, outputDir);
23 }
24
25 public String getNewImageFile()
26 {
27 return ScreenshotDiff.relativePath(newImageFile, outputDir);
28 }
29
30 public String getDiffImageFile()
31 {
32 return ScreenshotDiff.relativePath(diffImageFile, outputDir);
33 }
34 }