aboutsummaryrefslogtreecommitdiff
path: root/test/org
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-10-03 08:09:22 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2016-10-03 08:09:22 +1300
commit118c650bd2fd55e8e61349f9173ce12900dcf4ee (patch)
treea54de26781b5e24c52d1ef4a46059a36d8bc6676 /test/org
parent5fa04496f7f752e6c7fe339b712875ae6b860d3d (diff)
downloadtrackermap-server-118c650bd2fd55e8e61349f9173ce12900dcf4ee.tar.gz
trackermap-server-118c650bd2fd55e8e61349f9173ce12900dcf4ee.tar.bz2
trackermap-server-118c650bd2fd55e8e61349f9173ce12900dcf4ee.zip
Start Smokey protocol implementation
Diffstat (limited to 'test/org')
-rw-r--r--test/org/traccar/protocol/SmokeyProtocolDecoderTest.java27
1 files changed, 27 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/SmokeyProtocolDecoderTest.java b/test/org/traccar/protocol/SmokeyProtocolDecoderTest.java
new file mode 100644
index 000000000..01950fdb5
--- /dev/null
+++ b/test/org/traccar/protocol/SmokeyProtocolDecoderTest.java
@@ -0,0 +1,27 @@
+package org.traccar.protocol;
+
+import org.junit.Test;
+import org.traccar.ProtocolTest;
+
+public class SmokeyProtocolDecoderTest extends ProtocolTest {
+
+ @Test
+ public void testDecode() throws Exception {
+
+ SmokeyProtocolDecoder decoder = new SmokeyProtocolDecoder(new SmokeyProtocol());
+
+ verifyNothing(decoder, binary(
+ "534d0300865628025163272f031400000000001c000200000c0168028f000102c9f93a011f538d"));
+
+ verifyNothing(decoder, binary(
+ "534d0300865628025163272f031400000000001f000200000c0167028f000102c9f93a011f5082"));
+
+ verifyNothing(decoder, binary(
+ "534d0300865628025163272f031400000000001d000200000c0167028f000102c9f93a011f5282"));
+
+ verifyNothing(decoder, binary(
+ "534d0300865628025163272f031400000000001e000200000c0167028f000102c9f93a011f5182"));
+
+ }
+
+}