source: josm/trunk/test/unit/org/openstreetmap/josm/tools/date/DateUtilsTest.java@ 8876

Last change on this file since 8876 was 8876, checked in by Don-vip, 9 years ago

cleanup unit tests

  • Property svn:eol-style set to native
File size: 670 bytes
Line 
1// License: GPL. For details, see LICENSE file.
2package org.openstreetmap.josm.tools.date;
3
4import static org.junit.Assert.assertEquals;
5
6import org.junit.Test;
7
8/**
9 * Unit tests of {@link DateUtils} class.
10 */
11public class DateUtilsTest {
12
13 /**
14 * Test to parse date as returned for map data.
15 */
16 @Test
17 public void testMapDate() {
18 assertEquals(1344870637000L, DateUtils.fromString("2012-08-13T15:10:37Z").getTime());
19 }
20
21 /**
22 * Test to parse date as returned for note data.
23 */
24 @Test
25 public void testNoteDate() {
26 assertEquals(1417298930000L, DateUtils.fromString("2014-11-29 22:08:50 UTC").getTime());
27 }
28}
Note: See TracBrowser for help on using the repository browser.