diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2018-06-11 22:00:45 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2018-06-11 22:00:45 +1200 |
commit | 86ad45c63c9a9e9bee59a8cc621416e1396f9c89 (patch) | |
tree | eb5377d76a81c25aafae1c4e876c9ab434d707d4 /test/org | |
parent | cac3ddae39938a0d25c9b2a1f7fa87ecb9dd2b77 (diff) | |
download | traccar-server-86ad45c63c9a9e9bee59a8cc621416e1396f9c89.tar.gz traccar-server-86ad45c63c9a9e9bee59a8cc621416e1396f9c89.tar.bz2 traccar-server-86ad45c63c9a9e9bee59a8cc621416e1396f9c89.zip |
Implement Freematics UDP protocol
Diffstat (limited to 'test/org')
-rw-r--r-- | test/org/traccar/protocol/FreematicsProtocolDecoderTest.java | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/FreematicsProtocolDecoderTest.java b/test/org/traccar/protocol/FreematicsProtocolDecoderTest.java new file mode 100644 index 000000000..f629f68df --- /dev/null +++ b/test/org/traccar/protocol/FreematicsProtocolDecoderTest.java @@ -0,0 +1,18 @@ +package org.traccar.protocol; + +import org.junit.Test; +import org.traccar.ProtocolTest; + +public class FreematicsProtocolDecoderTest extends ProtocolTest { + + @Test + public void testDecode() throws Exception { + + FreematicsProtocolDecoder decoder = new FreematicsProtocolDecoder(new FreematicsProtocol()); + + verifyPosition(decoder, text( + "1#0=68338,10D=79,30=1010,105=199,10C=4375,104=56,111=62,20=0;-1;95,10=6454200,A=-32.727482,B=150.150301,C=159,D=0,F=5,24=1250*7A")); + + } + +} |