aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/org/traccar/protocol
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2019-06-30 14:58:42 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2019-06-30 14:58:42 -0700
commit612a78517f08362c7be94b62d6b4d5e108cfd665 (patch)
tree30f8273d2045cb96bff9ca4551ba3ce41b00c453 /src/test/java/org/traccar/protocol
parent0527e6817084a1c907ddb41ff9bb3c6e67a3dabd (diff)
downloadtrackermap-server-612a78517f08362c7be94b62d6b4d5e108cfd665.tar.gz
trackermap-server-612a78517f08362c7be94b62d6b4d5e108cfd665.tar.bz2
trackermap-server-612a78517f08362c7be94b62d6b4d5e108cfd665.zip
Add Castel test cases
Diffstat (limited to 'src/test/java/org/traccar/protocol')
-rw-r--r--src/test/java/org/traccar/protocol/CastelProtocolDecoderTest.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/test/java/org/traccar/protocol/CastelProtocolDecoderTest.java b/src/test/java/org/traccar/protocol/CastelProtocolDecoderTest.java
index bb8d74b40..3c35398a6 100644
--- a/src/test/java/org/traccar/protocol/CastelProtocolDecoderTest.java
+++ b/src/test/java/org/traccar/protocol/CastelProtocolDecoderTest.java
@@ -2,6 +2,7 @@ package org.traccar.protocol;
import org.junit.Test;
import org.traccar.ProtocolTest;
+import org.traccar.model.Position;
public class CastelProtocolDecoderTest extends ProtocolTest {
@@ -10,6 +11,10 @@ public class CastelProtocolDecoderTest extends ProtocolTest {
CastelProtocolDecoder decoder = new CastelProtocolDecoder(null);
+ verifyAttribute(decoder, binary(
+ "40403a00043231334744503230313830323133343300000000a002000001000001012011004d414c43333831434d4b4d353637313438c8fc0d0a"),
+ Position.KEY_RESULT, "MALC381CMKM567148");
+
verifyAttributes(decoder, binary(
"404043000432313357503230313830303138323400000000004005f064d95c8365d95c9f2f0100c50200004006000000000000040003440068000000000100f3660d0a"));