Skip to content

Commit 709e5f2

Browse files
izeyewilkinsona
authored andcommitted
Add missing json() invocation in JsonFieldPathsTests
See gh-720
1 parent 09b21a9 commit 709e5f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-restdocs-core/src/test/java/org/springframework/restdocs/payload/JsonFieldPathsTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public void missingEntriesInNestedMapAreIdentifiedAsUncommon() {
8080
public void absentItemFromFieldExtractionCausesAllPresentFieldsToBeIdentifiedAsUncommon() {
8181
assertThat(
8282
JsonFieldPaths
83-
.from(Arrays.asList(ExtractedField.ABSENT, ("{\"a\": 1, \"b\": {\"c\": 1}}"),
83+
.from(Arrays.asList(ExtractedField.ABSENT, json("{\"a\": 1, \"b\": {\"c\": 1}}"),
8484
json("{\"a\": 1, \"b\": {\"c\": 1}}"), json("{\"a\": 1, \"b\": {\"d\": 2}}")))
8585
.getUncommon()).containsExactly("", "a", "b", "b.c", "b.d");
8686
}

0 commit comments

Comments
 (0)