Changeset 15399 in josm


Ignore:
Timestamp:
2019-10-01T01:15:47+02:00 (5 years ago)
Author:
Don-vip
Message:

force metric system in unit tests

Location:
trunk/test/unit/org/openstreetmap/josm
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/gui/layer/GpxLayerTest.java

    r15398 r15399  
    1111import java.util.Collection;
    1212import java.util.HashMap;
    13 import java.util.Locale;
    1413import java.util.TimeZone;
    1514
    1615import javax.swing.JScrollPane;
    1716
    18 import org.junit.Before;
    1917import org.junit.Rule;
    2018import org.junit.Test;
     
    4442    @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")
    4543    public JOSMTestRules test = new JOSMTestRules().main().projection().i18n();
    46 
    47     /**
    48      * Setup test
    49      */
    50     @Before
    51     public void before() {
    52         // Make sure we don't rely on a specific country, for distance units
    53         Locale.setDefault(Locale.ENGLISH);
    54     }
    5544
    5645    private static String getHtml(GpxLayer layer) {
  • trunk/test/unit/org/openstreetmap/josm/testutils/JOSMTestRules.java

    r15232 r15399  
    3434import org.openstreetmap.josm.command.DeleteCommand;
    3535import org.openstreetmap.josm.data.Preferences;
     36import org.openstreetmap.josm.data.SystemOfMeasurement;
    3637import org.openstreetmap.josm.data.UserIdentityManager;
    3738import org.openstreetmap.josm.data.Version;
     
    500501        }
    501502
     503        // Make sure we're using the metric system
     504        SystemOfMeasurement.setSystemOfMeasurement(SystemOfMeasurement.METRIC.getName());
     505
    502506        if (useHttps) {
    503507            try {
Note: See TracChangeset for help on using the changeset viewer.