Changeset 15396 in josm for trunk/test/unit


Ignore:
Timestamp:
2019-10-01T00:07:42+02:00 (5 years ago)
Author:
Don-vip
Message:

fix unit tests and javadoc

File:
1 edited

Legend:

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

    r14337 r15396  
    1111import java.util.Collection;
    1212import java.util.HashMap;
     13import java.util.Locale;
    1314import java.util.TimeZone;
    1415
    1516import javax.swing.JScrollPane;
    1617
     18import org.junit.BeforeClass;
    1719import org.junit.Rule;
    1820import org.junit.Test;
     
    4244    @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")
    4345    public JOSMTestRules test = new JOSMTestRules().main().projection().i18n();
     46
     47    /**
     48     * Setup test
     49     */
     50    @BeforeClass
     51    public static void beforeClass() {
     52        // Make sure we don't rely on a specific country, for distance units
     53        Locale.setDefault(Locale.ENGLISH);
     54    }
    4455
    4556    private static String getHtml(GpxLayer layer) {
Note: See TracChangeset for help on using the changeset viewer.