See gh-38592
This commit is contained in:
Andy Wilkinson 2023-12-05 20:49:34 +00:00
parent 16c2ddb02c
commit 49990afd78

View File

@ -127,15 +127,15 @@ class NestedFileSystemTests {
} }
@Test @Test
void getPathWhenFirstIsNullThrowsException() { void getPathWhenFirstIsNull() {
Path path = this.fileSystem.getPath(null); Path path = this.fileSystem.getPath(null);
assertThat(path.toString()).endsWith("/test.jar"); assertThat(path.toString()).endsWith(File.separator + "test.jar");
} }
@Test @Test
void getPathWhenFirstIsBlank() { void getPathWhenFirstIsBlank() {
Path path = this.fileSystem.getPath(""); Path path = this.fileSystem.getPath("");
assertThat(path.toString()).endsWith("/test.jar"); assertThat(path.toString()).endsWith(File.separator + "test.jar");
} }
@Test @Test