aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--templates/mail/test.vm7
-rw-r--r--test/org/traccar/protocol/TotemProtocolDecoderTest.java3
2 files changed, 10 insertions, 0 deletions
diff --git a/templates/mail/test.vm b/templates/mail/test.vm
new file mode 100644
index 000000000..8c06f96a7
--- /dev/null
+++ b/templates/mail/test.vm
@@ -0,0 +1,7 @@
+#set($subject = "Traccar test message")
+<!DOCTYPE html>
+<html>
+<body>
+Test message
+</body>
+</html>
diff --git a/test/org/traccar/protocol/TotemProtocolDecoderTest.java b/test/org/traccar/protocol/TotemProtocolDecoderTest.java
index 89400fe22..404d29796 100644
--- a/test/org/traccar/protocol/TotemProtocolDecoderTest.java
+++ b/test/org/traccar/protocol/TotemProtocolDecoderTest.java
@@ -11,6 +11,9 @@ public class TotemProtocolDecoderTest extends ProtocolTest {
TotemProtocolDecoder decoder = new TotemProtocolDecoder(new TotemProtocol());
verifyPosition(decoder, text(
+ "$$0112AA864244026065291|180018001409160205244011000027BA0E57063100000001.200000002237.8119N11403.5075E05202D"));
+
+ verifyPosition(decoder, text(
"$$0116AA864244026065291|18001800140916020524401100000000000027BA0E57063100000001.200000002237.8119N11403.5075E052020"));
verifyPosition(decoder, text(