Changeset 14079 in josm for trunk/test/unit/org
- Timestamp:
- 2018-08-03T18:18:43+02:00 (6 years ago)
- Location:
- trunk/test/unit/org/openstreetmap/josm
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/JOSMFixture.java
r13812 r14079 29 29 import org.openstreetmap.josm.tools.JosmRuntimeException; 30 30 import org.openstreetmap.josm.tools.Logging; 31 import org.openstreetmap.josm.tools.date.DateUtils; 31 32 32 33 /** … … 97 98 } 98 99 System.setProperty("josm.home", josmHome); 99 TimeZone.setDefault( TimeZone.getTimeZone("UTC"));100 TimeZone.setDefault(DateUtils.UTC); 100 101 Config.setPreferencesInstance(Main.pref); 101 102 Config.setBaseDirectoriesProvider(JosmBaseDirectories.getInstance()); -
trunk/test/unit/org/openstreetmap/josm/gui/layer/geoimage/CorrelateGpxWithImagesTest.java
r13306 r14079 8 8 import java.util.Arrays; 9 9 import java.util.Collections; 10 import java.util.TimeZone;11 10 12 11 import org.junit.BeforeClass; … … 40 39 @BeforeClass 41 40 public static void setUp() { 42 DateUtilsTest.setTimeZone( TimeZone.getTimeZone("UTC"));41 DateUtilsTest.setTimeZone(DateUtils.UTC); 43 42 } 44 43 -
trunk/test/unit/org/openstreetmap/josm/gui/layer/geoimage/OffsetTest.java
r11914 r14079 5 5 6 6 import java.text.ParseException; 7 import java.util.TimeZone;8 7 9 8 import org.junit.BeforeClass; … … 11 10 import org.junit.Test; 12 11 import org.openstreetmap.josm.testutils.JOSMTestRules; 12 import org.openstreetmap.josm.tools.date.DateUtils; 13 13 import org.openstreetmap.josm.tools.date.DateUtilsTest; 14 14 … … 32 32 @BeforeClass 33 33 public static void setUp() { 34 DateUtilsTest.setTimeZone( TimeZone.getTimeZone("UTC"));34 DateUtilsTest.setTimeZone(DateUtils.UTC); 35 35 } 36 36 -
trunk/test/unit/org/openstreetmap/josm/gui/layer/geoimage/TimezoneTest.java
r11914 r14079 5 5 6 6 import java.text.ParseException; 7 import java.util.TimeZone;8 7 9 8 import org.junit.BeforeClass; … … 11 10 import org.junit.Test; 12 11 import org.openstreetmap.josm.testutils.JOSMTestRules; 12 import org.openstreetmap.josm.tools.date.DateUtils; 13 13 import org.openstreetmap.josm.tools.date.DateUtilsTest; 14 14 … … 32 32 @BeforeClass 33 33 public static void setUp() { 34 DateUtilsTest.setTimeZone( TimeZone.getTimeZone("UTC"));34 DateUtilsTest.setTimeZone(DateUtils.UTC); 35 35 } 36 36 -
trunk/test/unit/org/openstreetmap/josm/io/nmea/NmeaReaderTest.java
r14068 r14079 51 51 @Before 52 52 public void setUp() { 53 iso8601.setTimeZone( TimeZone.getTimeZone("UTC"));53 iso8601.setTimeZone(DateUtils.UTC); 54 54 } 55 55
Note:
See TracChangeset
for help on using the changeset viewer.