Changeset 18818 in josm for trunk/test/unit


Ignore:
Timestamp:
2023-08-23T00:10:21+02:00 (15 months ago)
Author:
taylor.smock
Message:

Fix tests

Location:
trunk/test/unit/org/openstreetmap/josm
Files:
2 edited

Legend:

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

    r17275 r18818  
    1212import java.util.stream.Collectors;
    1313
    14 import org.junit.jupiter.api.extension.RegisterExtension;
    1514import org.junit.jupiter.api.Test;
    1615import org.openstreetmap.josm.TestUtils;
     
    1918import org.openstreetmap.josm.gui.layer.gpx.GpxDrawHelper.ColorMode;
    2019import org.openstreetmap.josm.io.GpxReaderTest;
    21 import org.openstreetmap.josm.testutils.JOSMTestRules;
     20import org.openstreetmap.josm.testutils.annotations.BasicPreferences;
    2221import org.openstreetmap.josm.tools.ColorHelper;
    2322import org.xml.sax.SAXException;
    24 
    25 import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
    2623
    2724/**
    2825 * Unit tests of {@link GpxDrawHelper} class.
    2926 */
     27@BasicPreferences
    3028class GpxDrawHelperTest {
    31 
    32     /**
    33      * Setup test.
    34      */
    35     @RegisterExtension
    36     @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")
    37     public JOSMTestRules test = new JOSMTestRules();
    3829
    3930    /**
  • trunk/test/unit/org/openstreetmap/josm/io/GpxReaderTest.java

    r18817 r18818  
    104104
    105105    @ParameterizedTest
    106     @ValueSource(strings = {
    107             "<gpx><wpt></wpt></gpx>",
    108     })
     106    @ValueSource(strings = "<gpx><wpt></wpt></gpx>")
    109107    void testIncompleteLocations(String gpx) {
    110108        SAXException saxException = assertThrows(SAXException.class,
Note: See TracChangeset for help on using the changeset viewer.