Ignore:
Timestamp:
2023-03-16T22:09:01+01:00 (2 years ago)
Author:
taylor.smock
Message:

Fix #22381: Try to automatically install newly required plugins on plugin update

This additionally updates the plugin tests to JUnit 5 (see #16567). Some tests
required fixing (for example, MinimapDialogTest fails if the system of
measurement is metric).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/gui/dialogs/MinimapDialogTest.java

    r18690 r18694  
    3030import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
    3131import org.awaitility.Awaitility;
     32import org.junit.Before;
    3233import org.junit.Rule;
    3334import org.junit.Test;
     
    3536import org.openstreetmap.josm.data.Bounds;
    3637import org.openstreetmap.josm.data.DataSource;
     38import org.openstreetmap.josm.data.SystemOfMeasurement;
    3739import org.openstreetmap.josm.data.imagery.ImageryInfo;
    3840import org.openstreetmap.josm.data.imagery.ImageryLayerInfo;
     
    6365    @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")
    6466    public JOSMTestRules josmTestRules = new JOSMTestRules().main().projection().fakeImagery();
     67
     68    @Before
     69    public void beforeAll() {
     70        // Needed since testShowDownloadedAreaLayerSwitching expects the measurement to be imperial
     71        SystemOfMeasurement.setSystemOfMeasurement(SystemOfMeasurement.IMPERIAL);
     72    }
    6573
    6674    /**
Note: See TracChangeset for help on using the changeset viewer.