mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-09-16 10:48:47 +00:00
using local 350x150px image to avoid placeholder.com unavailability
This commit is contained in:
@@ -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 |
+1
-1
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user