diff --git a/test/unit/org/openstreetmap/josm/plugins/mapwithai/testutils/MapWithAITestRules.java b/test/unit/org/openstreetmap/josm/plugins/mapwithai/testutils/MapWithAITestRules.java index 1dc45e2..c48b689 100644 --- a/test/unit/org/openstreetmap/josm/plugins/mapwithai/testutils/MapWithAITestRules.java +++ b/test/unit/org/openstreetmap/josm/plugins/mapwithai/testutils/MapWithAITestRules.java @@ -71,11 +71,11 @@ public class MapWithAITestRules extends JOSMTestRules { } } - private static void setupMapWithAILayerInfo(WireMockServer wireMock) { + private static void setupMapWithAILayerInfo(WireMockServer wireMockServer) { synchronized (MapWithAITestRules.class) { resetMapWithAILayerInfo(); MapWithAILayerInfo.instance.getLayers().stream() - .forEach(i -> i.setUrl(GetDataRunnableTest.getDefaultMapWithAIAPIForTest(wireMock, i.getUrl()))); + .forEach(i -> i.setUrl(GetDataRunnableTest.getDefaultMapWithAIAPIForTest(wireMockServer, i.getUrl()))); MapWithAILayerInfo.instance.save(); } }