aboutsummaryrefslogtreecommitdiff
path: root/test/net/sourceforge
diff options
context:
space:
mode:
Diffstat (limited to 'test/net/sourceforge')
-rw-r--r--test/net/sourceforge/opentracking/protocol/gps103/Gps103ProtocolDecoderTest.java10
-rw-r--r--test/net/sourceforge/opentracking/protocol/xexun/XexunProtocolDecoderTest.java2
2 files changed, 11 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,;
diff --git a/test/net/sourceforge/opentracking/protocol/xexun/XexunProtocolDecoderTest.java b/test/net/sourceforge/opentracking/protocol/xexun/XexunProtocolDecoderTest.java
index 9adbc2c31..23ef128ec 100644
--- a/test/net/sourceforge/opentracking/protocol/xexun/XexunProtocolDecoderTest.java
+++ b/test/net/sourceforge/opentracking/protocol/xexun/XexunProtocolDecoderTest.java
@@ -33,6 +33,8 @@ public class XexunProtocolDecoderTest {
String testMsg =
"GPRMC,010203.000,A,0102.0003,N,00102.0003,E,1.02,1.02,010203,,,A*00,F,, " +
"imei:10000000000000,";
+ //"GPRMC,233842.000,A,5001.3060,N,01429.3243,E,0.00,,210211,,,A*74,F," +
+ //"imei:354776030495631,";
XexunProtocolDecoder decoder = new XexunProtocolDecoder(new TestDataManager());
Position position = (Position) decoder.decode(null, null, testMsg);