aboutsummaryrefslogtreecommitdiff
path: root/test/org
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-07-07 15:20:48 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2015-07-07 15:20:48 +1200
commit6eb1837b796f51bd2a84d091b706a7ae1d4952a0 (patch)
tree859f37cc0db189c7564d45be888fe7758b9b02b1 /test/org
parentfa4215999ef38879ac72540c44e46ca39858a20b (diff)
downloadtraccar-server-6eb1837b796f51bd2a84d091b706a7ae1d4952a0.tar.gz
traccar-server-6eb1837b796f51bd2a84d091b706a7ae1d4952a0.tar.bz2
traccar-server-6eb1837b796f51bd2a84d091b706a7ae1d4952a0.zip
Improve Aplicom id parsing
Diffstat (limited to 'test/org')
-rw-r--r--test/org/traccar/helper/CrcTest.java15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/org/traccar/helper/CrcTest.java b/test/org/traccar/helper/CrcTest.java
new file mode 100644
index 000000000..46e7dfc79
--- /dev/null
+++ b/test/org/traccar/helper/CrcTest.java
@@ -0,0 +1,15 @@
+package org.traccar.helper;
+
+import org.junit.Assert;
+import org.junit.Test;
+
+public class CrcTest {
+
+ @Test
+ public void testLuhnChecksum() {
+
+ Assert.assertEquals(7, Crc.luhnChecksum(12345678901234L));
+
+ }
+
+}