Last change
on this file since 8509 was 8509, checked in by Don-vip, 9 years ago |
fix many checkstyle violations
|
File size:
562 bytes
|
Line | |
---|
1 | // License: GPL. For details, see LICENSE file.
|
---|
2 | package org.openstreetmap.josm.tools.date;
|
---|
3 |
|
---|
4 | import static org.hamcrest.CoreMatchers.is;
|
---|
5 | import static org.junit.Assert.assertThat;
|
---|
6 |
|
---|
7 | import org.junit.Test;
|
---|
8 |
|
---|
9 | public class DateUtilsTest {
|
---|
10 | @Test
|
---|
11 | public void testMapDate() throws Exception {
|
---|
12 | assertThat(DateUtils.fromString("2012-08-13T15:10:37Z").getTime(), is(1344870637000L));
|
---|
13 |
|
---|
14 | }
|
---|
15 |
|
---|
16 | @Test
|
---|
17 | public void testNoteDate() throws Exception {
|
---|
18 | assertThat(DateUtils.fromString("2014-11-29 22:08:50 UTC").getTime(), is(1417298930000L));
|
---|
19 | }
|
---|
20 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.