Changeset 18593 in josm for trunk/test
- Timestamp:
- 2022-11-10T15:15:47+01:00 (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/gui/layer/markerlayer/ImageMarkerTest.java
r17275 r18593 4 4 import static org.junit.jupiter.api.Assertions.assertEquals; 5 5 6 import java.io.File; 6 7 import java.net.MalformedURLException; 7 import java.net.URL;8 8 9 import org.junit.jupiter.api.BeforeAll;10 9 import org.junit.jupiter.api.Test; 11 import org.openstreetmap.josm.JOSMFixture; 10 import org.junit.jupiter.api.extension.RegisterExtension; 11 import org.openstreetmap.josm.TestUtils; 12 12 import org.openstreetmap.josm.data.coor.LatLon; 13 13 import org.openstreetmap.josm.data.gpx.GpxData; 14 14 import org.openstreetmap.josm.data.gpx.WayPoint; 15 import org.openstreetmap.josm.testutils.JOSMTestRules; 16 import org.openstreetmap.josm.testutils.annotations.BasicPreferences; 15 17 16 18 /** 17 19 * Unit tests of {@link ImageMarker} class. 18 20 */ 21 @BasicPreferences 19 22 class ImageMarkerTest { 20 21 /** 22 * Setup tests 23 */ 24 @BeforeAll 25 public static void setUpBeforeClass() { 26 JOSMFixture.createUnitTestFixture().init(); 27 } 23 @RegisterExtension 24 static JOSMTestRules josmTestRules = new JOSMTestRules().main(); 28 25 29 26 /** … … 35 32 ImageMarker marker = new ImageMarker( 36 33 LatLon.ZERO, 37 new URL("file://something.jpg"),34 new File(TestUtils.getRegressionDataFile(12255, "G0016941.JPG")).toURI().toURL(), 38 35 new MarkerLayer(new GpxData(), null, null, null), 39 36 1d, 2d);
Note:
See TracChangeset
for help on using the changeset viewer.