aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar/protocol
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-10-30 15:00:41 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-10-30 15:00:41 +1300
commitb14974fec3c529e4cc29db6f86372efddc87b959 (patch)
treedac9905cf262ce77e8d8a3247f69a9084dd289ae /test/org/traccar/protocol
parenta045472079bb83bb318605d65bac45bb575b29c3 (diff)
downloadtrackermap-server-b14974fec3c529e4cc29db6f86372efddc87b959.tar.gz
trackermap-server-b14974fec3c529e4cc29db6f86372efddc87b959.tar.bz2
trackermap-server-b14974fec3c529e4cc29db6f86372efddc87b959.zip
Refactor Wialon protocol decoder
Diffstat (limited to 'test/org/traccar/protocol')
-rw-r--r--test/org/traccar/protocol/WialonProtocolDecoderTest.java14
1 files changed, 9 insertions, 5 deletions
diff --git a/test/org/traccar/protocol/WialonProtocolDecoderTest.java b/test/org/traccar/protocol/WialonProtocolDecoderTest.java
index 3541ceb8d..5c3863a5e 100644
--- a/test/org/traccar/protocol/WialonProtocolDecoderTest.java
+++ b/test/org/traccar/protocol/WialonProtocolDecoderTest.java
@@ -10,15 +10,19 @@ public class WialonProtocolDecoderTest extends ProtocolDecoderTest {
WialonProtocolDecoder decoder = new WialonProtocolDecoder(new WialonProtocol());
- verifyNothing(decoder, text( "#L#123456789012345;test"));
+ verifyNothing(decoder, text(
+ "#L#123456789012345;test"));
- verifyNothing(decoder, text( "#L#2002;NA"));
+ verifyNothing(decoder, text(
+ "#L#2002;NA"));
- verifyNothing(decoder, text( "#P#"));
+ verifyNothing(decoder, text(
+ "#P#"));
verifyPosition(decoder, text(
- "#SD#270413;205601;5544.6025;N;03739.6834;E;1;2;3;4"));
-
+ "#SD#270413;205601;5544.6025;N;03739.6834;E;1;2;3;4"),
+ position("2013-04-27 20:56:01.000", true, 55.74338, 37.66139));
+
verifyPosition(decoder, text(
"#SD#021214;065947;2237.7552;N;11404.8851;E;0.000;;170.9;5"));