aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar/protocol
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-11-03 23:26:48 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-11-03 23:26:48 +1300
commitd4685d72f8183dedfccbca9756a00948ad8d6aa8 (patch)
tree1df91e0b06c9232e45fd0a417c622c57fdc7454e /test/org/traccar/protocol
parentc97958c10d9a1b9973d6278527c943f29c5a80a8 (diff)
downloadtraccar-server-d4685d72f8183dedfccbca9756a00948ad8d6aa8.tar.gz
traccar-server-d4685d72f8183dedfccbca9756a00948ad8d6aa8.tar.bz2
traccar-server-d4685d72f8183dedfccbca9756a00948ad8d6aa8.zip
Refactor GpsGate protocol decoder
Diffstat (limited to 'test/org/traccar/protocol')
-rw-r--r--test/org/traccar/protocol/GpsGateProtocolDecoderTest.java20
1 files changed, 14 insertions, 6 deletions
diff --git a/test/org/traccar/protocol/GpsGateProtocolDecoderTest.java b/test/org/traccar/protocol/GpsGateProtocolDecoderTest.java
index 8652b24a6..2d21f53c9 100644
--- a/test/org/traccar/protocol/GpsGateProtocolDecoderTest.java
+++ b/test/org/traccar/protocol/GpsGateProtocolDecoderTest.java
@@ -10,20 +10,28 @@ public class GpsGateProtocolDecoderTest extends ProtocolDecoderTest {
GpsGateProtocolDecoder decoder = new GpsGateProtocolDecoder(new GpsGateProtocol());
- verifyNothing(decoder, text( "$FRLIN,,user1,8IVHF*7A"));
+ verifyNothing(decoder, text(
+ "$FRLIN,,user1,8IVHF*7A"));
- verifyNothing(decoder, text( "$FRLIN,,354503026292842,VGZTHKT*0C"));
+ verifyNothing(decoder, text(
+ "$FRLIN,,354503026292842,VGZTHKT*0C"));
- verifyNothing(decoder, text( "$FRLIN,IMEI,1234123412341234,*7B"));
+ verifyNothing(decoder, text(
+ "$FRLIN,IMEI,1234123412341234,*7B"));
- verifyNothing(decoder, text( "$FRLIN,,saab93_device,KLRFBGIVDJ*28"));
+ verifyNothing(decoder, text(
+ "$FRLIN,,saab93_device,KLRFBGIVDJ*28"));
verifyPosition(decoder, text(
- "$GPRMC,154403.000,A,6311.64120,N,01438.02740,E,0.000,0.0,270707,,*0A"));
-
+ "$GPRMC,154403.000,A,6311.64120,N,01438.02740,E,0.000,0.0,270707,,*0A"),
+ position("2007-07-27 15:44:03.000", true, 63.19402, 14.63379));
+
verifyPosition(decoder, text(
"$GPRMC,074524,A,5553.73701,N,03728.90491,E,10.39,226.5,160614,0.0,E*75"));
+ verifyPosition(decoder, text(
+ "$GPRMC,154403.000,A,6311.64120,N,01438.02740,E,0.000,0.0,270707,,*0A"));
+
}
}