diff options
Diffstat (limited to 'src/test/java')
-rw-r--r-- | src/test/java/org/traccar/helper/LogTest.java | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/test/java/org/traccar/helper/LogTest.java b/src/test/java/org/traccar/helper/LogTest.java index 853eb05c9..ef33c32ba 100644 --- a/src/test/java/org/traccar/helper/LogTest.java +++ b/src/test/java/org/traccar/helper/LogTest.java @@ -7,8 +7,17 @@ import static org.junit.Assert.assertEquals; public class LogTest { @Test - public void testLog() { - assertEquals("test - Exception (LogTest:11 < ...)", Log.exceptionStack(new Exception("test"))); + public void testExceptionStack() { + assertEquals( + "test - Exception (LogTest:11 < ...)", + Log.exceptionStack(new Exception("test"))); + } + + @Test + public void testExceptionStackRootCause() { + assertEquals( + "root - Exception (LogTest:18 < ...)", + Log.exceptionStack(new Exception("test", new Exception("root")))); } } |