diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2014-02-23 19:55:15 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2014-02-23 19:55:15 +1300 |
commit | a960f770f1c8d52b2c9f6b63cf947f69d7d7e761 (patch) | |
tree | 2e426aac0880034a0426b0f49940eeb7e260aadf /test | |
parent | 53ecc26dee64e6809fb1544edec3368f99b59e8b (diff) | |
download | trackermap-server-a960f770f1c8d52b2c9f6b63cf947f69d7d7e761.tar.gz trackermap-server-a960f770f1c8d52b2c9f6b63cf947f69d7d7e761.tar.bz2 trackermap-server-a960f770f1c8d52b2c9f6b63cf947f69d7d7e761.zip |
Implement STL060 protocol
Diffstat (limited to 'test')
-rw-r--r-- | test/org/traccar/protocol/Stl060ProtocolDecoderTest.java | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/Stl060ProtocolDecoderTest.java b/test/org/traccar/protocol/Stl060ProtocolDecoderTest.java new file mode 100644 index 000000000..536049293 --- /dev/null +++ b/test/org/traccar/protocol/Stl060ProtocolDecoderTest.java @@ -0,0 +1,20 @@ +package org.traccar.protocol; + +import org.traccar.helper.TestDataManager; +import static org.traccar.helper.DecoderVerifier.verify; +import org.junit.Test; + +public class Stl060ProtocolDecoderTest { + + @Test + public void testDecode() throws Exception { + + Stl060ProtocolDecoder decoder = new Stl060ProtocolDecoder(null); + decoder.setDataManager(new TestDataManager()); + + verify(decoder.decode(null, null, + "$1,357804047969310,D001,AP29AW0963,01/01/13,13:24:47,1723.9582N,07834.0945E,00100,010,0,0,0,0,0,A,")); + + } + +} |