diff --git a/spring-boot-project/spring-boot-tools/spring-boot-loader/src/test/java/org/springframework/boot/loader/nio/file/NestedFileSystemTests.java b/spring-boot-project/spring-boot-tools/spring-boot-loader/src/test/java/org/springframework/boot/loader/nio/file/NestedFileSystemTests.java index aa56b0b6e1e..8eb79c743f4 100644 --- a/spring-boot-project/spring-boot-tools/spring-boot-loader/src/test/java/org/springframework/boot/loader/nio/file/NestedFileSystemTests.java +++ b/spring-boot-project/spring-boot-tools/spring-boot-loader/src/test/java/org/springframework/boot/loader/nio/file/NestedFileSystemTests.java @@ -127,15 +127,15 @@ class NestedFileSystemTests { } @Test - void getPathWhenFirstIsNullThrowsException() { + void getPathWhenFirstIsNull() { Path path = this.fileSystem.getPath(null); - assertThat(path.toString()).endsWith("/test.jar"); + assertThat(path.toString()).endsWith(File.separator + "test.jar"); } @Test void getPathWhenFirstIsBlank() { Path path = this.fileSystem.getPath(""); - assertThat(path.toString()).endsWith("/test.jar"); + assertThat(path.toString()).endsWith(File.separator + "test.jar"); } @Test