diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2012-10-14 09:56:37 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2012-10-14 09:56:37 +1300 |
commit | f278d3ff3e7b17b458a512d7bb16131eb9d97b2b (patch) | |
tree | a68cdb9c99e2e31786522d9418a1404d3bb2890c /test/org/traccar/protocol | |
parent | 7ca3514fe59d876e2b91c52c100014b84962ee5b (diff) | |
download | trackermap-server-f278d3ff3e7b17b458a512d7bb16131eb9d97b2b.tar.gz trackermap-server-f278d3ff3e7b17b458a512d7bb16131eb9d97b2b.tar.bz2 trackermap-server-f278d3ff3e7b17b458a512d7bb16131eb9d97b2b.zip |
Add H02 support (fix #56)
Diffstat (limited to 'test/org/traccar/protocol')
-rw-r--r-- | test/org/traccar/protocol/H02ProtocolDecoderTest.java | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/H02ProtocolDecoderTest.java b/test/org/traccar/protocol/H02ProtocolDecoderTest.java new file mode 100644 index 000000000..25920e8dd --- /dev/null +++ b/test/org/traccar/protocol/H02ProtocolDecoderTest.java @@ -0,0 +1,19 @@ +package org.traccar.protocol; + +import static org.junit.Assert.assertNotNull; +import static org.junit.Assert.assertNull; +import org.junit.Test; + +public class H02ProtocolDecoderTest { + + @Test + public void testDecode() throws Exception { + + H02ProtocolDecoder decoder = new H02ProtocolDecoder(new TestDataManager(), 0); + + assertNotNull(decoder.decode(null, null, + "*HQ,123456789012345,V1,155850,A,5214.5346,N,2117.4683,E,0.00,270.90,131012,ffffffff,000000,000000,000000,000000")); + + } + +} |