Skip to content

Commit f63a119

Browse files
committed
Update path resulution
1 parent 38d5220 commit f63a119

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/main/java/com/assertthat/selenium_shutterbug/core/Snapshot.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ public boolean equals(BufferedImage image, double deviation) {
195195

196196
/**
197197
* @param image BufferedImage to compare with.
198-
* @param resultingImagePath path to save to resulting images with diff
198+
* @param resultingImagePath path with name to save to resulting images with diff
199199
* @return true if the the provided image and current image are strictly equal.
200200
*/
201201
public boolean equalsWithDiff(BufferedImage image, String resultingImagePath) {
@@ -205,7 +205,7 @@ public boolean equalsWithDiff(BufferedImage image, String resultingImagePath) {
205205

206206
/**
207207
* @param image BufferedImage to compare with.
208-
* @param resultingImagePath path to save to resulting images with diff
208+
* @param resultingImagePath path with name to save to resulting images with diff
209209
* @param deviation allowed deviation while comparing
210210
* @return true if the the provided image and current image are strictly equal.
211211
*/
@@ -216,7 +216,7 @@ public boolean equalsWithDiff(BufferedImage image, String resultingImagePath, do
216216

217217
/**
218218
* @param image Snapshot to compare with.
219-
* @param resultingImagePath path to save to resulting images with diff
219+
* @param resultingImagePath path with name to save to resulting images with diff
220220
* @return true if the the provided image and current image are strictly equal.
221221
*/
222222
public boolean equalsWithDiff(Snapshot image, String resultingImagePath) {
@@ -226,7 +226,7 @@ public boolean equalsWithDiff(Snapshot image, String resultingImagePath) {
226226

227227
/**
228228
* @param image Snapshot to compare with.
229-
* @param resultingImagePath path to save to resulting images with diff
229+
* @param resultingImagePath path with name to save to resulting images with diff
230230
* @param deviation allowed deviation while comparing
231231
* @return true if the the provided image and current image are strictly equal.
232232
*/

src/main/java/com/assertthat/selenium_shutterbug/utils/image/ImageProcessor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ public static boolean imagesAreEqualsWithDiff(BufferedImage image1, BufferedImag
182182

183183
// Write the image as png, with the filename based on the path provided
184184
if(pixelError > 0)
185-
FileUtil.writeImage(output,"png",new File(pathFileName));
185+
FileUtil.writeImage(output,"png",new File(pathFileName+".png"));
186186
return pixelError == 0 || pixelError <= deviation;
187187
}
188188

0 commit comments

Comments
 (0)