aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-11-07 02:10:44 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2016-11-07 02:10:44 +1300
commiteb2165714a1ef71b4ec48a80613598b222284f0f (patch)
tree259e8b0b542c715525cf5385d1e789fa49ce4660 /test
parent313a51dbf23ca3ee0d5ac1d1dc37d0ff05cb2abd (diff)
downloadtraccar-server-eb2165714a1ef71b4ec48a80613598b222284f0f.tar.gz
traccar-server-eb2165714a1ef71b4ec48a80613598b222284f0f.tar.bz2
traccar-server-eb2165714a1ef71b4ec48a80613598b222284f0f.zip
Handle new line in ET messages (fix #2509)
Diffstat (limited to 'test')
-rw-r--r--test/org/traccar/protocol/EasyTrackProtocolDecoderTest.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/EasyTrackProtocolDecoderTest.java b/test/org/traccar/protocol/EasyTrackProtocolDecoderTest.java
index 41c747ad6..51c515544 100644
--- a/test/org/traccar/protocol/EasyTrackProtocolDecoderTest.java
+++ b/test/org/traccar/protocol/EasyTrackProtocolDecoderTest.java
@@ -10,6 +10,18 @@ public class EasyTrackProtocolDecoderTest extends ProtocolTest {
EasyTrackProtocolDecoder decoder = new EasyTrackProtocolDecoder(new EasyTrackProtocol());
+ verifyPosition(decoder, text(
+ "*ET,358155100054249,HB,A,100b06,053318,803a0b51,03d507c9,0017,0000,00400000,07,100,0000,1435,63"));
+
+ verifyNothing(decoder, text(
+ "*ET,358155100054249,MQ"));
+
+ verifyNothing(decoder, text(
+ "*ET,358155100054249,TX,A,100b06,053230"));
+
+ verifyPosition(decoder, text(
+ "*ET,358155100054249,HB,A,100b06,053212,803a0b20,03d507a2,0054,0000,40400000,06,100,0000,1435,44"));
+
verifyNothing(decoder, text(
"*ET,135790246811221,GZ,0001,0005"));