Changeset 18689 in josm for trunk/test


Ignore:
Timestamp:
2023-03-10T00:30:31+01:00 (21 months ago)
Author:
taylor.smock
Message:

Revert tests added in r18685/r18686, see #22767

The test has proven much harder to fix than expected. The test should be
readded once it has been fixed.

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  
    1010import java.util.List;
    1111
    12 import org.junit.jupiter.api.AfterEach;
    1312import org.junit.jupiter.api.Test;
     13import org.junit.jupiter.api.extension.RegisterExtension;
    1414import org.openstreetmap.josm.TestUtils;
    1515import org.openstreetmap.josm.gui.MainApplication;
    1616import org.openstreetmap.josm.gui.layer.GpxLayer;
    1717import org.openstreetmap.josm.io.GpxReader;
    18 import org.openstreetmap.josm.testutils.annotations.BasicPreferences;
     18import org.openstreetmap.josm.testutils.JOSMTestRules;
     19
     20import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
    1921
    2022/**
    2123 * Unit tests of {@link ImagesLoader} class.
    2224 */
    23 @BasicPreferences
    2425class ImagesLoaderTest {
    2526
    26     @AfterEach
    27     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();
    3233
    3334    /**
  • trunk/test/unit/org/openstreetmap/josm/gui/layer/geoimage/WikimediaCommonsLoaderTest.java

    r18686 r18689  
    1111import java.util.List;
    1212
    13 import org.junit.jupiter.api.AfterEach;
    1413import org.junit.jupiter.api.BeforeAll;
    1514import org.junit.jupiter.api.Test;
     
    3029    static void beforeAll() {
    3130        HttpClient.setFactory(Http1Client::new);
    32     }
    33 
    34     @AfterEach
    35     void tearDown() {
    36         if (ImageViewerDialog.hasInstance()) {
    37             ImageViewerDialog.getInstance().destroy();
    38         }
    3931    }
    4032
Note: See TracChangeset for help on using the changeset viewer.