Ignore:
Timestamp:
2020-10-28T20:41:00+01:00 (12 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

Location:
trunk/test/unit/org/openstreetmap/josm/gui/download
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/gui/download/BookmarkSelectionTest.java

    r10962 r17275  
    22package org.openstreetmap.josm.gui.download;
    33
    4 import org.junit.Rule;
    5 import org.junit.Test;
     4import org.junit.jupiter.api.extension.RegisterExtension;
     5import org.junit.jupiter.api.Test;
    66import org.openstreetmap.josm.data.Bounds;
    77import org.openstreetmap.josm.testutils.JOSMTestRules;
     
    1212 * Unit tests of {@link BookmarkSelection} class.
    1313 */
    14 public class BookmarkSelectionTest {
     14class BookmarkSelectionTest {
    1515
    1616    /**
    1717     * Setup tests
    1818     */
    19     @Rule
     19    @RegisterExtension
    2020    @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")
    2121    public JOSMTestRules test = new JOSMTestRules().preferences();
     
    2525     */
    2626    @Test
    27     public void testBookmarkSelection() {
     27    void testBookmarkSelection() {
    2828        BookmarkSelection sel = new BookmarkSelection();
    2929        sel.addGui(null);
  • trunk/test/unit/org/openstreetmap/josm/gui/download/BoundingBoxSelectionTest.java

    r10962 r17275  
    22package org.openstreetmap.josm.gui.download;
    33
    4 import org.junit.Rule;
    5 import org.junit.Test;
     4import org.junit.jupiter.api.extension.RegisterExtension;
     5import org.junit.jupiter.api.Test;
    66import org.openstreetmap.josm.data.Bounds;
    77import org.openstreetmap.josm.testutils.JOSMTestRules;
     
    1212 * Unit tests of {@link BoundingBoxSelection} class.
    1313 */
    14 public class BoundingBoxSelectionTest {
     14class BoundingBoxSelectionTest {
    1515
    1616    /**
    1717     * Setup tests
    1818     */
    19     @Rule
     19    @RegisterExtension
    2020    @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")
    2121    public JOSMTestRules test = new JOSMTestRules().preferences();
     
    2525     */
    2626    @Test
    27     public void testBoundingBoxSelection() {
     27    void testBoundingBoxSelection() {
    2828        BoundingBoxSelection sel = new BoundingBoxSelection();
    2929        sel.addGui(null);
  • trunk/test/unit/org/openstreetmap/josm/gui/download/PlaceSelectionTest.java

    r10962 r17275  
    22package org.openstreetmap.josm.gui.download;
    33
    4 import org.junit.Rule;
    5 import org.junit.Test;
     4import org.junit.jupiter.api.extension.RegisterExtension;
     5import org.junit.jupiter.api.Test;
    66import org.openstreetmap.josm.data.Bounds;
    77import org.openstreetmap.josm.testutils.JOSMTestRules;
     
    1212 * Unit tests of {@link PlaceSelection} class.
    1313 */
    14 public class PlaceSelectionTest {
     14class PlaceSelectionTest {
    1515
    1616    /**
    1717     * Setup tests
    1818     */
    19     @Rule
     19    @RegisterExtension
    2020    @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")
    2121    public JOSMTestRules test = new JOSMTestRules().preferences();
     
    2525     */
    2626    @Test
    27     public void testBookmarkSelection() {
     27    void testBookmarkSelection() {
    2828        PlaceSelection sel = new PlaceSelection();
    2929        sel.addGui(null);
  • trunk/test/unit/org/openstreetmap/josm/gui/download/TileSelectionTest.java

    r10962 r17275  
    22package org.openstreetmap.josm.gui.download;
    33
    4 import org.junit.Rule;
    5 import org.junit.Test;
     4import org.junit.jupiter.api.extension.RegisterExtension;
     5import org.junit.jupiter.api.Test;
    66import org.openstreetmap.josm.data.Bounds;
    77import org.openstreetmap.josm.testutils.JOSMTestRules;
     
    1212 * Unit tests of {@link TileSelection} class.
    1313 */
    14 public class TileSelectionTest {
     14class TileSelectionTest {
    1515
    1616    /**
    1717     * Setup tests
    1818     */
    19     @Rule
     19    @RegisterExtension
    2020    @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")
    2121    public JOSMTestRules test = new JOSMTestRules().preferences();
     
    2525     */
    2626    @Test
    27     public void testTileSelection() {
     27    void testTileSelection() {
    2828        TileSelection sel = new TileSelection();
    2929        sel.addGui(null);
Note: See TracChangeset for help on using the changeset viewer.