fixing test for GH
This commit is contained in:
@@ -66,8 +66,12 @@ class QRCodeTest {
|
|||||||
|
|
||||||
BufferedImage bufferedImage = MatrixToImageWriter.toBufferedImage(bitMatrix);
|
BufferedImage bufferedImage = MatrixToImageWriter.toBufferedImage(bitMatrix);
|
||||||
|
|
||||||
File outputfile = new File(System.getProperty("user.dir"), "output.jpg");
|
String fileName = "output/test-output.txt";
|
||||||
assert ImageIO.write(bufferedImage, "jpg", outputfile);
|
File outputFile = new File(fileName);
|
||||||
|
|
||||||
|
// Create the parent directories if they don't exist
|
||||||
|
outputFile.getParentFile().mkdirs();
|
||||||
|
assert ImageIO.write(bufferedImage, "jpg", outputFile);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user