diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2016-09-15 08:20:45 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2016-09-15 08:20:45 +1200 |
commit | 722327b482e51d8b48fd4bab1e6a27fe972fc167 (patch) | |
tree | 24d5d796ea3c3d5269fa3d36d6c788fd9ef1e84f /test/org/traccar/protocol | |
parent | a1fdcee9044fcf3114b24423242bdd5b7c0ee18f (diff) | |
download | trackermap-server-722327b482e51d8b48fd4bab1e6a27fe972fc167.tar.gz trackermap-server-722327b482e51d8b48fd4bab1e6a27fe972fc167.tar.bz2 trackermap-server-722327b482e51d8b48fd4bab1e6a27fe972fc167.zip |
Implement AutoGrade device protocol
Diffstat (limited to 'test/org/traccar/protocol')
-rw-r--r-- | test/org/traccar/protocol/AutoGradeProtocolDecoderTest.java | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/AutoGradeProtocolDecoderTest.java b/test/org/traccar/protocol/AutoGradeProtocolDecoderTest.java new file mode 100644 index 000000000..58e2e4065 --- /dev/null +++ b/test/org/traccar/protocol/AutoGradeProtocolDecoderTest.java @@ -0,0 +1,18 @@ +package org.traccar.protocol; + +import org.junit.Test; +import org.traccar.ProtocolTest; + +public class AutoGradeProtocolDecoderTest extends ProtocolTest { + + @Test + public void testDecode() throws Exception { + + AutoGradeProtocolDecoder decoder = new AutoGradeProtocolDecoder(new AutoGradeProtocol()); + + verifyPosition(decoder, text( + "(000000007322865733022629240170415A1001.1971N07618.1375E0.000145312128.59?A0024B0024C0000D0000E0000K0000L0000M0000N0000O0000")); + + } + +} |