aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar/protocol
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2014-12-07 10:19:46 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2014-12-07 10:19:46 +1300
commitdad236c8944ba4fac7e7c341b59b796e43898c1d (patch)
treee8a1163756e798cc4eafbe070b810146f0e71bd5 /test/org/traccar/protocol
parentd948e0aa5514316293b85eb579606f73bee198b4 (diff)
downloadtraccar-server-dad236c8944ba4fac7e7c341b59b796e43898c1d.tar.gz
traccar-server-dad236c8944ba4fac7e7c341b59b796e43898c1d.tar.bz2
traccar-server-dad236c8944ba4fac7e7c341b59b796e43898c1d.zip
Add Meitrack test case
Diffstat (limited to 'test/org/traccar/protocol')
-rw-r--r--test/org/traccar/protocol/MeitrackProtocolDecoderTest.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/MeitrackProtocolDecoderTest.java b/test/org/traccar/protocol/MeitrackProtocolDecoderTest.java
index 17a651f38..4f73002fa 100644
--- a/test/org/traccar/protocol/MeitrackProtocolDecoderTest.java
+++ b/test/org/traccar/protocol/MeitrackProtocolDecoderTest.java
@@ -16,6 +16,9 @@ public class MeitrackProtocolDecoderTest {
MeitrackProtocolDecoder decoder = new MeitrackProtocolDecoder(new TestDataManager(), null, null);
verify(decoder.decode(null, null, ChannelBuffers.copiedBuffer(
+ "$$m140,013777008931857,AAA,1,54.739580,25.273263,141120144603,V,0,25,0,6,50.0,159,19825,13940,246|1|0065|118A,0100,0000|0000|0000|092A|0001,,*1C", Charset.defaultCharset())));
+
+ verify(decoder.decode(null, null, ChannelBuffers.copiedBuffer(
"$$X138,862170010187175,AAA,35,-29.960365,-51.655455,130507201625,A,8,9,0,107,0.9,7,169322,126582,724|6|0547|132B,0000,0009|000A||0278|0000,*BE", Charset.defaultCharset())));
verify(decoder.decode(null, null, ChannelBuffers.copiedBuffer(