aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar/protocol/LaipacSFKamelProtocolDecoderTest.java
diff options
context:
space:
mode:
authorKevin Goos <kevingoos@telenet.be>2018-03-14 16:42:09 +0100
committerKevin Goos <kevingoos@telenet.be>2018-03-14 16:42:09 +0100
commit2bc0b397c1aeb28bb82b887a78ceb8c8de940e8c (patch)
tree32251825e6909b090819dbd79837adf2101085f2 /test/org/traccar/protocol/LaipacSFKamelProtocolDecoderTest.java
parent82eace30ab2bd8742301519e6157c8ef238f4885 (diff)
downloadtrackermap-server-2bc0b397c1aeb28bb82b887a78ceb8c8de940e8c.tar.gz
trackermap-server-2bc0b397c1aeb28bb82b887a78ceb8c8de940e8c.tar.bz2
trackermap-server-2bc0b397c1aeb28bb82b887a78ceb8c8de940e8c.zip
Added extra info for laipac
Diffstat (limited to 'test/org/traccar/protocol/LaipacSFKamelProtocolDecoderTest.java')
-rw-r--r--test/org/traccar/protocol/LaipacSFKamelProtocolDecoderTest.java35
1 files changed, 35 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/LaipacSFKamelProtocolDecoderTest.java b/test/org/traccar/protocol/LaipacSFKamelProtocolDecoderTest.java
new file mode 100644
index 000000000..05de5dcbe
--- /dev/null
+++ b/test/org/traccar/protocol/LaipacSFKamelProtocolDecoderTest.java
@@ -0,0 +1,35 @@
+package org.traccar.protocol;
+
+import org.junit.Test;
+import org.traccar.ProtocolTest;
+
+public class LaipacSFKamelProtocolDecoderTest extends ProtocolTest {
+
+ @Test
+ public void testDecode() throws Exception {
+
+ LaipacSFKamelProtocolDecoder decoder = new LaipacSFKamelProtocolDecoder(new LaipacSFKamelProtocol());
+
+ verifyPosition(decoder, text(
+ "$AVRMC,358174067149865,084514,r,5050.1314,N,00419.9719,E,0.68,306.39,120318,0,3882,84,1,0,0,3EE4A617,020610*4E"));
+
+ verifyNull(decoder, text(
+ "$AVSYS,99999999,V1.50,SN0000103,32768*15"));
+
+ verifyNull(decoder, text(
+ "$ECHK,99999999,0*35"));
+
+ verifyNull(decoder, text(
+ "$AVSYS,MSG00002,14406,7046811160,64*1A"));
+
+ verifyNull(decoder, text(
+ "$EAVSYS,MSG00002,8931086013104404999,,Owner,0x52014406*76"));
+
+ verifyNull(decoder, text(
+ "$ECHK,MSG00002,0*5E"));
+
+ verifyPosition(decoder, text(
+ "$AVRMC,358174067149865,111602,r,5050.1262,N,00419.9660,E,0.00,0.00,120318,0,3843,95,1,0,0,3EE4A617,020610*44"));
+ }
+
+}