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