Ignore:
Timestamp:
2023-11-02T13:14:51+01:00 (11 months ago)
Author:
taylor.smock
Message:

Fix #16567: Upgrade to JUnit 5

JOSMTestRules and JOSMTestFixture can reset the default JOSM profile, which can
be unexpected for new contributors. This updates all tests to use JUnit 5 and
the new JUnit 5 annotations.

This also renames MapCSSStyleSourceFilterTest to MapCSSStyleSourceFilterPerformanceTest
to match the naming convention for performance tests and fixes some lint issues.

This was tested by running all tests individually and together.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/gui/mappaint/mapcss/MapCSSParserTestIT.java

    r17275 r18893  
    44import org.junit.jupiter.api.Disabled;
    55import org.junit.jupiter.api.Test;
    6 import org.junit.jupiter.api.extension.RegisterExtension;
    76import org.openstreetmap.josm.gui.mappaint.mapcss.parsergen.MapCSSParser;
    8 import org.openstreetmap.josm.testutils.JOSMTestRules;
    9 
    10 import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
     7import org.openstreetmap.josm.testutils.annotations.HTTPS;
     8import org.openstreetmap.josm.testutils.annotations.Projection;
    119
    1210/**
    1311 * Integration tests of {@link MapCSSParser}.
    1412 */
     13@HTTPS
     14@Projection
    1515class MapCSSParserTestIT {
    16 
    17     /**
    18      * Setup rule
    19      */
    20     @RegisterExtension
    21     @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")
    22     public JOSMTestRules test = new JOSMTestRules().https().projection();
    23 
    2416    /**
    2517     * Checks Kothic stylesheets
Note: See TracChangeset for help on using the changeset viewer.