Changeset 17104 in josm for trunk/test/unit/org/openstreetmap
- Timestamp:
- 2020-10-07T20:42:43+02:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/tools/date/DateUtilsTest.java
r16182 r17104 10 10 import java.text.DateFormat; 11 11 import java.util.Date; 12 import java.util.Random; 12 13 import java.util.TimeZone; 13 14 import java.util.concurrent.ForkJoinPool; 15 16 import org.junit.Ignore; 14 17 import org.junit.Rule; 15 18 import org.junit.Test; … … 192 195 193 196 // Local time 194 TimeZone.setDefault(TimeZone.getTimeZone("Europe/Berlin"));197 setTimeZone(TimeZone.getTimeZone("Europe/Berlin")); 195 198 assertEquals(1459688400000L, DateUtils.tsFromString("03-APR-16 15:00:00")); 199 } 200 201 @Test 202 @Ignore("slow; use for thread safety testing") 203 public void testTsFromString800k() throws Exception { 204 new ForkJoinPool(64).submit(() -> new Random() 205 .longs(800_000) 206 .parallel() 207 .forEach(ignore -> testTsFromString())).get(); 196 208 } 197 209
Note:
See TracChangeset
for help on using the changeset viewer.