Index: /applications/editors/josm/plugins/mapillary/test/unit/org/openstreetmap/josm/plugins/mapillary/utils/ImageUtilsTest.java
===================================================================
--- /applications/editors/josm/plugins/mapillary/test/unit/org/openstreetmap/josm/plugins/mapillary/utils/ImageUtilsTest.java	(revision 32044)
+++ /applications/editors/josm/plugins/mapillary/test/unit/org/openstreetmap/josm/plugins/mapillary/utils/ImageUtilsTest.java	(revision 32045)
@@ -6,9 +6,9 @@
 import java.io.File;
 import java.io.IOException;
-import java.net.URISyntaxException;
 import java.util.List;
 import java.util.TimeZone;
 
 import org.junit.Test;
+import org.openstreetmap.josm.TestUtils;
 import org.openstreetmap.josm.data.coor.LatLon;
 import org.openstreetmap.josm.plugins.mapillary.MapillaryImportedImage;
@@ -17,7 +17,7 @@
 
   @Test
-  public void testUntaggedImage() throws URISyntaxException, IOException {
+  public void testUntaggedImage() throws IOException {
     long startTime = System.currentTimeMillis() / 1000 * 1000; // Rounding to last full second
-    final File untaggedFile = new File(ImageUtil.class.getResource("/exifTestImages/untagged.jpg").toURI());
+    final File untaggedFile = new File(TestUtils.getTestDataRoot() + "exifTestImages/untagged.jpg");
     LatLon defaultLL = new LatLon(42, -73);
     List<MapillaryImportedImage> images = ImageUtil.readImagesFrom(untaggedFile, defaultLL);
@@ -31,7 +31,7 @@
 
   @Test
-  public void testLatLonOnlyImage() throws URISyntaxException, IOException {
+  public void testLatLonOnlyImage() throws IOException {
     long startTime = System.currentTimeMillis() / 1000 * 1000; // Rounding to last full second
-    final File untaggedFile = new File(ImageUtil.class.getResource("/exifTestImages/latLonOnly.jpg").toURI());
+    final File untaggedFile = new File(TestUtils.getTestDataRoot() + "exifTestImages/latLonOnly.jpg");
     LatLon defaultLL = new LatLon(42, -73);
     List<MapillaryImportedImage> images = ImageUtil.readImagesFrom(untaggedFile, defaultLL);
@@ -46,7 +46,7 @@
 
   @Test
-  public void testGpsDirectionOnlyImage() throws URISyntaxException, IOException {
+  public void testGpsDirectionOnlyImage() throws IOException {
     long startTime = System.currentTimeMillis() / 1000 * 1000; // Rounding to last full second
-    final File untaggedFile = new File(ImageUtil.class.getResource("/exifTestImages/gpsDirectionOnly.jpg").toURI());
+    final File untaggedFile = new File(TestUtils.getTestDataRoot() + "exifTestImages/gpsDirectionOnly.jpg");
     LatLon defaultLL = new LatLon(42, -73);
     List<MapillaryImportedImage> images = ImageUtil.readImagesFrom(untaggedFile, defaultLL);
@@ -60,7 +60,7 @@
 
   @Test
-  public void testDateTimeOnlyImage() throws URISyntaxException, IOException {
+  public void testDateTimeOnlyImage() throws IOException {
     TimeZone.setDefault(TimeZone.getTimeZone("UTC"));
-    final File untaggedFile = new File(ImageUtil.class.getResource("/exifTestImages/dateTimeOnly.jpg").toURI());
+    final File untaggedFile = new File(TestUtils.getTestDataRoot() + "exifTestImages/dateTimeOnly.jpg");
     LatLon defaultLL = new LatLon(42, -73);
     List<MapillaryImportedImage> images = ImageUtil.readImagesFrom(untaggedFile, defaultLL);
@@ -79,6 +79,6 @@
 
   @Test
-  public void testImageDirectory() throws URISyntaxException, IOException {
-    final File imageDirectory = new File(ImageUtil.class.getResource("/exifTestImages/").toURI());
+  public void testImageDirectory() throws IOException {
+    final File imageDirectory = new File(TestUtils.getTestDataRoot() + "exifTestImages");
     List<MapillaryImportedImage> images = ImageUtil.readImagesFrom(imageDirectory, new LatLon(42,-73));
     assertEquals(5, images.size());
@@ -89,4 +89,3 @@
     TestUtil.testUtilityClass(ImageUtil.class);
   }
-
 }
