aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2013-03-17 15:12:52 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2013-03-17 15:12:52 +1300
commit91436e6a790b6c01c7af7d6c73c8783896c6cd87 (patch)
treeb8798424e3167a6ba48c788e528524fffe35bfc3 /test
parent8db1cf2bc97f5f616bd5722656db2d69edd46d45 (diff)
downloadtraccar-server-91436e6a790b6c01c7af7d6c73c8783896c6cd87.tar.gz
traccar-server-91436e6a790b6c01c7af7d6c73c8783896c6cd87.tar.bz2
traccar-server-91436e6a790b6c01c7af7d6c73c8783896c6cd87.zip
Add VT300 protocol
Diffstat (limited to 'test')
-rw-r--r--test/org/traccar/protocol/Vt300ProtocolDecoderTest.java19
1 files changed, 19 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/Vt300ProtocolDecoderTest.java b/test/org/traccar/protocol/Vt300ProtocolDecoderTest.java
new file mode 100644
index 000000000..5a1bf685f
--- /dev/null
+++ b/test/org/traccar/protocol/Vt300ProtocolDecoderTest.java
@@ -0,0 +1,19 @@
+package org.traccar.protocol;
+
+import static org.junit.Assert.assertNotNull;
+import org.junit.Test;
+
+public class Vt300ProtocolDecoderTest {
+
+ @Test
+ public void testDecode() throws Exception {
+
+ Vt300ProtocolDecoder decoder = new Vt300ProtocolDecoder(null);
+ decoder.setDataManager(new TestDataManager());
+
+ assertNotNull(decoder.decode(null, null,
+ "210000001,20070313170040,121.123456,12.654321,0,233,0,9,2,0.0,0,0.00,0.00,0"));
+
+ }
+
+}