mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-21 13:31:46 +00:00
Merge branch '6.2.x'
This commit is contained in:
+7
-1
@@ -60,7 +60,8 @@ class JsonPathExpectationsHelperTests {
|
||||
'whitespace': ' ',
|
||||
'emptyString': '',
|
||||
'emptyArray': [],
|
||||
'emptyMap': {}
|
||||
'emptyMap': {},
|
||||
'nullValue': null
|
||||
}""";
|
||||
|
||||
private static final String SIMPSONS = """
|
||||
@@ -252,6 +253,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);
|
||||
|
||||
Reference in New Issue
Block a user