From d89b2099cc3d4b0dc6e85a83050cb8083156bc88 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sat, 13 Jun 2015 11:06:09 +1200 Subject: Improve stack trace logging --- test/org/traccar/helper/DIstanceCalculatorTest.java | 14 -------------- test/org/traccar/helper/DistanceCalculatorTest.java | 14 ++++++++++++++ test/org/traccar/helper/LogTest.java | 13 +++++++++++++ 3 files changed, 27 insertions(+), 14 deletions(-) delete mode 100644 test/org/traccar/helper/DIstanceCalculatorTest.java create mode 100644 test/org/traccar/helper/DistanceCalculatorTest.java create mode 100644 test/org/traccar/helper/LogTest.java (limited to 'test/org') diff --git a/test/org/traccar/helper/DIstanceCalculatorTest.java b/test/org/traccar/helper/DIstanceCalculatorTest.java deleted file mode 100644 index 293cbb114..000000000 --- a/test/org/traccar/helper/DIstanceCalculatorTest.java +++ /dev/null @@ -1,14 +0,0 @@ -package org.traccar.helper; - -import org.junit.Assert; -import org.junit.Test; - -public class DIstanceCalculatorTest { - - @Test - public void testDistance() { - Assert.assertEquals( - DistanceCalculator.distance(0.0, 0.0, 0.05, 0.05), 7863.0, 10.0); - } - -} diff --git a/test/org/traccar/helper/DistanceCalculatorTest.java b/test/org/traccar/helper/DistanceCalculatorTest.java new file mode 100644 index 000000000..7bbb4e3b1 --- /dev/null +++ b/test/org/traccar/helper/DistanceCalculatorTest.java @@ -0,0 +1,14 @@ +package org.traccar.helper; + +import org.junit.Assert; +import org.junit.Test; + +public class DistanceCalculatorTest { + + @Test + public void testDistance() { + Assert.assertEquals( + DistanceCalculator.distance(0.0, 0.0, 0.05, 0.05), 7863.0, 10.0); + } + +} 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"))); + } + +} -- cgit v1.2.3