aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2013-06-04 22:02:07 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2013-06-04 22:02:07 +1200
commit84a8b09f3e210101be918a1a6c5e81833dc1cc4f (patch)
tree34ff2c9f21e2d7a8fdbab50160e509ce05da562c /test/org/traccar
parent4e8e09e468213c9ffd466b7334e4960de962134d (diff)
downloadtrackermap-server-84a8b09f3e210101be918a1a6c5e81833dc1cc4f.tar.gz
trackermap-server-84a8b09f3e210101be918a1a6c5e81833dc1cc4f.tar.bz2
trackermap-server-84a8b09f3e210101be918a1a6c5e81833dc1cc4f.zip
Add JT600 unit test
Diffstat (limited to 'test/org/traccar')
-rw-r--r--test/org/traccar/protocol/Jt600ProtocolDecoderTest.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/org/traccar/protocol/Jt600ProtocolDecoderTest.java b/test/org/traccar/protocol/Jt600ProtocolDecoderTest.java
index 0419c024c..93b31e908 100644
--- a/test/org/traccar/protocol/Jt600ProtocolDecoderTest.java
+++ b/test/org/traccar/protocol/Jt600ProtocolDecoderTest.java
@@ -20,13 +20,16 @@ public class Jt600ProtocolDecoderTest {
assertNotNull(decoder.decode(null, null, ChannelBuffers.wrappedBuffer(buf2)));
byte[] buf3 = {0x24,0x31,0x20,(byte)0x82,0x00,0x29,0x11,0x00,0x1B,0x17,0x10,0x12,0x05,0x33,0x05,0x24,0x38,0x09,(byte)0x97,0x02,0x55,0x33,0x58,0x45,0x00,0x04,0x06,0x1E,0x00,0x03,(byte)0xEE,0x00,0x00,0x00,0x00,0x0C,0x00};
- assertNotNull(decoder.decode(null, null, ChannelBuffers.wrappedBuffer(buf2)));
+ assertNotNull(decoder.decode(null, null, ChannelBuffers.wrappedBuffer(buf3)));
assertNotNull(decoder.decode(null, null,
ChannelBuffers.copiedBuffer("(3110312099,W01,11404.6204,E,2232.9961,N,A,040511,063736,4,7,100,4,17,1,1,company)", Charset.defaultCharset())));
assertNotNull(decoder.decode(null, null,
ChannelBuffers.copiedBuffer("(3120820029,W01,02553.3555,E,2438.0997,S,A,171012,053339,0,8,20,6,31,5,20,20)", Charset.defaultCharset())));
+
+ /*assertNotNull(decoder.decode(null, null,
+ ChannelBuffers.copiedBuffer("(6221107674,2,U09,129,2,A,280513113036,E,02711.0500,S,1721.0876,A,030613171243,E,02756.7618,S,2300.0325,3491,538200,14400,1)", Charset.defaultCharset())));*/
}