Ignore:
Timestamp:
2023-10-16T15:19:07+02:00 (13 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/plugins/PluginHandlerJOSMTooOldTest.java

    r18694 r18870  
    1818import java.util.stream.Collectors;
    1919
    20 import com.github.tomakehurst.wiremock.client.WireMock;
    21 import com.github.tomakehurst.wiremock.junit5.WireMockExtension;
    22 import com.github.tomakehurst.wiremock.junit5.WireMockRuntimeInfo;
    23 import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
    2420import org.junit.jupiter.api.BeforeEach;
    2521import org.junit.jupiter.api.Test;
     
    2925import org.openstreetmap.josm.gui.MainApplication;
    3026import org.openstreetmap.josm.spi.preferences.Config;
    31 import org.openstreetmap.josm.testutils.JOSMTestRules;
    3227import org.openstreetmap.josm.testutils.PluginServer;
    3328import org.openstreetmap.josm.testutils.annotations.AssumeRevision;
    3429import org.openstreetmap.josm.testutils.annotations.FullPreferences;
     30import org.openstreetmap.josm.testutils.annotations.Main;
    3531import org.openstreetmap.josm.testutils.mockers.ExtendedDialogMocker;
    3632import org.openstreetmap.josm.testutils.mockers.HelpAwareOptionPaneMocker;
     33
     34import com.github.tomakehurst.wiremock.client.WireMock;
     35import com.github.tomakehurst.wiremock.junit5.WireMockExtension;
     36import com.github.tomakehurst.wiremock.junit5.WireMockRuntimeInfo;
    3737
    3838/**
     
    4141@AssumeRevision("Revision: 6000\n")
    4242@FullPreferences
     43@Main
    4344class PluginHandlerJOSMTooOldTest {
    44     /**
    45      * Setup test.
    46      */
    47     @RegisterExtension
    48     @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")
    49     static JOSMTestRules test = new JOSMTestRules().main();
    50 
    5145    /**
    5246     * Plugin server mock.
Note: See TracChangeset for help on using the changeset viewer.