|
|
|
|
@ -57,7 +57,8 @@ class JsonPathExpectationsHelperTests {
@@ -57,7 +57,8 @@ class JsonPathExpectationsHelperTests {
|
|
|
|
|
'whitespace': ' ', |
|
|
|
|
'emptyString': '', |
|
|
|
|
'emptyArray': [], |
|
|
|
|
'emptyMap': {} |
|
|
|
|
'emptyMap': {}, |
|
|
|
|
'nullValue': null |
|
|
|
|
}"""; |
|
|
|
|
|
|
|
|
|
private static final String SIMPSONS = """ |
|
|
|
|
@ -249,6 +250,11 @@ class JsonPathExpectationsHelperTests {
@@ -249,6 +250,11 @@ class JsonPathExpectationsHelperTests {
|
|
|
|
|
new JsonPathExpectationsHelper("$.num").assertValue(CONTENT, 5); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
|
void assertNullValue() { |
|
|
|
|
new JsonPathExpectationsHelper("$.nullValue").assertValue(CONTENT, (Object) null); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Test // SPR-14498
|
|
|
|
|
void assertValueWithNumberConversion() { |
|
|
|
|
new JsonPathExpectationsHelper("$.num").assertValue(CONTENT, 5.0); |
|
|
|
|
|