aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-09-23 03:41:40 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2016-09-23 03:41:40 +1200
commit22a1aca01ec5feaef59ad2f56eda825a5926e24b (patch)
treea8e908c45f7bce25bc2a575d06fd233aecaa2967 /test
parent1252beec948b9e320f203fedcb4c3f3ca6e2bfa1 (diff)
downloadtrackermap-server-22a1aca01ec5feaef59ad2f56eda825a5926e24b.tar.gz
trackermap-server-22a1aca01ec5feaef59ad2f56eda825a5926e24b.tar.bz2
trackermap-server-22a1aca01ec5feaef59ad2f56eda825a5926e24b.zip
Add new JT600 unit tests
Diffstat (limited to 'test')
-rw-r--r--test/org/traccar/protocol/Jt600ProtocolDecoderTest.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/Jt600ProtocolDecoderTest.java b/test/org/traccar/protocol/Jt600ProtocolDecoderTest.java
index b95d8ddce..ba39b1846 100644
--- a/test/org/traccar/protocol/Jt600ProtocolDecoderTest.java
+++ b/test/org/traccar/protocol/Jt600ProtocolDecoderTest.java
@@ -11,6 +11,16 @@ public class Jt600ProtocolDecoderTest extends ProtocolTest {
Jt600ProtocolDecoder decoder = new Jt600ProtocolDecoder(new Jt600Protocol());
+ verifyNothing(decoder, buffer(
+ "(3460311327,@JT)"));
+
+ /*verifyPosition(decoder, buffer(
+ "(3460311327,U01,010100,000024,F,0.000000,N,0.000000,E,0.00,0,0,100%,00000001000000,263,1,18,0,0,33)"));*/
+
+ //(3460311327,U06,11,220916,135643,T,9.552553,N,13.658265,W,0.61,0,9,100%,00000001000000,11012,10,30,0,0,126,0,30)
+ //(3460311327,U06,10,220916,140619,T,9.552495,N,13.658227,W,0.43,0,7,0%,00101001000000,11012,10,0,0,0,126,0,30)
+ //(3460311327,U01,220916,135251,T,9.552607,N,13.658292,W,0.31,0,9,0%,00001001000000,11012,10,27,0,0,33)
+
verifyPosition(decoder, binary(
"24311021600111001B16021105591022329862114046227B0598095080012327951435161F"),
position("2011-02-16 05:59:10.000", true, 22.54977, -114.07705));