aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/org/traccar/protocol/SmokeyProtocolDecoderTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/java/org/traccar/protocol/SmokeyProtocolDecoderTest.java')
-rw-r--r--src/test/java/org/traccar/protocol/SmokeyProtocolDecoderTest.java21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/test/java/org/traccar/protocol/SmokeyProtocolDecoderTest.java b/src/test/java/org/traccar/protocol/SmokeyProtocolDecoderTest.java
new file mode 100644
index 000000000..c2d74b433
--- /dev/null
+++ b/src/test/java/org/traccar/protocol/SmokeyProtocolDecoderTest.java
@@ -0,0 +1,21 @@
+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(null);
+
+ verifyAttributes(decoder, binary(
+ "534d0300865101019383025f0403000000000b86250200000c0000028f000102f8cc0900127f08"));
+
+ verifyAttributes(decoder, binary(
+ "534d0300865101019383025f0403000000000bcf260200000c0000028f000102f8cc090012360b"));
+
+ }
+
+}