aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2013-06-03 16:12:35 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2013-06-03 16:12:35 +1200
commit3ae842837ddc8b0070a726d4e25cb700d30f286b (patch)
tree823f54e823aa5e50fe622d1c9f2a7489f08fcf15 /test/org/traccar
parent35033a6176e06d14c9fc7118f1320d01ede6ac89 (diff)
downloadtraccar-server-3ae842837ddc8b0070a726d4e25cb700d30f286b.tar.gz
traccar-server-3ae842837ddc8b0070a726d4e25cb700d30f286b.tar.bz2
traccar-server-3ae842837ddc8b0070a726d4e25cb700d30f286b.zip
Start GlobalSat decoder
Diffstat (limited to 'test/org/traccar')
-rw-r--r--test/org/traccar/protocol/GlobalSatProtocolDecoderTest.java22
1 files changed, 22 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/GlobalSatProtocolDecoderTest.java b/test/org/traccar/protocol/GlobalSatProtocolDecoderTest.java
new file mode 100644
index 000000000..44cd613d7
--- /dev/null
+++ b/test/org/traccar/protocol/GlobalSatProtocolDecoderTest.java
@@ -0,0 +1,22 @@
+package org.traccar.protocol;
+
+import static org.junit.Assert.assertNotNull;
+import static org.junit.Assert.assertNull;
+import org.junit.Test;
+
+public class GlobalSatProtocolDecoderTest {
+
+ @Test
+ public void testDecode() throws Exception {
+
+ GlobalSatProtocolDecoder decoder = new GlobalSatProtocolDecoder(null);
+ decoder.setDataManager(new TestDataManager());
+
+ //assertNull(decoder.decode(null, null, "GSh,131826789036289,3,M,ea04*3d!"));
+
+ assertNotNull(decoder.decode(null, null,
+ "GSr,135785412249986,01,I,EA02,,3,230410,153318,E12129.2839,N2459.8570,0,1.17,212,8,1.0,12.3V*55!"));
+
+ }
+
+}