Ignore:
Timestamp:
2020-10-28T20:41:00+01:00 (3 years 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/layer/AbstractMapViewPaintableTest.java

    r10883 r17275  
    22package org.openstreetmap.josm.gui.layer;
    33
    4 import static org.junit.Assert.assertFalse;
    5 import static org.junit.Assert.assertTrue;
     4import static org.junit.jupiter.api.Assertions.assertFalse;
     5import static org.junit.jupiter.api.Assertions.assertTrue;
    66
    77import java.util.concurrent.atomic.AtomicBoolean;
    88
    9 import org.junit.Before;
    10 import org.junit.Rule;
    11 import org.junit.Test;
     9import org.junit.jupiter.api.BeforeEach;
     10import org.junit.jupiter.api.Test;
     11import org.junit.jupiter.api.extension.RegisterExtension;
    1212import org.openstreetmap.josm.gui.layer.MapViewPaintable.PaintableInvalidationListener;
    1313import org.openstreetmap.josm.testutils.JOSMTestRules;
     
    1919 * @author Michael Zangl
    2020 */
    21 public class AbstractMapViewPaintableTest {
     21class AbstractMapViewPaintableTest {
    2222    /**
    2323     * No special test rules
    2424     */
    25     @Rule
     25    @RegisterExtension
    2626    @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")
    2727    public JOSMTestRules test = new JOSMTestRules();
     
    3232     * Create test layer
    3333     */
    34     @Before
     34    @BeforeEach
    3535    public void setUp() {
    3636        testLayer = new LayerManagerTest.TestLayer();
     
    4141     */
    4242    @Test
    43     public void testInvalidate() {
     43    void testInvalidate() {
    4444        AtomicBoolean fired = new AtomicBoolean();
    4545        PaintableInvalidationListener listener = l -> fired.set(true);
Note: See TracChangeset for help on using the changeset viewer.