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 16
16
17
17
package org .springframework .boot .json ;
18
18
19
+ import java .io .File ;
19
20
import java .nio .file .Path ;
20
21
import java .util .LinkedHashMap ;
21
22
import java .util .LinkedHashSet ;
@@ -248,7 +249,8 @@ void writeJavaNioPathWhenSingleElementShouldBeSerializedAsString() {
248
249
249
250
@ Test // gh-44502
250
251
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 )));
252
254
}
253
255
254
256
private <V > String write (V value ) {
You can’t perform that action at this time.
0 commit comments