diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2012-11-15 22:24:40 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2012-11-15 22:24:40 +1300 |
commit | 113d83778acdff9288d8e68e54275bc73e8dbdc4 (patch) | |
tree | b28c6325419d71712258ceccb0c1041f0e3a96ac /test/org/traccar/protocol | |
parent | 3ee4d2fba538eee4d1774bd79e07c64dc0af97e5 (diff) | |
download | traccar-server-113d83778acdff9288d8e68e54275bc73e8dbdc4.tar.gz traccar-server-113d83778acdff9288d8e68e54275bc73e8dbdc4.tar.bz2 traccar-server-113d83778acdff9288d8e68e54275bc73e8dbdc4.zip |
Fix pt502 protocol (fix #90)
Diffstat (limited to 'test/org/traccar/protocol')
-rw-r--r-- | test/org/traccar/protocol/Pt502ProtocolDecoderTest.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/Pt502ProtocolDecoderTest.java b/test/org/traccar/protocol/Pt502ProtocolDecoderTest.java index 8b8881bd8..5cf3318d6 100644 --- a/test/org/traccar/protocol/Pt502ProtocolDecoderTest.java +++ b/test/org/traccar/protocol/Pt502ProtocolDecoderTest.java @@ -13,6 +13,15 @@ public class Pt502ProtocolDecoderTest { assertNotNull(decoder.decode(null, null, "$POS,6094,205523.000,A,1013.6223,N,06728.4248,W,0.0,99.3,011112,,,A/00000,00000/0/23895000//")); + assertNotNull(decoder.decode(null, null, + "$POS,6120,233326.000,V,0935.1201,N,06914.6933,W,0.00,,151112,,,A/00000,00000/0/0/")); + + assertNotNull(decoder.decode(null, null, + "$POS,6002,233257.000,A,0931.0430,N,06912.8707,W,0.05,146.98,141112,,,A/00010,00000/0/5360872")); + + assertNotNull(decoder.decode(null, null, + "$POS,6095,233344.000,V,0933.0451,N,06912.3360,W,,,151112,,,N/00000,00000/0/1677600/")); + } } |