Ignore:
Timestamp:
2020-10-28T20:41:00+01:00 (11 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/bbox/SizeButtonTest.java

    r10962 r17275  
    22package org.openstreetmap.josm.gui.bbox;
    33
    4 import static org.junit.Assert.assertEquals;
    5 import static org.junit.Assert.assertFalse;
    6 import static org.junit.Assert.assertTrue;
     4import static org.junit.jupiter.api.Assertions.assertEquals;
     5import static org.junit.jupiter.api.Assertions.assertFalse;
     6import static org.junit.jupiter.api.Assertions.assertTrue;
    77
    8 import org.junit.Rule;
    9 import org.junit.Test;
     8import org.junit.jupiter.api.extension.RegisterExtension;
     9import org.junit.jupiter.api.Test;
    1010import org.openstreetmap.josm.TestUtils;
    1111import org.openstreetmap.josm.gui.bbox.SizeButton.AccessibleSizeButton;
     
    1717 * Unit tests of {@link SizeButton} class.
    1818 */
    19 public class SizeButtonTest {
     19class SizeButtonTest {
    2020
    2121    /**
    2222     * Setup tests
    2323     */
    24     @Rule
     24    @RegisterExtension
    2525    @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")
    2626    public JOSMTestRules test = new JOSMTestRules().preferences();
     
    3030     */
    3131    @Test
    32     public void testSizeButton() {
     32    void testSizeButton() {
    3333        SizeButton sb = new SizeButton(new SlippyMapBBoxChooser());
    3434        sb.paint(TestUtils.newGraphics());
Note: See TracChangeset for help on using the changeset viewer.