From 612a78517f08362c7be94b62d6b4d5e108cfd665 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sun, 30 Jun 2019 14:58:42 -0700 Subject: Add Castel test cases --- src/test/java/org/traccar/protocol/CastelProtocolDecoderTest.java | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') 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")); -- cgit v1.2.3