Merge pull request #720 from izeye

* gh-720:
  Add missing json() invocation in JsonFieldPathsTests

Closes gh-720
This commit is contained in:
Andy Wilkinson
2021-05-21 18:12:34 +01:00

View File

@@ -80,7 +80,7 @@ public class JsonFieldPathsTests {
public void absentItemFromFieldExtractionCausesAllPresentFieldsToBeIdentifiedAsUncommon() {
assertThat(
JsonFieldPaths
.from(Arrays.asList(ExtractedField.ABSENT, ("{\"a\": 1, \"b\": {\"c\": 1}}"),
.from(Arrays.asList(ExtractedField.ABSENT, json("{\"a\": 1, \"b\": {\"c\": 1}}"),
json("{\"a\": 1, \"b\": {\"c\": 1}}"), json("{\"a\": 1, \"b\": {\"d\": 2}}")))
.getUncommon()).containsExactly("", "a", "b", "b.c", "b.d");
}