Fix GetCLusteringFunctionANdDistancesCommandTest

This commit is contained in:
Antonin Delpeuch 2018-12-30 22:22:50 +01:00
parent 626c17c649
commit 79ec6988d6

View File

@ -74,7 +74,7 @@ public class GetClusteringFunctionsAndDistancesCommandTest {
public void testGetFunctionsAndKeyers() throws ServletException, IOException { public void testGetFunctionsAndKeyers() throws ServletException, IOException {
command.doGet(request, response); command.doGet(request, response);
ObjectNode result = ParsingUtilities.mapper.readValue(writer.toString(), ObjectNode.class); ObjectNode result = ParsingUtilities.mapper.readValue(writer.toString(), ObjectNode.class);
assertTrue(Arrays.asList(JSONUtilities.getStringArray(result, "keyers")).contains("metaphone")); assertTrue(Arrays.asList(JSONUtilities.getStringArray(result, "keyers")).contains("metaphone3"));
assertTrue(Arrays.asList(JSONUtilities.getStringArray(result, "distances")).contains("levenshtein")); assertTrue(Arrays.asList(JSONUtilities.getStringArray(result, "distances")).contains("levenshtein"));
} }
} }