Changeset 18689 in josm for trunk/test
- Timestamp:
- 2023-03-10T00:30:31+01:00 (21 months ago)
- Location:
- trunk/test/unit/org/openstreetmap/josm/gui/layer/geoimage
- Files:
-
- 1 deleted
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/gui/layer/geoimage/ImagesLoaderTest.java
r18686 r18689 10 10 import java.util.List; 11 11 12 import org.junit.jupiter.api.AfterEach;13 12 import org.junit.jupiter.api.Test; 13 import org.junit.jupiter.api.extension.RegisterExtension; 14 14 import org.openstreetmap.josm.TestUtils; 15 15 import org.openstreetmap.josm.gui.MainApplication; 16 16 import org.openstreetmap.josm.gui.layer.GpxLayer; 17 17 import org.openstreetmap.josm.io.GpxReader; 18 import org.openstreetmap.josm.testutils.annotations.BasicPreferences; 18 import org.openstreetmap.josm.testutils.JOSMTestRules; 19 20 import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; 19 21 20 22 /** 21 23 * Unit tests of {@link ImagesLoader} class. 22 24 */ 23 @BasicPreferences24 25 class ImagesLoaderTest { 25 26 26 @AfterEach27 void tearDown() {28 if (ImageViewerDialog.hasInstance()) {29 ImageViewerDialog.getInstance().destroy();30 }31 }27 /** 28 * We need prefs for this. 29 */ 30 @RegisterExtension 31 @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD") 32 public JOSMTestRules test = new JOSMTestRules().preferences(); 32 33 33 34 /** -
trunk/test/unit/org/openstreetmap/josm/gui/layer/geoimage/WikimediaCommonsLoaderTest.java
r18686 r18689 11 11 import java.util.List; 12 12 13 import org.junit.jupiter.api.AfterEach;14 13 import org.junit.jupiter.api.BeforeAll; 15 14 import org.junit.jupiter.api.Test; … … 30 29 static void beforeAll() { 31 30 HttpClient.setFactory(Http1Client::new); 32 }33 34 @AfterEach35 void tearDown() {36 if (ImageViewerDialog.hasInstance()) {37 ImageViewerDialog.getInstance().destroy();38 }39 31 } 40 32
Note:
See TracChangeset
for help on using the changeset viewer.