Ignore:
Timestamp:
2021-07-16T09:16:33+02:00 (3 years 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/io/GpxReaderTest.java

    r17275 r18037  
    33
    44import static org.junit.jupiter.api.Assertions.assertEquals;
     5import static org.junit.jupiter.api.Assertions.assertThrows;
    56import static org.junit.jupiter.api.Assertions.assertTrue;
    6 import static org.junit.jupiter.api.Assertions.assertThrows;
    77
    88import java.io.ByteArrayInputStream;
     
    1515import java.util.Map;
    1616
    17 import org.junit.jupiter.api.Test;
    18 import org.junit.jupiter.api.extension.RegisterExtension;
    1917import org.openstreetmap.josm.TestUtils;
    2018import org.openstreetmap.josm.data.Bounds;
     
    2220import org.openstreetmap.josm.data.gpx.GpxData;
    2321import org.openstreetmap.josm.data.gpx.WayPoint;
    24 import org.openstreetmap.josm.testutils.JOSMTestRules;
     22import org.openstreetmap.josm.testutils.annotations.BasicPreferences;
     23
     24import org.junit.jupiter.api.Test;
    2525import org.xml.sax.SAXException;
    26 
    27 import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
    2826
    2927/**
    3028 * Tests the {@link GpxReader}.
    3129 */
     30@BasicPreferences
    3231public class GpxReaderTest {
    33 
    34     /**
    35      * Setup rule
    36      */
    37     @RegisterExtension
    38     @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")
    39     public JOSMTestRules test = new JOSMTestRules();
    40 
    4132    /**
    4233     * Parses a GPX file and returns the parsed data
Note: See TracChangeset for help on using the changeset viewer.