diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2013-08-12 20:44:16 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2013-08-12 20:44:16 +1200 |
commit | 42b570b15a2fbb0d45458fc504ae5042faaf87c2 (patch) | |
tree | 26cf53c06b6f9d3e7650f5bda59133e0042c80a5 /test/org/traccar/protocol/GlobalSatProtocolDecoderTest.java | |
parent | c72c0b15ea8cfd0d2642e05af94a876fe525e447 (diff) | |
download | trackermap-server-42b570b15a2fbb0d45458fc504ae5042faaf87c2.tar.gz trackermap-server-42b570b15a2fbb0d45458fc504ae5042faaf87c2.tar.bz2 trackermap-server-42b570b15a2fbb0d45458fc504ae5042faaf87c2.zip |
New GlobalSat message format
Diffstat (limited to 'test/org/traccar/protocol/GlobalSatProtocolDecoderTest.java')
-rw-r--r-- | test/org/traccar/protocol/GlobalSatProtocolDecoderTest.java | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/test/org/traccar/protocol/GlobalSatProtocolDecoderTest.java b/test/org/traccar/protocol/GlobalSatProtocolDecoderTest.java index 6025560b0..664021ef7 100644 --- a/test/org/traccar/protocol/GlobalSatProtocolDecoderTest.java +++ b/test/org/traccar/protocol/GlobalSatProtocolDecoderTest.java @@ -12,11 +12,17 @@ public class GlobalSatProtocolDecoderTest { GlobalSatProtocolDecoder decoder = new GlobalSatProtocolDecoder(null); decoder.setDataManager(new TestDataManager()); - //assertNull(decoder.decode(null, null, "GSh,131826789036289,3,M,ea04*3d!")); + assertNull(decoder.decode(null, null, "GSh,131826789036289,3,M,ea04*3d")); //TSPRXAB27GHKLMnaicz assertNotNull(decoder.decode(null, null, - "GSr,1,135785412249986,01,I,EA02,3,230410,153318,E12129.2839,N2459.8570,0,1.17,212,8,1.0,12.3V*55!")); + "GSr,1,135785412249986,01,I,EA02,3,230410,153318,E12129.2839,N2459.8570,0,1.17,212,8,1.0,12.3V*55")); + + assertNotNull(decoder.decode(null, null, + "$355632004245866,1,1,040202,093633,E12129.2252,N2459.8891,00161,0.0100,147,07,2.4")); + + assertNotNull(decoder.decode(null, null, + "$355632000959420,9,3,160413,230536,E03738.4906,N5546.3148,00000,0.3870,147,07,2.4")); } |