Ignore:
Timestamp:
2023-11-02T13:14:51+01:00 (16 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/io/CertificateAmendmentTestIT.java

    r18690 r18893  
    1313import javax.net.ssl.SSLHandshakeException;
    1414
    15 import org.junit.ClassRule;
    1615import org.junit.jupiter.api.BeforeAll;
    1716import org.junit.jupiter.api.Test;
     17import org.junit.jupiter.api.Timeout;
    1818import org.openstreetmap.josm.TestUtils;
    19 import org.openstreetmap.josm.testutils.JOSMTestRules;
    20 
    21 import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
     19import org.openstreetmap.josm.testutils.annotations.HTTPS;
    2220
    2321/**
    2422 * Integration tests of {@link CertificateAmendment} class.
    2523 */
     24@HTTPS
     25@Timeout(20)
    2626class CertificateAmendmentTestIT {
    27 
    28     /**
    29      * Setup rule
    30      */
    31     @ClassRule
    32     @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")
    33     public static JOSMTestRules test = new JOSMTestRules().https().preferences().timeout(20000);
    34 
    3527    private static final List<String> errorsToIgnore = new ArrayList<>();
    3628
Note: See TracChangeset for help on using the changeset viewer.