Ignore:
Timestamp:
2023-11-02T13:14:51+01:00 (8 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/data/validation/routines/DomainValidatorTestIT.java

    r18691 r18893  
    4646import java.util.regex.Pattern;
    4747
    48 import org.junit.jupiter.api.extension.RegisterExtension;
    4948import org.junit.jupiter.api.Test;
    50 import org.openstreetmap.josm.testutils.JOSMTestRules;
     49import org.openstreetmap.josm.testutils.annotations.HTTPS;
    5150import org.openstreetmap.josm.tools.Logging;
    5251
     
    5857 * @version $Revision: 1723861 $
    5958 */
     59@HTTPS
    6060class DomainValidatorTestIT {
    61 
    62     /**
    63      * Setup rule
    64      */
    65     @RegisterExtension
    66     @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")
    67     public JOSMTestRules test = new JOSMTestRules().https();
    68 
    6961    /**
    7062     * Download and process local copy of http://data.iana.org/TLD/tlds-alpha-by-domain.txt
Note: See TracChangeset for help on using the changeset viewer.