Ignore:
Timestamp:
2023-10-16T15:19:07+02:00 (11 months ago)
Author:
taylor.smock
Message:

See #16567: Update to JUnit 5

This converts most tests to use @Annotations. There are also some performance
improvements as it relates to tests.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/tools/date/DateUtilsTest.java

    r18735 r18870  
    1717import java.util.concurrent.ForkJoinPool;
    1818
    19 import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
    20 import net.trajano.commons.testing.UtilityClassTestUtil;
    2119import org.junit.jupiter.api.Disabled;
    2220import org.junit.jupiter.api.Test;
    23 import org.junit.jupiter.api.extension.RegisterExtension;
    2421import org.junit.jupiter.params.ParameterizedTest;
    2522import org.junit.jupiter.params.provider.ValueSource;
    26 import org.openstreetmap.josm.testutils.JOSMTestRules;
     23import org.openstreetmap.josm.testutils.annotations.BasicPreferences;
     24import org.openstreetmap.josm.testutils.annotations.I18n;
    2725import org.openstreetmap.josm.tools.UncheckedParseException;
     26
     27import net.trajano.commons.testing.UtilityClassTestUtil;
    2828
    2929/**
    3030 * Unit tests of {@link DateUtils} class.
    3131 */
     32@BasicPreferences
     33@I18n
    3234public class DateUtilsTest {
    33 
    34     /**
    35      * Set the timezone and timeout.
    36      * <p>
    37      * Timeouts need to be disabled because we change the time zone.
    38      */
    39     @RegisterExtension
    40     @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")
    41     public JOSMTestRules test = new JOSMTestRules().i18n().preferences();
    42 
    4335    /**
    4436     * Tests that {@code DateUtils} satisfies utility class criteria.
Note: See TracChangeset for help on using the changeset viewer.