aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar/protocol/MeitrackProtocolDecoderTest.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-09-01 12:17:13 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2015-09-01 12:17:13 +1200
commit3223d8ef52518c26aac6dd83b628d8162481fbf8 (patch)
treef7d889b438f5567944558a28485c7e7708aed038 /test/org/traccar/protocol/MeitrackProtocolDecoderTest.java
parent142734931830f117b0e86dfa5f6dddec5416d878 (diff)
downloadtrackermap-server-3223d8ef52518c26aac6dd83b628d8162481fbf8.tar.gz
trackermap-server-3223d8ef52518c26aac6dd83b628d8162481fbf8.tar.bz2
trackermap-server-3223d8ef52518c26aac6dd83b628d8162481fbf8.zip
Add Meitrack unit test
Diffstat (limited to 'test/org/traccar/protocol/MeitrackProtocolDecoderTest.java')
-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 1bbf5e0dc..426244144 100644
--- a/test/org/traccar/protocol/MeitrackProtocolDecoderTest.java
+++ b/test/org/traccar/protocol/MeitrackProtocolDecoderTest.java
@@ -13,6 +13,9 @@ public class MeitrackProtocolDecoderTest extends ProtocolDecoderTest {
public void testDecode() throws Exception {
MeitrackProtocolDecoder decoder = new MeitrackProtocolDecoder(new MeitrackProtocol());
+
+ verify(decoder.decode(null, null, ChannelBuffers.copiedBuffer(
+ "$$A158,79007001520234,AAA,35,40.996370,-8.575065,150730184834,A,8,24,0,1,1.3,173,32573389,31405012,268|3|2BC0|250B,2000,|||0A2D|0000,00000001,,50,,,,,,,,,,,,,*4A", Charset.defaultCharset())));
verify(decoder.decode(null, null, ChannelBuffers.copiedBuffer(
"$$G145,862106024274815,AAA,35,-1.287125,36.906061,150530054639,A,10,13,12,67,0.8,1621,38359791,42330881,639|2|FB2|2F3,0000,3|0|0|A58|432,,,1,0009,*26", Charset.defaultCharset())));