diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2018-09-08 16:50:41 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2018-09-08 16:50:41 +1200 |
commit | b27ab90540402836b64e2eb634c37dcab7aa6608 (patch) | |
tree | 22da3a9f8dec35bd267bf3b02cc66550bea81a01 /test | |
parent | 1fde64481bc86b570ebd250784a0844fc4e77043 (diff) | |
download | trackermap-server-b27ab90540402836b64e2eb634c37dcab7aa6608.tar.gz trackermap-server-b27ab90540402836b64e2eb634c37dcab7aa6608.tar.bz2 trackermap-server-b27ab90540402836b64e2eb634c37dcab7aa6608.zip |
Fix issues in Freematics decoder
Diffstat (limited to 'test')
-rw-r--r-- | test/org/traccar/protocol/FreematicsProtocolDecoderTest.java | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/test/org/traccar/protocol/FreematicsProtocolDecoderTest.java b/test/org/traccar/protocol/FreematicsProtocolDecoderTest.java index f629f68df..90150d76d 100644 --- a/test/org/traccar/protocol/FreematicsProtocolDecoderTest.java +++ b/test/org/traccar/protocol/FreematicsProtocolDecoderTest.java @@ -10,7 +10,22 @@ public class FreematicsProtocolDecoderTest extends ProtocolTest { FreematicsProtocolDecoder decoder = new FreematicsProtocolDecoder(new FreematicsProtocol()); - verifyPosition(decoder, text( + verifyNull(decoder, text( + "0#EV=1,TS=23930,ID=ID1C6606C40A24,SK=TEST_SERVER_KEY*49")); + + verifyPositions(decoder, text( + "1#0:102560,20:0;0;0,24:425,10:4285580,A:-35.803696,B:175.748413,C:0.22,D:0.41,F:5,0:103174,20:0;0;0,24:423,10:4285660,A:-35.803696,B:175.748413,C:0.22,D:0.41,F:5,30:88193792*21")); + + verifyPositions(decoder, text( + "1#0:49244,20:0;0;0,24:423,0:50779,20:0;0;0,24:425,30:32924444*38")); + + verifyNotNull(decoder, text( + "1#0:47607,20:0;0;0,24:423,0:48732,20:0;0;0,24:428,10:4280140,A:0.000000,B:0.000000,C:0.00,D:18520000.00,F:2,30:32924444*BA")); + + verifyPositions(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")); + + verifyPositions(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")); } |