File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
json-path/src/test/java/com/jayway/jsonpath Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 22
33import com .jayway .jsonpath .spi .json .JacksonJsonProvider ;
44import com .jayway .jsonpath .spi .mapper .JacksonMappingProvider ;
5+ import org .assertj .core .api .Assertions ;
56import org .junit .Test ;
67
8+ import java .util .List ;
9+
10+ import static org .assertj .core .api .Assertions .assertThat ;
711import static org .junit .Assert .assertNull ;
812
913
@@ -26,6 +30,8 @@ public void testSuppressExceptionsIsRespectedPath() {
2630 .mappingProvider (new JacksonMappingProvider ()).options (Option .SUPPRESS_EXCEPTIONS , Option .AS_PATH_LIST )
2731 .build ());
2832 String json = "{}" ;
29- assertNull (parseContext .parse (json ).read (JsonPath .compile ("$.missing" )));
33+
34+ List <String > result = parseContext .parse (json ).read (JsonPath .compile ("$.missing" ));
35+ assertThat (result ).isEmpty ();
3036 }
3137}
You can’t perform that action at this time.
0 commit comments