aboutsummaryrefslogtreecommitdiff
path: root/test/net/sourceforge/opentracking/protocol/gps103
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2011-02-22 11:03:54 +0000
committerAnton Tananaev <anton.tananaev@gmail.com>2011-02-22 11:03:54 +0000
commit52c26cb593201a74443329221722cc33c142b476 (patch)
treec5ecf20cbc265a9147bf7bfcc856913565149dd6 /test/net/sourceforge/opentracking/protocol/gps103
parentcdd6d038c5adca06db989a3b6fe8bd3fd36fe9ed (diff)
downloadtrackermap-server-52c26cb593201a74443329221722cc33c142b476.tar.gz
trackermap-server-52c26cb593201a74443329221722cc33c142b476.tar.bz2
trackermap-server-52c26cb593201a74443329221722cc33c142b476.zip
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,;