Changeset 18593 in josm for trunk/test


Ignore:
Timestamp:
2022-11-10T15:15:47+01:00 (2 years ago)
Author:
taylor.smock
Message:

See #22337: Make window for attached GPX waypoint images resizable

This fixes broken tests.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/gui/layer/markerlayer/ImageMarkerTest.java

    r17275 r18593  
    44import static org.junit.jupiter.api.Assertions.assertEquals;
    55
     6import java.io.File;
    67import java.net.MalformedURLException;
    7 import java.net.URL;
    88
    9 import org.junit.jupiter.api.BeforeAll;
    109import org.junit.jupiter.api.Test;
    11 import org.openstreetmap.josm.JOSMFixture;
     10import org.junit.jupiter.api.extension.RegisterExtension;
     11import org.openstreetmap.josm.TestUtils;
    1212import org.openstreetmap.josm.data.coor.LatLon;
    1313import org.openstreetmap.josm.data.gpx.GpxData;
    1414import org.openstreetmap.josm.data.gpx.WayPoint;
     15import org.openstreetmap.josm.testutils.JOSMTestRules;
     16import org.openstreetmap.josm.testutils.annotations.BasicPreferences;
    1517
    1618/**
    1719 * Unit tests of {@link ImageMarker} class.
    1820 */
     21@BasicPreferences
    1922class 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();
    2825
    2926    /**
     
    3532        ImageMarker marker = new ImageMarker(
    3633                LatLon.ZERO,
    37                 new URL("file://something.jpg"),
     34                new File(TestUtils.getRegressionDataFile(12255, "G0016941.JPG")).toURI().toURL(),
    3835                new MarkerLayer(new GpxData(), null, null, null),
    3936                1d, 2d);
Note: See TracChangeset for help on using the changeset viewer.