From ab3546907db801a25184ceb809f94a77d9474768 Mon Sep 17 00:00:00 2001 From: Maciej Mierzwa Date: Tue, 25 Apr 2023 15:28:32 +0200 Subject: [PATCH] Switch from ImmutableOpenMap to Map Signed-off-by: Maciej Mierzwa --- .../matcher/GetSettingsResponseContainsIndicesMatcher.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/integrationTest/java/org/opensearch/test/framework/matcher/GetSettingsResponseContainsIndicesMatcher.java b/src/integrationTest/java/org/opensearch/test/framework/matcher/GetSettingsResponseContainsIndicesMatcher.java index 01f14dd044..b01994cb80 100644 --- a/src/integrationTest/java/org/opensearch/test/framework/matcher/GetSettingsResponseContainsIndicesMatcher.java +++ b/src/integrationTest/java/org/opensearch/test/framework/matcher/GetSettingsResponseContainsIndicesMatcher.java @@ -13,9 +13,10 @@ import org.hamcrest.TypeSafeDiagnosingMatcher; import org.opensearch.action.admin.indices.settings.get.GetSettingsResponse; -import org.opensearch.common.collect.ImmutableOpenMap; import org.opensearch.common.settings.Settings; +import java.util.Map; + import static java.util.Objects.isNull; class GetSettingsResponseContainsIndicesMatcher extends TypeSafeDiagnosingMatcher { @@ -32,12 +33,12 @@ class GetSettingsResponseContainsIndicesMatcher extends TypeSafeDiagnosingMatche @Override protected boolean matchesSafely(GetSettingsResponse response, Description mismatchDescription) { - final ImmutableOpenMap indexToSettings = response.getIndexToSettings(); + final Map indexToSettings = response.getIndexToSettings(); for (String index : expectedIndices) { if (!indexToSettings.containsKey(index)) { mismatchDescription .appendText("Response contains settings of indices: ") - .appendValue(indexToSettings.keys()); + .appendValue(indexToSettings.keySet().toArray()); return false; } }