diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2018-01-25 20:14:42 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2018-01-26 08:41:45 +1300 |
commit | 87bdccbe9843e38174ad345b8e474b1cded9f985 (patch) | |
tree | 4b2f90ad2b9a5d32410ab9579fb4135b5ac95bfa /test/org/traccar/calendar | |
parent | 8535983fea8c09046c53f2ebf388bbf3fae594ce (diff) | |
download | traccar-server-87bdccbe9843e38174ad345b8e474b1cded9f985.tar.gz traccar-server-87bdccbe9843e38174ad345b8e474b1cded9f985.tar.bz2 traccar-server-87bdccbe9843e38174ad345b8e474b1cded9f985.zip |
Static imports for junit
Diffstat (limited to 'test/org/traccar/calendar')
-rw-r--r-- | test/org/traccar/calendar/CalendarTest.java | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/test/org/traccar/calendar/CalendarTest.java b/test/org/traccar/calendar/CalendarTest.java index 0c8e1830b..ae68af9c0 100644 --- a/test/org/traccar/calendar/CalendarTest.java +++ b/test/org/traccar/calendar/CalendarTest.java @@ -13,6 +13,8 @@ import org.traccar.model.Calendar; import net.fortuna.ical4j.data.ParserException; +import static org.junit.Assert.assertTrue; + public class CalendarTest { @Test @@ -46,13 +48,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)); } } |