aboutsummaryrefslogtreecommitdiff
path: root/test/org
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2017-04-25 09:05:09 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2017-04-25 09:05:09 +1200
commit1669e9c453f6bf2add655bbb2cf48b68bbbfb503 (patch)
tree111f634fe4b92f0dc5adc3b746d74e8eb6436b7a /test/org
parentb342537302665a679ff7458aad27d8137a8838f3 (diff)
downloadtrackermap-server-1669e9c453f6bf2add655bbb2cf48b68bbbfb503.tar.gz
trackermap-server-1669e9c453f6bf2add655bbb2cf48b68bbbfb503.tar.bz2
trackermap-server-1669e9c453f6bf2add655bbb2cf48b68bbbfb503.zip
Add MT600-E unit test case
Diffstat (limited to 'test/org')
-rw-r--r--test/org/traccar/protocol/Tlt2hProtocolDecoderTest.java10
1 files changed, 7 insertions, 3 deletions
diff --git a/test/org/traccar/protocol/Tlt2hProtocolDecoderTest.java b/test/org/traccar/protocol/Tlt2hProtocolDecoderTest.java
index 9cc59aaa6..c612c1d25 100644
--- a/test/org/traccar/protocol/Tlt2hProtocolDecoderTest.java
+++ b/test/org/traccar/protocol/Tlt2hProtocolDecoderTest.java
@@ -10,6 +10,10 @@ public class Tlt2hProtocolDecoderTest extends ProtocolTest {
Tlt2hProtocolDecoder decoder = new Tlt2hProtocolDecoder(new Tlt2hProtocol());
+ verifyPositions(decoder, text(
+ "#868323028789359#MT600#0000#AUTOLOW#1\r\n",
+ "#07d8cd5198$GPRMC,164934.00,A,1814.4854,N,09926.0566,E,0.03,,240417,,,A*4A\r\n"));
+
verifyNull(decoder, text(
"#861075026000000#\r\n",
"#0000#AUTO#1\r\n",
@@ -31,7 +35,7 @@ public class Tlt2hProtocolDecoderTest extends ProtocolTest {
verifyPositions(decoder, text(
"\r\n#357671030946351#V500#0000#AUTO#1\r\n",
"#$GPRMC,223835.000,A,0615.3545,S,10708.5779,E,14.62,97.41,070313,,,D*70\r\n"));
-
+
verifyPositions(decoder, text(
"#357671030938911#V500#0000#AUTOSTOP#1\r\n",
"#00b34d3c$GPRMC,140026.000,A,2623.6452,S,02828.8990,E,0.00,65.44,130213,,,A*4B\r\n"));
@@ -41,12 +45,12 @@ public class Tlt2hProtocolDecoderTest extends ProtocolTest {
"#25ee0dff$GPRMC,083945.180,A,2233.4249,N,11406.0046,E,0.00,315.00,251207,,,A*6E\r\n",
"#25ee0dff$GPRMC,083950.180,A,2233.4249,N,11406.0046,E,0.00,315.00,251207,,,A*6E\r\n",
"#25ee0dff$GPRMC,083955.180,A,2233.4249,N,11406.0046,E,0.00,315.00,251207,,,A*6E"));
-
+
verifyPositions(decoder, text(
"#353686009063310#353686009063310#0000#AUTO#2\r\n",
"#239757a9$GPRMC,150252.001,A,2326.6856,S,4631.8154,W,,,260513,,,A*52\r\n",
"#239757a9$GPRMC,150322.001,A,2326.6854,S,4631.8157,W,,,260513,,,A*55"));
-
+
verifyPositions(decoder, text(
"#357671031289215#V600#0000#AUTOLOW#1\r\n",
"#00735e1c$GPRMC,115647.000,A,5553.6524,N,02632.3128,E,0.00,0.0,130614,0.0,W,A*28"));