File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
spring-boot-project/spring-boot/src/test/java/org/springframework/boot/json Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 1616
1717package org .springframework .boot .json ;
1818
19+ import java .io .File ;
1920import java .nio .file .Path ;
2021import java .util .LinkedHashMap ;
2122import java .util .LinkedHashSet ;
@@ -248,7 +249,8 @@ void writeJavaNioPathWhenSingleElementShouldBeSerializedAsString() {
248249
249250 @ Test // gh-44502
250251 void writeJavaNioPathShouldBeSerializedAsString () {
251- assertThat (doWrite ((valueWriter ) -> valueWriter .write (Path .of ("a/b/c" )))).isEqualTo (quoted ("a\\ /b\\ /c" ));
252+ assertThat (doWrite ((valueWriter ) -> valueWriter .write (Path .of ("a/b/c" ))))
253+ .isEqualTo (quoted ("a\\ %1$sb\\ %1$sc" .formatted (File .separator )));
252254 }
253255
254256 private <V > String write (V value ) {
You can’t perform that action at this time.
0 commit comments