diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-12-13 14:58:10 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-12-15 22:13:33 +1300 |
commit | 0089c8746c6f641ad7d7dbc5dda21037cf85fdba (patch) | |
tree | 9fc03c3cafdea50f7f04f1f782b994ad52da5cfe /test/org/traccar | |
parent | 4113e28eda3df4725cc72527216a02d1b9cfed17 (diff) | |
download | trackermap-server-0089c8746c6f641ad7d7dbc5dda21037cf85fdba.tar.gz trackermap-server-0089c8746c6f641ad7d7dbc5dda21037cf85fdba.tar.bz2 trackermap-server-0089c8746c6f641ad7d7dbc5dda21037cf85fdba.zip |
Implement AURU GPRS communication protocol
Diffstat (limited to 'test/org/traccar')
-rw-r--r-- | test/org/traccar/protocol/AuruProtocolDecoderTest.java | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/AuruProtocolDecoderTest.java b/test/org/traccar/protocol/AuruProtocolDecoderTest.java new file mode 100644 index 000000000..9c4dcf1bc --- /dev/null +++ b/test/org/traccar/protocol/AuruProtocolDecoderTest.java @@ -0,0 +1,24 @@ +package org.traccar.protocol; + +import org.junit.Test; +import org.traccar.ProtocolTest; + +public class AuruProtocolDecoderTest extends ProtocolTest { + + @Test + public void testDecode() throws Exception { + + AuruProtocolDecoder decoder = new AuruProtocolDecoder(new AuruProtocol()); + + verifyPosition(decoder, text( + "M0028T0000816398975I357325031465123E00001W*****110620150437000068DA#RD01DA240000000001+100408425+013756121100620152137231112240330004400")); + + verifyPosition(decoder, text( + "M0029T0000816398975I357325031465123E00001W*****110620150439000068DA#RD01DA240000000001+100407886+013755936100620152138221952123100003400")); + + verifyPosition(decoder, text( + "M0030T0000816398975I357325031465123E00001W*****110620150441000068DA#RD01DA240000000000+100408391+013756125100620152140102362238320034400")); + + } + +} |