using local 350x150px image to avoid placeholder.com unavailability

This commit is contained in:
Axel Uhl
2024-04-08 18:11:45 +02:00
parent cdd7f95fde
commit d5b6fe65e9
3 changed files with 3 additions and 2 deletions
@@ -2,4 +2,5 @@ source.. = src/,\
resources/
output.. = bin/
bin.includes = META-INF/,\
.
.,\
resources/350x150.png
Binary file not shown.

After

Width:  |  Height:  |  Size: 977 B

@@ -22,7 +22,7 @@ public class CalculateImageSizeFromUrlTest {
public void calculateImageSizeFromUrl() throws IOException {
int width = 350;
int height = 150;
ImageSize size = calculate("http://via.placeholder.com/" + width + "x" + height);
ImageSize size = calculate(getClass().getResource("/"+width+"x"+height+".png").toString());
assertTrue(size.getWidth() == width);
assertTrue(size.getHeight() == height);
}