aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-11-16 11:33:06 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-11-16 11:33:06 +1300
commit3563910f1b551c02db5dffc9745bd8aba9cbeeeb (patch)
tree90258424db16d130b8dd9db7a01b24ea97d5290f
parent4d9155939e9efc96278d2d7407c2ad13c8136ca5 (diff)
downloadtrackermap-server-3563910f1b551c02db5dffc9745bd8aba9cbeeeb.tar.gz
trackermap-server-3563910f1b551c02db5dffc9745bd8aba9cbeeeb.tar.bz2
trackermap-server-3563910f1b551c02db5dffc9745bd8aba9cbeeeb.zip
Disable async debugging and add test
-rw-r--r--src/org/traccar/web/AsyncServlet.java2
-rw-r--r--test/org/traccar/web/AsyncServletTest.java13
2 files changed, 14 insertions, 1 deletions
diff --git a/src/org/traccar/web/AsyncServlet.java b/src/org/traccar/web/AsyncServlet.java
index 63b08ff3e..3347f765c 100644
--- a/src/org/traccar/web/AsyncServlet.java
+++ b/src/org/traccar/web/AsyncServlet.java
@@ -50,7 +50,7 @@ public class AsyncServlet extends BaseServlet {
public static class AsyncSession {
- private static final boolean DEBUG_ASYNC = true;
+ public static final boolean DEBUG_ASYNC = false;
private static final long SESSION_TIMEOUT = 30;
private static final long REQUEST_TIMEOUT = 20;
diff --git a/test/org/traccar/web/AsyncServletTest.java b/test/org/traccar/web/AsyncServletTest.java
new file mode 100644
index 000000000..e2f7b2f21
--- /dev/null
+++ b/test/org/traccar/web/AsyncServletTest.java
@@ -0,0 +1,13 @@
+package org.traccar.web;
+
+import org.junit.Assert;
+import org.junit.Test;
+
+public class AsyncServletTest {
+
+ @Test
+ public void testDebugDisabled() {
+ Assert.assertFalse("debugging enabled", AsyncServlet.AsyncSession.DEBUG_ASYNC);
+ }
+
+}