From 49990afd78926da3a2c8d00c3a1869d1cd2be8fb Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Tue, 5 Dec 2023 20:49:34 +0000 Subject: [PATCH] Polish See gh-38592 --- .../boot/loader/nio/file/NestedFileSystemTests.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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