diff options
author | Leandro Silva Ferreira <leandrosilvaferreira@gmail.com> | 2012-08-11 19:38:33 -0400 |
---|---|---|
committer | Leandro Silva Ferreira <leandrosilvaferreira@gmail.com> | 2012-08-11 19:38:33 -0400 |
commit | 85229eebab501ee0b36a2b84c1a2df2124f31571 (patch) | |
tree | 6af549c8d51e795cf826299ea127ef92166625f4 | |
parent | 485d9e45883b4f028f76a6d05c5a72de08736e4c (diff) | |
download | trackermap-server-85229eebab501ee0b36a2b84c1a2df2124f31571.tar.gz trackermap-server-85229eebab501ee0b36a2b84c1a2df2124f31571.tar.bz2 trackermap-server-85229eebab501ee0b36a2b84c1a2df2124f31571.zip |
New test for Emergency messages of st210
-rwxr-xr-x | test.sh | 3 | ||||
-rw-r--r-- | test/org/traccar/protocol/ST210ProtocolDecoderTest.java | 4 |
2 files changed, 7 insertions, 0 deletions
@@ -41,6 +41,9 @@ echo "9. meiligao" echo "10. st210" (echo -n -e "SA200STT;317652;042;20120807;10:43:23;16d41;-15.618767;-056.083214;000.011;000.00;11;1;41557;12.21;000000;1;3205\r";) | nc -v localhost 8801 +echo "11. st210emg" +(echo -n -e "SA200EMG;317652;042;20120718;15:35:41;16d41;-15.618740;-056.083252;000.034;000.00;8;1;41548;12.17;110000;1\r";) | nc -v localhost 8801 + diff --git a/test/org/traccar/protocol/ST210ProtocolDecoderTest.java b/test/org/traccar/protocol/ST210ProtocolDecoderTest.java index d14f60201..88ad9f306 100644 --- a/test/org/traccar/protocol/ST210ProtocolDecoderTest.java +++ b/test/org/traccar/protocol/ST210ProtocolDecoderTest.java @@ -79,6 +79,10 @@ public class ST210ProtocolDecoderTest { .decode(null, null, "SA200STT;315198;042;20120809;13:43:34;16d41;-15.618709;-056.083223;000.025;000.00;8;1;49;12.10;100000;2;0231")); + assertNotNull(decoder + .decode(null, + null, + "SA200EMG;317652;042;20120718;15:35:41;16d41;-15.618740;-056.083252;000.034;000.00;8;1;41548;12.17;110000;1")); } } |