From 99fd32d40839665fd98bda6bd0536fadcaa05faf Mon Sep 17 00:00:00 2001 From: Dave Syer Date: Mon, 16 Dec 2013 07:02:45 +0000 Subject: [PATCH] Attempt to make URL comparison windoze proof --- .../boot/loader/archive/ExplodedArchiveTests.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-boot-tools/spring-boot-loader/src/test/java/org/springframework/boot/loader/archive/ExplodedArchiveTests.java b/spring-boot-tools/spring-boot-loader/src/test/java/org/springframework/boot/loader/archive/ExplodedArchiveTests.java index 5a0daa0686..694cbd662a 100644 --- a/spring-boot-tools/spring-boot-loader/src/test/java/org/springframework/boot/loader/archive/ExplodedArchiveTests.java +++ b/spring-boot-tools/spring-boot-loader/src/test/java/org/springframework/boot/loader/archive/ExplodedArchiveTests.java @@ -103,7 +103,7 @@ public class ExplodedArchiveTests { @Test public void getUrl() throws Exception { URL url = this.archive.getUrl(); - assertThat(url, equalTo(this.rootFolder.toURI().toURL())); + assertThat(new File(url.toURI()), equalTo(new File(this.rootFolder.toURI()))); } @Test