Ignore:
Timestamp:
2021-07-16T09:16:33+02:00 (3 years ago)
Author:
Don-vip
Message:

fix #21064 - Add JUnit 5 extension for preferences (patch by taylor.smock)

File:
1 edited

Legend:

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

    r17662 r18037  
    22package org.openstreetmap.josm.gui.tagging.presets;
    33
    4 import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
     4import static org.junit.jupiter.api.Assertions.assertFalse;
     5import static org.junit.jupiter.api.Assertions.assertTrue;
     6
     7import java.util.EnumSet;
     8
    59import org.junit.jupiter.api.Test;
    610import org.junit.jupiter.api.extension.RegisterExtension;
     
    812import org.openstreetmap.josm.data.osm.OsmUtils;
    913import org.openstreetmap.josm.data.osm.search.SearchCompiler;
     14import org.openstreetmap.josm.data.osm.search.SearchParseError;
    1015import org.openstreetmap.josm.gui.tagging.presets.items.Key;
    1116import org.openstreetmap.josm.testutils.JOSMTestRules;
    1217
    13 import java.util.EnumSet;
    14 
    15 import static org.junit.jupiter.api.Assertions.assertFalse;
    16 import static org.junit.jupiter.api.Assertions.assertTrue;
     18import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
    1719
    1820/**
     
    3032    /**
    3133     * Tests {@link TaggingPreset#test(IPrimitive)}
     34     * @throws SearchParseError never
    3235     */
    3336    @Test
    34     void test() throws Exception {
     37    void test() throws SearchParseError {
    3538        Key key = new Key();
    3639        key.key = "railway";
Note: See TracChangeset for help on using the changeset viewer.