aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar/calendar/CalendarTest.java
diff options
context:
space:
mode:
authorChristoph Krey <c@ckrey.de>2018-04-16 10:45:11 +0200
committerGitHub <noreply@github.com>2018-04-16 10:45:11 +0200
commit3a602dd133b533cc69d5986d64a00fb3ed670f75 (patch)
tree97ff753db310a49ae7e53240b1db07fb8475679e /test/org/traccar/calendar/CalendarTest.java
parent232de5f0daef98f31b28d177d991fdbfa191f195 (diff)
parent6d4b8df25c7e942b9ad594db9444fe15bcb16be9 (diff)
downloadtrackermap-server-3a602dd133b533cc69d5986d64a00fb3ed670f75.tar.gz
trackermap-server-3a602dd133b533cc69d5986d64a00fb3ed670f75.tar.bz2
trackermap-server-3a602dd133b533cc69d5986d64a00fb3ed670f75.zip
Merge pull request #4 from traccar/master
upgrade to current master
Diffstat (limited to 'test/org/traccar/calendar/CalendarTest.java')
-rw-r--r--test/org/traccar/calendar/CalendarTest.java11
1 files changed, 6 insertions, 5 deletions
diff --git a/test/org/traccar/calendar/CalendarTest.java b/test/org/traccar/calendar/CalendarTest.java
index 0c8e1830b..0de89f97f 100644
--- a/test/org/traccar/calendar/CalendarTest.java
+++ b/test/org/traccar/calendar/CalendarTest.java
@@ -7,12 +7,13 @@ import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
-import org.junit.Assert;
import org.junit.Test;
import org.traccar.model.Calendar;
import net.fortuna.ical4j.data.ParserException;
+import static org.junit.Assert.assertTrue;
+
public class CalendarTest {
@Test
@@ -46,13 +47,13 @@ public class CalendarTest {
DateFormat format = new SimpleDateFormat("yyyy-MM-dd hh:mm:ssX");
Date date = format.parse("2016-12-13 22:59:59+05");
- Assert.assertTrue(!calendar.checkMoment(date));
+ assertTrue(!calendar.checkMoment(date));
date = format.parse("2016-12-13 23:00:01+05");
- Assert.assertTrue(calendar.checkMoment(date));
+ assertTrue(calendar.checkMoment(date));
date = format.parse("2016-12-13 06:59:59+05");
- Assert.assertTrue(calendar.checkMoment(date));
+ assertTrue(calendar.checkMoment(date));
date = format.parse("2016-12-13 07:00:01+05");
- Assert.assertTrue(!calendar.checkMoment(date));
+ assertTrue(!calendar.checkMoment(date));
}
}