diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2020-09-16 21:49:26 -0700 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2020-09-16 21:49:26 -0700 |
commit | be296c9342c69b2ccb0136abccb2167f395e9e95 (patch) | |
tree | c2ff8e26f029d734c4dd378d37634cab9b9dacbc /src/test/java/org/traccar | |
parent | e94a83c5fdc8b48d5e8f3f537d8b6e3e15e26d51 (diff) | |
download | traccar-server-be296c9342c69b2ccb0136abccb2167f395e9e95.tar.gz traccar-server-be296c9342c69b2ccb0136abccb2167f395e9e95.tar.bz2 traccar-server-be296c9342c69b2ccb0136abccb2167f395e9e95.zip |
Fix inputs and outputs decoding
Diffstat (limited to 'src/test/java/org/traccar')
-rw-r--r-- | src/test/java/org/traccar/protocol/MeitrackProtocolDecoderTest.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/test/java/org/traccar/protocol/MeitrackProtocolDecoderTest.java b/src/test/java/org/traccar/protocol/MeitrackProtocolDecoderTest.java index 9f9da26ca..1384a1c76 100644 --- a/src/test/java/org/traccar/protocol/MeitrackProtocolDecoderTest.java +++ b/src/test/java/org/traccar/protocol/MeitrackProtocolDecoderTest.java @@ -2,6 +2,7 @@ package org.traccar.protocol; import org.junit.Test; import org.traccar.ProtocolTest; +import org.traccar.model.Position; public class MeitrackProtocolDecoderTest extends ProtocolTest { @@ -10,6 +11,10 @@ public class MeitrackProtocolDecoderTest extends ProtocolTest { MeitrackProtocolDecoder decoder = new MeitrackProtocolDecoder(null); + verifyAttribute(decoder, buffer( + "$$F153,867144025101013,AAA,35,25.219431,55.279918,200916155923,V,0,25,0,0,0.0,0,249701532,98374503,424|2|101C|A3AE,0800,0000|0000|0000|02D3|0103,00000011,*A0"), + Position.KEY_INPUT, 8); + verifyPosition(decoder, buffer( "$$O160,863835028611502,AAA,35,7.887840,98.375193,200202020238,A,12,4,0,279,0.6,45,32121,442492,520|3|12DF|015273E2,0000,0000|0000|0000|018D|04F0,00000001,,1,0000*F3")); |