Add missing json() invocation in JsonFieldPathsTests

See gh-720
This commit is contained in:
izeye
2021-04-28 20:40:41 +09:00
committed by Andy Wilkinson
parent 09b21a91ed
commit 709e5f2e59

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");
}