Ignore:
Timestamp:
2020-10-28T20:41:00+01:00 (13 months 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/dialogs/validator/ValidatorTreePanelTest.java

    r11182 r17275  
    22package org.openstreetmap.josm.gui.dialogs.validator;
    33
    4 import static org.junit.Assert.assertEquals;
    5 import static org.junit.Assert.assertNotNull;
    6 import static org.junit.Assert.assertNull;
     4import static org.junit.jupiter.api.Assertions.assertEquals;
     5import static org.junit.jupiter.api.Assertions.assertNotNull;
     6import static org.junit.jupiter.api.Assertions.assertNull;
    77
    88import java.util.ArrayList;
     
    1313import java.util.Set;
    1414
    15 import org.junit.Rule;
    16 import org.junit.Test;
     15import org.junit.jupiter.api.extension.RegisterExtension;
     16import org.junit.jupiter.api.Test;
    1717import org.openstreetmap.josm.data.osm.Node;
    1818import org.openstreetmap.josm.data.osm.OsmPrimitive;
     
    2626 * Unit tests of {@link ValidatorTreePanel} class.
    2727 */
    28 public class ValidatorTreePanelTest {
     28class ValidatorTreePanelTest {
    2929
    3030    /**
    3131     * Setup tests
    3232     */
    33     @Rule
     33    @RegisterExtension
    3434    @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")
    3535    public JOSMTestRules test = new JOSMTestRules().preferences();
     
    3939     */
    4040    @Test
    41     public void testValidatorTreePanel() {
     41    void testValidatorTreePanel() {
    4242        assertNotNull(new ValidatorTreePanel());
    4343
Note: See TracChangeset for help on using the changeset viewer.