diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2020-11-14 11:30:06 -0800 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2020-11-14 11:30:06 -0800 |
commit | f3d1281d421a83677fbbcd25426e3440efc4c00a (patch) | |
tree | 7bdcfadb97d9806bd0398f009d62bddcad0f1b11 /src/test/java/org/traccar/protocol/TaipProtocolDecoderTest.java | |
parent | ebd0688d342d26be078f89ca6b5fbd0d5717bbdc (diff) | |
download | trackermap-server-f3d1281d421a83677fbbcd25426e3440efc4c00a.tar.gz trackermap-server-f3d1281d421a83677fbbcd25426e3440efc4c00a.tar.bz2 trackermap-server-f3d1281d421a83677fbbcd25426e3440efc4c00a.zip |
Support ControlSat CST-10
Diffstat (limited to 'src/test/java/org/traccar/protocol/TaipProtocolDecoderTest.java')
-rw-r--r-- | src/test/java/org/traccar/protocol/TaipProtocolDecoderTest.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/test/java/org/traccar/protocol/TaipProtocolDecoderTest.java b/src/test/java/org/traccar/protocol/TaipProtocolDecoderTest.java index 0b9eacb8d..b4594bb0e 100644 --- a/src/test/java/org/traccar/protocol/TaipProtocolDecoderTest.java +++ b/src/test/java/org/traccar/protocol/TaipProtocolDecoderTest.java @@ -2,6 +2,7 @@ package org.traccar.protocol; import org.junit.Test; import org.traccar.ProtocolTest; +import org.traccar.model.Position; public class TaipProtocolDecoderTest extends ProtocolTest { @@ -10,6 +11,16 @@ public class TaipProtocolDecoderTest extends ProtocolTest { TaipProtocolDecoder decoder = new TaipProtocolDecoder(null); + verifyAttribute(decoder, text( + ">RUS00,031120185945-3138060-06417622000209200FF,000000000000000000000000000,0000000000,11440419,00000,00000,00000,00;ID=CST3G0495;#IP0:1EF7;*4B<"), + Position.KEY_BATTERY, 4.19); + + verifyPosition(decoder, text( + ">RUS00,031120185945-3138060-06417622000209200FF,000000000000000000000000000,0000000000,11440419,00000,00;ID=CST3G0495;#IP0:1EF7;*4B<")); + + verifyPosition(decoder, text( + ">RGP041120190000-3137454-064075520001883004D50;ID=8385;#IP0:0080;*19<")); + verifyNull(decoder, text( ">RLN25601000+297185103-0955755990+000059150000+0000000012000000000000000000000000000000000000000000000000000000000012;ID=3580;*48<")); |