Changeset 8857 in josm for trunk/test/unit/org/openstreetmap/josm/tools/date
- Timestamp:
- 2015-10-11T17:28:19+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/tools/date/DateUtilsTest.java
r8624 r8857 2 2 package org.openstreetmap.josm.tools.date; 3 3 4 import static org.hamcrest.CoreMatchers.is; 5 import static org.junit.Assert.assertThat; 4 import static org.junit.Assert.assertEquals; 6 5 7 6 import org.junit.Test; 8 7 8 /** 9 * Unit tests of {@link DateUtils} class. 10 */ 9 11 public class DateUtilsTest { 10 12 @Test 11 13 public void testMapDate() throws Exception { 12 assert That(DateUtils.fromString("2012-08-13T15:10:37Z").getTime(), is(1344870637000L));14 assertEquals(1344870637000L, DateUtils.fromString("2012-08-13T15:10:37Z").getTime()); 13 15 14 16 } … … 16 18 @Test 17 19 public void testNoteDate() throws Exception { 18 assert That(DateUtils.fromString("2014-11-29 22:08:50 UTC").getTime(), is(1417298930000L));20 assertEquals(1417298930000L, DateUtils.fromString("2014-11-29 22:08:50 UTC").getTime()); 19 21 } 20 22 }
Note:
See TracChangeset
for help on using the changeset viewer.