Ignore:
Timestamp:
2015-10-11T17:28:19+02:00 (4 years ago)
Author:
Don-vip
Message:

improve/cleanup unit tests

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/tools/date/DateUtilsTest.java

    r8624 r8857  
    22package org.openstreetmap.josm.tools.date;
    33
    4 import static org.hamcrest.CoreMatchers.is;
    5 import static org.junit.Assert.assertThat;
     4import static org.junit.Assert.assertEquals;
    65
    76import org.junit.Test;
    87
     8/**
     9 * Unit tests of {@link DateUtils} class.
     10 */
    911public class DateUtilsTest {
    1012    @Test
    1113    public void testMapDate() throws Exception {
    12         assertThat(DateUtils.fromString("2012-08-13T15:10:37Z").getTime(), is(1344870637000L));
     14        assertEquals(1344870637000L, DateUtils.fromString("2012-08-13T15:10:37Z").getTime());
    1315
    1416    }
     
    1618    @Test
    1719    public void testNoteDate() throws Exception {
    18         assertThat(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());
    1921    }
    2022}
Note: See TracChangeset for help on using the changeset viewer.