Skip to content

Commit 9ba20cc

Browse files
committed
Merge branch '1.5.x'
2 parents 30727ab + bcbf7b5 commit 9ba20cc

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

spring-boot-devtools/src/test/java/org/springframework/boot/devtools/restart/ChangeableUrlsTests.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,10 @@ public void skipsUrls() throws Exception {
7575
@Test
7676
public void urlsFromJarClassPathAreConsidered() throws Exception {
7777
File relative = this.temporaryFolder.newFolder();
78-
File absoluteFile = this.temporaryFolder.newFolder();
7978
URL absoluteUrl = this.temporaryFolder.newFolder().toURI().toURL();
8079
File jarWithClassPath = makeJarFileWithUrlsInManifestClassPath(
8180
"project-core/target/classes/", "project-web/target/classes/",
82-
"does-not-exist/target/classes", relative.getName() + "/",
83-
absoluteFile.getAbsolutePath() + "/", absoluteUrl);
81+
"does-not-exist/target/classes", relative.getName() + "/", absoluteUrl);
8482
new File(jarWithClassPath.getParentFile(), "project-core/target/classes")
8583
.mkdirs();
8684
new File(jarWithClassPath.getParentFile(), "project-web/target/classes").mkdirs();
@@ -90,7 +88,7 @@ public void urlsFromJarClassPathAreConsidered() throws Exception {
9088
assertThat(urls.toList()).containsExactly(
9189
new URL(jarWithClassPath.toURI().toURL(), "project-core/target/classes/"),
9290
new URL(jarWithClassPath.toURI().toURL(), "project-web/target/classes/"),
93-
relative.toURI().toURL(), absoluteFile.toURI().toURL(), absoluteUrl);
91+
relative.toURI().toURL(), absoluteUrl);
9492
}
9593

9694
private URL makeUrl(String name) throws IOException {

0 commit comments

Comments
 (0)