diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-10-17 10:51:03 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-10-17 10:51:03 +1300 |
commit | 91d6491b438ecddbe63a49de26a76cd8f7309650 (patch) | |
tree | 8253667cd658bc919fa33c3097e95d42f33bb52a /test | |
parent | a5b4ba98656bba77854b0fa5e4de2ca0d4f839b5 (diff) | |
download | trackermap-server-91d6491b438ecddbe63a49de26a76cd8f7309650.tar.gz trackermap-server-91d6491b438ecddbe63a49de26a76cd8f7309650.tar.bz2 trackermap-server-91d6491b438ecddbe63a49de26a76cd8f7309650.zip |
Properly decode pseudo IP address
Diffstat (limited to 'test')
-rw-r--r-- | test/org/traccar/protocol/GatorProtocolDecoderTest.java | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/test/org/traccar/protocol/GatorProtocolDecoderTest.java b/test/org/traccar/protocol/GatorProtocolDecoderTest.java index cecf70527..606f58942 100644 --- a/test/org/traccar/protocol/GatorProtocolDecoderTest.java +++ b/test/org/traccar/protocol/GatorProtocolDecoderTest.java @@ -1,11 +1,19 @@ package org.traccar.protocol; import org.jboss.netty.buffer.ChannelBuffers; -import static org.traccar.helper.DecoderVerifier.verify; +import org.junit.Assert; import org.junit.Test; import org.traccar.helper.ChannelBufferTools; +import static org.traccar.helper.DecoderVerifier.verify; public class GatorProtocolDecoderTest extends ProtocolDecoderTest { + + @Test + public void testDecodeId() { + + Assert.assertEquals("3512345006", GatorProtocolDecoder.decodeId(12, 162, 50, 134)); + + } @Test public void testDecode() throws Exception { |