diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2013-02-10 13:08:35 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2013-02-10 13:08:35 +1300 |
commit | 8f6f1aae2afb02ac9de3577798fc2e837f18a651 (patch) | |
tree | e4b29511985fdbcf370dba5bb0f7d3ba54e28a64 /test/org/traccar | |
parent | 8a1ecff3518bcbe1a1700c119e7afd4cb106bbae (diff) | |
download | trackermap-server-8f6f1aae2afb02ac9de3577798fc2e837f18a651.tar.gz trackermap-server-8f6f1aae2afb02ac9de3577798fc2e837f18a651.tar.bz2 trackermap-server-8f6f1aae2afb02ac9de3577798fc2e837f18a651.zip |
Added TLT-2H protocol support
Diffstat (limited to 'test/org/traccar')
-rw-r--r-- | test/org/traccar/protocol/Tlt2hProtocolDecoderTest.java | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/Tlt2hProtocolDecoderTest.java b/test/org/traccar/protocol/Tlt2hProtocolDecoderTest.java new file mode 100644 index 000000000..9c2324be7 --- /dev/null +++ b/test/org/traccar/protocol/Tlt2hProtocolDecoderTest.java @@ -0,0 +1,22 @@ +package org.traccar.protocol; + +import static org.junit.Assert.assertNotNull; +import org.junit.Test; + +public class Tlt2hProtocolDecoderTest { + + @Test + public void testDecode() throws Exception { + + Tlt2hProtocolDecoder decoder = new Tlt2hProtocolDecoder(null); + decoder.setDataManager(new TestDataManager()); + + assertNotNull(decoder.decode(null, null, + "#123456789000001#V3338#0000#SMS#3\r\n" + + "#25ee0dff$GPRMC,083945.180,A,2233.4249,N,11406.0046,E,0.00,315.00,251207,,,A*6E\r\n" + + "#25ee0dff$GPRMC,083950.180,A,2233.4249,N,11406.0046,E,0.00,315.00,251207,,,A*6E\r\n" + + "#25ee0dff$GPRMC,083955.180,A,2233.4249,N,11406.0046,E,0.00,315.00,251207,,,A*6E")); + + } + +} |