From 7ecb99757bb227ff5dacaf95079e03f8654871b4 Mon Sep 17 00:00:00 2001 From: "Daniel L. Buchko" Date: Fri, 23 Aug 2013 19:04:21 -0400 Subject: [PATCH] Prevent test failures under Windows Cleaned up file separators to prevent tests failing on Windows. --- .../org/springframework/boot/loader/ExplodedArchiveTests.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-boot-tools/spring-boot-loader/src/test/java/org/springframework/boot/loader/ExplodedArchiveTests.java b/spring-boot-tools/spring-boot-loader/src/test/java/org/springframework/boot/loader/ExplodedArchiveTests.java index ac226d176b..8210e10de7 100644 --- a/spring-boot-tools/spring-boot-loader/src/test/java/org/springframework/boot/loader/ExplodedArchiveTests.java +++ b/spring-boot-tools/spring-boot-loader/src/test/java/org/springframework/boot/loader/ExplodedArchiveTests.java @@ -109,7 +109,7 @@ public class ExplodedArchiveTests { Entry entry = getEntriesMap(this.archive).get("nested.jar"); Archive nested = this.archive.getNestedArchive(entry); assertThat(nested.getUrl().toString(), - equalTo("jar:file:" + this.rootFolder.getPath() + "/nested.jar!/")); + equalTo("jar:file:" + this.rootFolder.getPath() + File.separator + "nested.jar!/")); } @Test @@ -119,7 +119,7 @@ public class ExplodedArchiveTests { Map nestedEntries = getEntriesMap(nested); assertThat(nestedEntries.size(), equalTo(1)); assertThat(nested.getUrl().toString(), - equalTo("file:" + this.rootFolder.getPath() + "/d/")); + equalTo("file:" + this.rootFolder.getPath() + File.separator + "d/")); } @Test