Skip to content

Commit a99f754

Browse files
committed
Fix tests in AddMapWithAILayerActionTest
Signed-off-by: Taylor Smock <smocktaylor@gmail.com>
1 parent 9c32c40 commit a99f754

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎src/test/unit/org/openstreetmap/josm/plugins/mapwithai/actions/AddMapWithAILayerActionTest.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ void setup(WireMockRuntimeInfo wireMockRuntimeInfo) {
9494
.withBody(Json.createObjectBuilder().add("type", "FeatureCollection")
9595
.add("features", Json.createArrayBuilder().build()).build().toString()))
9696
.atPriority(Integer.MIN_VALUE));
97-
info = MapWithAILayerInfo.getInstance().getLayers().stream()
97+
info = MapWithAILayerInfo.getInstance().getDefaultLayers().stream()
9898
.filter(i -> i.getName().equalsIgnoreCase("MapWithAI")).findAny().orElse(null);
9999
assertNotNull(info);
100100
info = new MapWithAIInfo(info);

‎src/test/unit/org/openstreetmap/josm/plugins/mapwithai/testutils/annotations/Wiremock.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
@Target({ ElementType.PARAMETER, ElementType.TYPE, ElementType.METHOD })
5252
@BasicPreferences
5353
@HTTP
54-
@BasicWiremock(value = "src/test/resources/wiremock")
54+
@BasicWiremock(value = "src/test/resources")
5555
@ExtendWith(Wiremock.TestMapWithAIUrls.class)
5656
public @interface Wiremock {
5757
/**

0 commit comments

Comments
 (0)