aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2023-01-11 16:34:15 -0800
committerAnton Tananaev <anton@traccar.org>2023-01-11 16:34:15 -0800
commit78f60fac965bab4a2172884591243bb43ca95a50 (patch)
tree449161b308ef6634d9cffc2dba04736f41aa3a63
parent397d959f7dc61d9df241e589910ff4e15d5145d8 (diff)
downloadtrackermap-server-78f60fac965bab4a2172884591243bb43ca95a50.tar.gz
trackermap-server-78f60fac965bab4a2172884591243bb43ca95a50.tar.bz2
trackermap-server-78f60fac965bab4a2172884591243bb43ca95a50.zip
Add MT821 test cases
-rw-r--r--src/test/java/org/traccar/protocol/EskyProtocolDecoderTest.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/test/java/org/traccar/protocol/EskyProtocolDecoderTest.java b/src/test/java/org/traccar/protocol/EskyProtocolDecoderTest.java
index 678007f5c..59ed997e5 100644
--- a/src/test/java/org/traccar/protocol/EskyProtocolDecoderTest.java
+++ b/src/test/java/org/traccar/protocol/EskyProtocolDecoderTest.java
@@ -11,6 +11,15 @@ public class EskyProtocolDecoderTest extends ProtocolTest {
var decoder = inject(new EskyProtocolDecoder(null));
+ verifyNull(decoder, text(
+ "ET;7;864431049985585;R3;230111233458+1,137052172,12320,505,87+5+4205+4"));
+
+ verifyNull(decoder, text(
+ "ET;7;864431049985585;R0;0+230111233558+0.00000+0.00000+0.00+0+2+4206+5"));
+
+ verifyNull(decoder, text(
+ "ET;7;864431049985585;RC;ES821_BULLANT_B1.08V3.4_20200304+1+60+12+82800+0+40+1+0,0.00000,0.00000,0|0,0.00000,0.00000,0|0,0.00000,0.00000,0|0,0.00000,0.00000,0|0,0.00000,0.00000,0+3"));
+
verifyAttribute(decoder, text(
"ET;0;860337031066546;R;9+200717114059+41.32053+19.80761+0.30+0+0x2+8+40381744+0+1409+11"),
Position.KEY_BATTERY, 14.09);