diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-10-25 12:39:13 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-10-25 12:39:13 +1300 |
commit | 6fd31893cdcad94044c3db97f6bb183fd5da13a6 (patch) | |
tree | 37cca4d6fd55f15f0aac84bac250dc9a1fd674df /test/org/traccar/protocol | |
parent | 638f9d94bccad164103429dc5d0c7717d12f0fe6 (diff) | |
download | trackermap-server-6fd31893cdcad94044c3db97f6bb183fd5da13a6.tar.gz trackermap-server-6fd31893cdcad94044c3db97f6bb183fd5da13a6.tar.bz2 trackermap-server-6fd31893cdcad94044c3db97f6bb183fd5da13a6.zip |
Refactor TK103 protocol decoder
Diffstat (limited to 'test/org/traccar/protocol')
-rw-r--r-- | test/org/traccar/protocol/Tk103ProtocolDecoderTest.java | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/test/org/traccar/protocol/Tk103ProtocolDecoderTest.java b/test/org/traccar/protocol/Tk103ProtocolDecoderTest.java index 43cc56fb9..8f2cea217 100644 --- a/test/org/traccar/protocol/Tk103ProtocolDecoderTest.java +++ b/test/org/traccar/protocol/Tk103ProtocolDecoderTest.java @@ -11,6 +11,10 @@ public class Tk103ProtocolDecoderTest extends ProtocolDecoderTest { Tk103ProtocolDecoder decoder = new Tk103ProtocolDecoder(new Tk103Protocol()); verifyPosition(decoder, text( + "(088047365460BR00151024A2555.3531S02855.3329E004.7055148276.1701000000L00009AA3)"), + position("2015-10-24 05:51:48.000", true, -25.92255, 28.92222)); + + verifyPosition(decoder, text( "(088047365460BP05354188047365460150929A3258.1754S02755.4323E009.4193927301.9000000000L00000000)")); verifyPosition(decoder, text( @@ -59,8 +63,9 @@ public class Tk103ProtocolDecoderTest extends ProtocolDecoderTest { "(352606090042050,BP05,240414,V,0000.0000N,00000.0000E,000.0,193133,000.0")); verifyPosition(decoder, text( - "(352606090042050,BP05,240414,A,4527.3513N,00909.9758E,4.80,112825,155.49")); - + "(352606090042050,BP05,240414,A,4527.3513N,00909.9758E,4.80,112825,155.49"), + position("2014-04-24 11:28:25.000", true, 45.45586, 9.16626)); + verifyPosition(decoder, text( "(013632782450,BP05,101201,A,2234.0297N,11405.9101E,000.0,040137,178.48,00000000,L00000000")); |