diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2013-01-18 23:02:18 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2013-01-18 23:02:18 +1300 |
commit | 534a0107dccd91556252ca927852476628465a4d (patch) | |
tree | d8287a283724a36a076a71e726dca309361058d7 /test/org/traccar/protocol | |
parent | a01f9f7582cd7a25721be82df578d212fda4b5cc (diff) | |
download | traccar-server-534a0107dccd91556252ca927852476628465a4d.tar.gz traccar-server-534a0107dccd91556252ca927852476628465a4d.tar.bz2 traccar-server-534a0107dccd91556252ca927852476628465a4d.zip |
Add Megatek protocol (fix #112)
Diffstat (limited to 'test/org/traccar/protocol')
-rw-r--r-- | test/org/traccar/protocol/MegastekProtocolDecoderTest.java | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/MegastekProtocolDecoderTest.java b/test/org/traccar/protocol/MegastekProtocolDecoderTest.java new file mode 100644 index 000000000..d443f934c --- /dev/null +++ b/test/org/traccar/protocol/MegastekProtocolDecoderTest.java @@ -0,0 +1,19 @@ +package org.traccar.protocol; + +import static org.junit.Assert.assertNotNull; +import org.junit.Test; + +public class MegastekProtocolDecoderTest { + + @Test + public void testDecode() throws Exception { + + MegastekProtocolDecoder decoder = new MegastekProtocolDecoder(null); + decoder.setDataManager(new TestDataManager()); + + assertNotNull(decoder.decode(null, null, + "STX,102110830074542,$GPRMC,114229.000,A,2238.2024,N,11401.9619,E,0.00,0.00,310811,,,A*64,F,LowBattery,imei:012207005553885,03,113.1,Battery=24%,,1,460,01,2531,647E;57")); + + } + +} |