Changeset 14079 in josm for trunk/test/unit/org


Ignore:
Timestamp:
2018-08-03T18:18:43+02:00 (6 years ago)
Author:
Don-vip
Message:

see #16550 - use UTC by default for GPX timestamps

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

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/JOSMFixture.java

    r13812 r14079  
    2929import org.openstreetmap.josm.tools.JosmRuntimeException;
    3030import org.openstreetmap.josm.tools.Logging;
     31import org.openstreetmap.josm.tools.date.DateUtils;
    3132
    3233/**
     
    9798        }
    9899        System.setProperty("josm.home", josmHome);
    99         TimeZone.setDefault(TimeZone.getTimeZone("UTC"));
     100        TimeZone.setDefault(DateUtils.UTC);
    100101        Config.setPreferencesInstance(Main.pref);
    101102        Config.setBaseDirectoriesProvider(JosmBaseDirectories.getInstance());
  • trunk/test/unit/org/openstreetmap/josm/gui/layer/geoimage/CorrelateGpxWithImagesTest.java

    r13306 r14079  
    88import java.util.Arrays;
    99import java.util.Collections;
    10 import java.util.TimeZone;
    1110
    1211import org.junit.BeforeClass;
     
    4039    @BeforeClass
    4140    public static void setUp() {
    42         DateUtilsTest.setTimeZone(TimeZone.getTimeZone("UTC"));
     41        DateUtilsTest.setTimeZone(DateUtils.UTC);
    4342    }
    4443
  • trunk/test/unit/org/openstreetmap/josm/gui/layer/geoimage/OffsetTest.java

    r11914 r14079  
    55
    66import java.text.ParseException;
    7 import java.util.TimeZone;
    87
    98import org.junit.BeforeClass;
     
    1110import org.junit.Test;
    1211import org.openstreetmap.josm.testutils.JOSMTestRules;
     12import org.openstreetmap.josm.tools.date.DateUtils;
    1313import org.openstreetmap.josm.tools.date.DateUtilsTest;
    1414
     
    3232    @BeforeClass
    3333    public static void setUp() {
    34         DateUtilsTest.setTimeZone(TimeZone.getTimeZone("UTC"));
     34        DateUtilsTest.setTimeZone(DateUtils.UTC);
    3535    }
    3636
  • trunk/test/unit/org/openstreetmap/josm/gui/layer/geoimage/TimezoneTest.java

    r11914 r14079  
    55
    66import java.text.ParseException;
    7 import java.util.TimeZone;
    87
    98import org.junit.BeforeClass;
     
    1110import org.junit.Test;
    1211import org.openstreetmap.josm.testutils.JOSMTestRules;
     12import org.openstreetmap.josm.tools.date.DateUtils;
    1313import org.openstreetmap.josm.tools.date.DateUtilsTest;
    1414
     
    3232    @BeforeClass
    3333    public static void setUp() {
    34         DateUtilsTest.setTimeZone(TimeZone.getTimeZone("UTC"));
     34        DateUtilsTest.setTimeZone(DateUtils.UTC);
    3535    }
    3636
  • trunk/test/unit/org/openstreetmap/josm/io/nmea/NmeaReaderTest.java

    r14068 r14079  
    5151    @Before
    5252    public void setUp() {
    53         iso8601.setTimeZone(TimeZone.getTimeZone("UTC"));
     53        iso8601.setTimeZone(DateUtils.UTC);
    5454    }
    5555
Note: See TracChangeset for help on using the changeset viewer.