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

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

Location:
trunk/test/unit/org/openstreetmap/josm/data/validation/util
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/data/validation/util/EntitiesTest.java

    r17275 r18037  
    22package org.openstreetmap.josm.data.validation.util;
    33
    4 import org.junit.jupiter.api.extension.RegisterExtension;
     4import net.trajano.commons.testing.UtilityClassTestUtil;
    55import org.junit.jupiter.api.Test;
    6 import org.openstreetmap.josm.testutils.JOSMTestRules;
    7 
    8 import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
    9 import net.trajano.commons.testing.UtilityClassTestUtil;
    106
    117/**
    … …  
    139 */
    1410class EntitiesTest {
    15 
    16     /**
    17      * Setup test.
    18      */
    19     @RegisterExtension
    20     @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")
    21     public JOSMTestRules test = new JOSMTestRules();
    22 
    2311    /**
    2412     * Tests that {@code Entities} satisfies utility class criteria.
  • trunk/test/unit/org/openstreetmap/josm/data/validation/util/MultipleNameVisitorTest.java

    r17275 r18037  
    66import java.util.Arrays;
    77
    8 import org.junit.jupiter.api.extension.RegisterExtension;
    9 import org.junit.jupiter.api.Test;
    108import org.openstreetmap.josm.TestUtils;
    119import org.openstreetmap.josm.data.osm.Way;
    12 import org.openstreetmap.josm.testutils.JOSMTestRules;
     10import org.openstreetmap.josm.testutils.annotations.BasicPreferences;
    1311
    14 import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
     12import org.junit.jupiter.api.Test;
    1513
    1614/**
    1715 * Unit tests for class {@link MultipleNameVisitor}.
    1816 */
     17@BasicPreferences
    1918class MultipleNameVisitorTest {
    20 
    21     /**
    22      * Setup test.
    23      */
    24     @RegisterExtension
    25     @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")
    26     public JOSMTestRules test = new JOSMTestRules().preferences();
    27 
    2819    /**
    2920     * Non-regression test for bug #11967.
Note: See TracChangeset for help on using the changeset viewer.