Ignore:
Timestamp:
2021-07-16T09:16:33+02:00 (5 months ago)
Author:
Don-vip
Message:

fix #21064 - Add JUnit 5 extension for preferences (patch by taylor.smock)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/gui/layer/gpx/DownloadAlongTrackActionTest.java

    r17275 r18037  
    88import java.util.Collections;
    99
    10 import org.junit.jupiter.api.extension.RegisterExtension;
    1110import org.junit.jupiter.api.Test;
    1211import org.openstreetmap.josm.TestUtils;
     
    1716import org.openstreetmap.josm.gui.layer.OsmDataLayer;
    1817import org.openstreetmap.josm.io.GpxReaderTest;
    19 import org.openstreetmap.josm.testutils.JOSMTestRules;
     18import org.openstreetmap.josm.testutils.annotations.BasicPreferences;
    2019import org.openstreetmap.josm.testutils.mockers.HelpAwareOptionPaneMocker;
    21 
    22 import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
    2320
    2421/**
    2522 * Unit tests of {@link DownloadAlongTrackAction} class.
    2623 */
     24@BasicPreferences
    2725class DownloadAlongTrackActionTest {
    28 
    29     /**
    30      * The test rules for this test
    31      */
    32     @RegisterExtension
    33     @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")
    34     public JOSMTestRules test = new JOSMTestRules().preferences();
    35 
    3626    private static PleaseWaitRunnable createTask(String file) throws Exception {
    3727        // click "Download" when presented with the appropriate HelpAwareOptionPane
Note: See TracChangeset for help on using the changeset viewer.