diff options
author | williamchitto <williamchitto@gmail.com> | 2012-07-25 12:40:09 -0300 |
---|---|---|
committer | williamchitto <williamchitto@gmail.com> | 2012-07-25 12:40:09 -0300 |
commit | d9c99fafa2e4d581f473029144aec495cb94bb62 (patch) | |
tree | 791526d1c43d22000b8cc3c129d707716f3fc4d4 /test/org/traccar | |
parent | a7c89c898fd80b0e621245f4905862f2667e5ceb (diff) | |
download | trackermap-server-d9c99fafa2e4d581f473029144aec495cb94bb62.tar.gz trackermap-server-d9c99fafa2e4d581f473029144aec495cb94bb62.tar.bz2 trackermap-server-d9c99fafa2e4d581f473029144aec495cb94bb62.zip |
added protocol ST210ProtocolDecoder
Diffstat (limited to 'test/org/traccar')
-rw-r--r-- | test/org/traccar/protocol/ST210ProtocolDecoderTest.java | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/ST210ProtocolDecoderTest.java b/test/org/traccar/protocol/ST210ProtocolDecoderTest.java new file mode 100644 index 000000000..ba36cb360 --- /dev/null +++ b/test/org/traccar/protocol/ST210ProtocolDecoderTest.java @@ -0,0 +1,28 @@ +package org.traccar.protocol; + +import static org.junit.Assert.*; + +import org.junit.Test; + +public class ST210ProtocolDecoderTest { + + @Test + public void testDecode() throws Exception { + + ST210ProtocolDecoder decoder = new ST210ProtocolDecoder( + new TestDataManager(), 0); + + assertNotNull(decoder + .decode(null, + null, + "SA200STT;317652;042;20120718;15:37:12;16d41;-15.618755;-056.083241;000.024;000.00;8;1;41548;12.17;100000;2;1979")); + assertNotNull(decoder + .decode(null, + null, + "SA200STT;317652;042;20120721;19:04:30;16d41;-15.618743;-056.083221;000.001;000.00;12;1;41557;12.21;000000;1;3125")); + assertNotNull(decoder + .decode(null, + null, + "SA200STT;317652;042;20120722;00:24:23;16d41;-15.618767;-056.083214;000.011;000.00;11;1;41557;12.21;000000;1;3205")); + } +} |