Changeset 17275 in josm for trunk/test/unit/org/openstreetmap/josm/gui/layer/AbstractMapViewPaintableTest.java
- Timestamp:
- 2020-10-28T20:41:00+01:00 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/gui/layer/AbstractMapViewPaintableTest.java
r10883 r17275 2 2 package org.openstreetmap.josm.gui.layer; 3 3 4 import static org.junit. Assert.assertFalse;5 import static org.junit. Assert.assertTrue;4 import static org.junit.jupiter.api.Assertions.assertFalse; 5 import static org.junit.jupiter.api.Assertions.assertTrue; 6 6 7 7 import java.util.concurrent.atomic.AtomicBoolean; 8 8 9 import org.junit. Before;10 import org.junit. Rule;11 import org.junit. Test;9 import org.junit.jupiter.api.BeforeEach; 10 import org.junit.jupiter.api.Test; 11 import org.junit.jupiter.api.extension.RegisterExtension; 12 12 import org.openstreetmap.josm.gui.layer.MapViewPaintable.PaintableInvalidationListener; 13 13 import org.openstreetmap.josm.testutils.JOSMTestRules; … … 19 19 * @author Michael Zangl 20 20 */ 21 publicclass AbstractMapViewPaintableTest {21 class AbstractMapViewPaintableTest { 22 22 /** 23 23 * No special test rules 24 24 */ 25 @R ule25 @RegisterExtension 26 26 @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD") 27 27 public JOSMTestRules test = new JOSMTestRules(); … … 32 32 * Create test layer 33 33 */ 34 @Before 34 @BeforeEach 35 35 public void setUp() { 36 36 testLayer = new LayerManagerTest.TestLayer(); … … 41 41 */ 42 42 @Test 43 publicvoid testInvalidate() {43 void testInvalidate() { 44 44 AtomicBoolean fired = new AtomicBoolean(); 45 45 PaintableInvalidationListener listener = l -> fired.set(true);
Note:
See TracChangeset
for help on using the changeset viewer.