aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar/helper
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-06-13 11:06:09 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2015-06-13 11:06:09 +1200
commitd89b2099cc3d4b0dc6e85a83050cb8083156bc88 (patch)
tree1e2b7520926abc62ff2c252fe67b20bdc6c94c1b /test/org/traccar/helper
parenta5133e91d39db417344cc845c74a79be28ff1130 (diff)
downloadtraccar-server-d89b2099cc3d4b0dc6e85a83050cb8083156bc88.tar.gz
traccar-server-d89b2099cc3d4b0dc6e85a83050cb8083156bc88.tar.bz2
traccar-server-d89b2099cc3d4b0dc6e85a83050cb8083156bc88.zip
Improve stack trace logging
Diffstat (limited to 'test/org/traccar/helper')
-rw-r--r--test/org/traccar/helper/DistanceCalculatorTest.java (renamed from test/org/traccar/helper/DIstanceCalculatorTest.java)2
-rw-r--r--test/org/traccar/helper/LogTest.java13
2 files changed, 14 insertions, 1 deletions
diff --git a/test/org/traccar/helper/DIstanceCalculatorTest.java b/test/org/traccar/helper/DistanceCalculatorTest.java
index 293cbb114..7bbb4e3b1 100644
--- a/test/org/traccar/helper/DIstanceCalculatorTest.java
+++ b/test/org/traccar/helper/DistanceCalculatorTest.java
@@ -3,7 +3,7 @@ package org.traccar.helper;
import org.junit.Assert;
import org.junit.Test;
-public class DIstanceCalculatorTest {
+public class DistanceCalculatorTest {
@Test
public void testDistance() {
diff --git a/test/org/traccar/helper/LogTest.java b/test/org/traccar/helper/LogTest.java
new file mode 100644
index 000000000..08872c1dc
--- /dev/null
+++ b/test/org/traccar/helper/LogTest.java
@@ -0,0 +1,13 @@
+package org.traccar.helper;
+
+import org.junit.Assert;
+import org.junit.Test;
+
+public class LogTest {
+
+ @Test
+ public void testLog() {
+ Assert.assertEquals("test - Exception (LogTest.java:10)", Log.exception(new Exception("test")));
+ }
+
+}