Ignore:
Timestamp:
2020-10-28T20:41:00+01:00 (4 years ago)
Author:
Don-vip
Message:

see #16567 - upgrade almost all tests to JUnit 5, except those depending on WiremockRule

See https://github.com/tomakehurst/wiremock/issues/684

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/gui/tagging/presets/TaggingPresetSelectorTest.java

    r13836 r17275  
    22package org.openstreetmap.josm.gui.tagging.presets;
    33
    4 import static org.junit.Assert.assertEquals;
    5 import static org.junit.Assert.assertTrue;
     4import static org.junit.jupiter.api.Assertions.assertEquals;
     5import static org.junit.jupiter.api.Assertions.assertTrue;
    66
    7 import org.junit.Rule;
    8 import org.junit.Test;
     7import org.junit.jupiter.api.extension.RegisterExtension;
     8import org.junit.jupiter.api.Test;
    99import org.openstreetmap.josm.gui.tagging.presets.TaggingPresetSelector.PresetClassification;
    1010import org.openstreetmap.josm.testutils.JOSMTestRules;
     
    1515 * Unit tests of {@link TaggingPresetSelector} class.
    1616 */
    17 public class TaggingPresetSelectorTest {
     17class TaggingPresetSelectorTest {
    1818
    1919    /**
    2020     * Setup rule
    2121     */
    22     @Rule
     22    @RegisterExtension
    2323    @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")
    2424    public JOSMTestRules test = new JOSMTestRules();
     
    2828     */
    2929    @Test
    30     public void testIsMatching() {
     30    void testIsMatching() {
    3131        TaggingPreset preset = new TaggingPreset();
    3232        preset.name = "estação de bombeiros"; // fire_station in brazilian portuguese
Note: See TracChangeset for help on using the changeset viewer.