diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2019-02-23 11:04:08 -0800 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2019-02-23 11:04:08 -0800 |
commit | 1e2c06694e787201209b1d8953cf498a72c335d8 (patch) | |
tree | 53bc5d36faba98f2a2a6257f8791e0dbb6d314a8 /test/org/traccar/WebDataHandlerTest.java | |
parent | d338b1177bcc46bb1b1bad1d8a76d6008dfe2239 (diff) | |
download | trackermap-server-1e2c06694e787201209b1d8953cf498a72c335d8.tar.gz trackermap-server-1e2c06694e787201209b1d8953cf498a72c335d8.tar.bz2 trackermap-server-1e2c06694e787201209b1d8953cf498a72c335d8.zip |
Refactor configuration
Diffstat (limited to 'test/org/traccar/WebDataHandlerTest.java')
-rw-r--r-- | test/org/traccar/WebDataHandlerTest.java | 4 |
1 files changed, 3 insertions, 1 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); |