diff options
author | Anton Tananaev <anton@traccar.org> | 2023-09-11 21:52:13 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2023-09-11 21:52:13 -0700 |
commit | e000421d9e67960d28666471bf8ea8c7b629dd9d (patch) | |
tree | c427c23f26431cee0027818db14daefb28801856 /src/test/java/org/traccar | |
parent | 023ab3249c1cbeb89e44af0d9f6c98130519a67d (diff) | |
download | trackermap-server-e000421d9e67960d28666471bf8ea8c7b629dd9d.tar.gz trackermap-server-e000421d9e67960d28666471bf8ea8c7b629dd9d.tar.bz2 trackermap-server-e000421d9e67960d28666471bf8ea8c7b629dd9d.zip |
Add speed limit accuracy (fix #5175)
Diffstat (limited to 'src/test/java/org/traccar')
-rw-r--r-- | src/test/java/org/traccar/speedlimit/OverpassSpeedLimitProviderTest.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/test/java/org/traccar/speedlimit/OverpassSpeedLimitProviderTest.java b/src/test/java/org/traccar/speedlimit/OverpassSpeedLimitProviderTest.java index a59d1ce91..dbdf85420 100644 --- a/src/test/java/org/traccar/speedlimit/OverpassSpeedLimitProviderTest.java +++ b/src/test/java/org/traccar/speedlimit/OverpassSpeedLimitProviderTest.java @@ -5,6 +5,7 @@ import org.junit.jupiter.api.Test; import jakarta.ws.rs.client.Client; import jakarta.ws.rs.client.ClientBuilder; +import org.traccar.config.Config; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.fail; @@ -16,7 +17,8 @@ public class OverpassSpeedLimitProviderTest { @Disabled @Test public void testOverpass() throws Exception { - SpeedLimitProvider provider = new OverpassSpeedLimitProvider(client, "http://8.8.8.8/api/interpreter"); + var config = new Config(); + SpeedLimitProvider provider = new OverpassSpeedLimitProvider(config, client, "http://8.8.8.8/api/interpreter"); provider.getSpeedLimit(34.74767, -82.48098, new SpeedLimitProvider.SpeedLimitProviderCallback() { @Override |