aboutsummaryrefslogtreecommitdiff
path: root/test/net/sourceforge/opentracking/protocol/gps103
diff options
context:
space:
mode:
Diffstat (limited to 'test/net/sourceforge/opentracking/protocol/gps103')
-rw-r--r--test/net/sourceforge/opentracking/protocol/gps103/Gps103ProtocolDecoderTest.java10
1 files changed, 9 insertions, 1 deletions
diff --git a/test/net/sourceforge/opentracking/protocol/gps103/Gps103ProtocolDecoderTest.java b/test/net/sourceforge/opentracking/protocol/gps103/Gps103ProtocolDecoderTest.java
index 8d259a89f..3d1adcf34 100644
--- a/test/net/sourceforge/opentracking/protocol/gps103/Gps103ProtocolDecoderTest.java
+++ b/test/net/sourceforge/opentracking/protocol/gps103/Gps103ProtocolDecoderTest.java
@@ -1,6 +1,7 @@
package net.sourceforge.opentracking.protocol.gps103;
-import java.util.Date;
+import java.util.Calendar;
+import java.util.TimeZone;
import java.util.GregorianCalendar;
import java.util.List;
import org.junit.Test;
@@ -30,6 +31,13 @@ public class Gps103ProtocolDecoderTest {
@Test
public void testDecode() throws Exception {
+ Calendar time = new GregorianCalendar(TimeZone.getTimeZone("UTC"));
+ time.set(Calendar.HOUR, 0);
+ time.set(Calendar.MINUTE, 1);
+ time.set(Calendar.SECOND, 2);
+ time.set(Calendar.MILLISECOND, 3);
+ String x = time.getTime().toString();
+
String testMsg1 = "##,imei:10000000000000,A";
// NEW MESSAGE: imei:359587017470280,tracker,0000000000,03184511405,L,;