aboutsummaryrefslogtreecommitdiff
path: root/test/org
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2019-02-23 11:04:08 -0800
committerAnton Tananaev <anton.tananaev@gmail.com>2019-02-23 11:04:08 -0800
commit1e2c06694e787201209b1d8953cf498a72c335d8 (patch)
tree53bc5d36faba98f2a2a6257f8791e0dbb6d314a8 /test/org
parentd338b1177bcc46bb1b1bad1d8a76d6008dfe2239 (diff)
downloadtrackermap-server-1e2c06694e787201209b1d8953cf498a72c335d8.tar.gz
trackermap-server-1e2c06694e787201209b1d8953cf498a72c335d8.tar.bz2
trackermap-server-1e2c06694e787201209b1d8953cf498a72c335d8.zip
Refactor configuration
Diffstat (limited to 'test/org')
-rw-r--r--test/org/traccar/WebDataHandlerTest.java4
-rw-r--r--test/org/traccar/config/ConfigTest.java (renamed from test/org/traccar/ConfigTest.java)4
2 files changed, 5 insertions, 3 deletions
diff --git a/test/org/traccar/WebDataHandlerTest.java b/test/org/traccar/WebDataHandlerTest.java
index 1cdb08440..cfbd71f23 100644
--- a/test/org/traccar/WebDataHandlerTest.java
+++ b/test/org/traccar/WebDataHandlerTest.java
@@ -1,6 +1,8 @@
package org.traccar;
import org.junit.Test;
+import org.traccar.config.Config;
+import org.traccar.config.Keys;
import org.traccar.model.Position;
import static org.junit.Assert.assertEquals;
@@ -11,7 +13,7 @@ public class WebDataHandlerTest extends ProtocolTest {
public void testFormatRequest() throws Exception {
Config config = new Config();
- config.setString("forward.url", "http://localhost/?fixTime={fixTime}&gprmc={gprmc}&name={name}");
+ config.setString(Keys.FORWARD_URL, "http://localhost/?fixTime={fixTime}&gprmc={gprmc}&name={name}");
Position position = position("2016-01-01 01:02:03.000", true, 20, 30);
diff --git a/test/org/traccar/ConfigTest.java b/test/org/traccar/config/ConfigTest.java
index fa404b827..13d0ffb04 100644
--- a/test/org/traccar/ConfigTest.java
+++ b/test/org/traccar/config/ConfigTest.java
@@ -1,8 +1,8 @@
-package org.traccar;
+package org.traccar.config;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
-import org.traccar.Config;
+import org.traccar.config.Config;
public class ConfigTest {