Ignore:
Timestamp:
2023-03-21T14:49:10+01:00 (23 months ago)
Author:
taylor.smock
Message:

See #16567: Convert most plugin tests to JUnit 5

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/imagery-xml-bounds/test/unit/org/openstreetmap/josm/plugins/imageryxmlbounds/actions/ComputeBoundsActionTest.java

    r35100 r36064  
    11package org.openstreetmap.josm.plugins.imageryxmlbounds.actions;
    22
    3 import static org.junit.Assert.assertEquals;
     3import static org.junit.jupiter.api.Assertions.assertEquals;
    44
    55import java.util.Arrays;
    66
    7 import org.junit.Rule;
    8 import org.junit.Test;
     7import org.junit.jupiter.api.Test;
    98import org.openstreetmap.josm.data.coor.LatLon;
    109import org.openstreetmap.josm.data.osm.Node;
    1110import org.openstreetmap.josm.data.osm.Way;
    12 import org.openstreetmap.josm.testutils.JOSMTestRules;
    13 
    14 import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
     11import org.openstreetmap.josm.testutils.annotations.BasicPreferences;
    1512
    1613/**
    1714 * Unit tests of {@link ComputeBoundsAction}
    1815 */
    19 public class ComputeBoundsActionTest {
    20 
    21     /**
    22      * Setup rule
    23      */
    24     @Rule
    25     @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")
    26     public JOSMTestRules test = new JOSMTestRules();
    27 
     16@BasicPreferences
     17class ComputeBoundsActionTest {
    2818    /**
    2919     * Unit test of {@link ComputeBoundsAction#getBounds}
    3020     */
    3121    @Test
    32     public void testGetBounds() {
     22    void testGetBounds() {
    3323        assertEquals("        <bounds min-lat='0' min-lon='0' max-lat='0' max-lon='0'>\n",
    3424                ComputeBoundsAction.getBounds(new Node(LatLon.ZERO), false));
Note: See TracChangeset for help on using the changeset viewer.