diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2021-05-27 21:27:50 -0700 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2021-05-27 21:27:57 -0700 |
commit | abf3fc0e3b440a15ad1cade05324fc6e13bfb25d (patch) | |
tree | 813d5c56114ac06c24294ee0b9534683ae6256e3 /src/test/java/org/traccar/protocol | |
parent | 3ebd7383a9fdf797ac06fbe8988c2cba0430410d (diff) | |
download | trackermap-server-abf3fc0e3b440a15ad1cade05324fc6e13bfb25d.tar.gz trackermap-server-abf3fc0e3b440a15ad1cade05324fc6e13bfb25d.tar.bz2 trackermap-server-abf3fc0e3b440a15ad1cade05324fc6e13bfb25d.zip |
Decode driver id
Diffstat (limited to 'src/test/java/org/traccar/protocol')
-rw-r--r-- | src/test/java/org/traccar/protocol/StartekProtocolDecoderTest.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/test/java/org/traccar/protocol/StartekProtocolDecoderTest.java b/src/test/java/org/traccar/protocol/StartekProtocolDecoderTest.java index 2b880a884..802d65ab9 100644 --- a/src/test/java/org/traccar/protocol/StartekProtocolDecoderTest.java +++ b/src/test/java/org/traccar/protocol/StartekProtocolDecoderTest.java @@ -2,6 +2,7 @@ package org.traccar.protocol; import org.junit.Test; import org.traccar.ProtocolTest; +import org.traccar.model.Position; public class StartekProtocolDecoderTest extends ProtocolTest { @@ -10,6 +11,10 @@ public class StartekProtocolDecoderTest extends ProtocolTest { var decoder = new StartekProtocolDecoder(null); + verifyAttribute(decoder, text( + "&&a152,860262050010565,000,53,8F5300,210528015706,A,-38.229746,145.043446,6,1.5,0,285,84,2102994,505|1|306E|082D6101,31,0000003D,02,02,04C0|01A0|0000|0000,1,,DC"), + Position.KEY_DRIVER_UNIQUE_ID, "8F5300"); + verifyPosition(decoder, text( "&&>141,860262050010565,000,36,,210407094323,V,-38.229711,145.043161,0,0.0,0,0,0,14222,505|1|306E|082D6115,24,00000039,00,00,04C0|0164|0000|0000,1,,41")); |