aboutsummaryrefslogtreecommitdiff
path: root/src/test/java
diff options
context:
space:
mode:
authorLucas V C Nicolau <lcsvcn@users.noreply.github.com>2019-11-25 15:12:42 -0300
committerGitHub <noreply@github.com>2019-11-25 15:12:42 -0300
commit89abb77cf63519d60a41f63291ac8277d79f5c2a (patch)
tree9cda9b588505ea2548d4afce5f8b92c949fd7475 /src/test/java
parent899f6c69882333c1dd70eb9b862dfa52f67539c7 (diff)
downloadtraccar-server-89abb77cf63519d60a41f63291ac8277d79f5c2a.tar.gz
traccar-server-89abb77cf63519d60a41f63291ac8277d79f5c2a.tar.bz2
traccar-server-89abb77cf63519d60a41f63291ac8277d79f5c2a.zip
new tests with real data
Diffstat (limited to 'src/test/java')
-rw-r--r--src/test/java/org/traccar/protocol/Xrb28ProtocolDecoderTest.java20
1 files changed, 16 insertions, 4 deletions
diff --git a/src/test/java/org/traccar/protocol/Xrb28ProtocolDecoderTest.java b/src/test/java/org/traccar/protocol/Xrb28ProtocolDecoderTest.java
index 9156182b7..c280cc2c7 100644
--- a/src/test/java/org/traccar/protocol/Xrb28ProtocolDecoderTest.java
+++ b/src/test/java/org/traccar/protocol/Xrb28ProtocolDecoderTest.java
@@ -27,12 +27,24 @@ public class Xrb28ProtocolDecoderTest extends ProtocolTest {
verifyPosition(decoder, text(
"*SCOR,OM,863158022988725,D0,0,124458.00,A,2237.7514,N,11408.6214,E,6,0.21,151216,10,M,A#"));
-
- verifyPosition(decoder, text(
- "*HBCR,OM,123456789123456,D0,1,124458.00,A,2237.7514,N,11408.6214,E,6,0.21,151216,10,M,A#"));
verifyPosition(decoder, text(
- "*SCOR,OM,863158022988725,D0,1,124458.00,A,2237.7514,N,11408.6214,E,6,0.21,151216,10,M,A#"));
+ "*SCOR,NG,868020030346166,D0,1,020047.000,A,2359.35484,S,04615.26737,W,14,0.77,161119,-11.87,M,A#"));
+
+ verifyPosition(decoder, text(
+ "*SCOR,NG,868020030485741,D0,1,020249.000,A,2359.36260,S,04615.24544,W,13,0.77,201119,13.52,M,A#"));
+
+ verifyPosition(decoder, text(
+ "*SCOR,NG,868020030491178,D0,1,020533.000,A,2359.34836,S,04615.24559,W,16,0.68,111119,40.97,M,A#"));
+
+ verifyPosition(decoder, text(
+ "*SCOR,NG,868020030432826,D0,1,020522.000,A,2359.36061,S,04615.24528,W,14,0.76,191119,16.50,M,A#"));
+
+ verifyPosition(decoder, text(
+ "*SCOR,NG,868020030308430,D0,1,020455.00,A,2359.36129,S,04615.24677,W,12,0.72,201119,8.5,M,A#"));
+
+ verifyPosition(decoder, text(
+ "*SCOR,NG,868020030485741,D0,1,020519.000,A,2359.36247,S,04615.24459,W,14,0.74,201119,13.56,M,A#"));
}