diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/org/traccar/WebDataHandlerTest.java | 4 | ||||
-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 { |