Merge branch '1.5.x'

This commit is contained in:
Andy Wilkinson 2017-10-02 12:56:14 +01:00
commit 9ba20cc380
1 changed files with 2 additions and 4 deletions

View File

@ -75,12 +75,10 @@ public class ChangeableUrlsTests {
@Test
public void urlsFromJarClassPathAreConsidered() throws Exception {
File relative = this.temporaryFolder.newFolder();
File absoluteFile = this.temporaryFolder.newFolder();
URL absoluteUrl = this.temporaryFolder.newFolder().toURI().toURL();
File jarWithClassPath = makeJarFileWithUrlsInManifestClassPath(
"project-core/target/classes/", "project-web/target/classes/",
"does-not-exist/target/classes", relative.getName() + "/",
absoluteFile.getAbsolutePath() + "/", absoluteUrl);
"does-not-exist/target/classes", relative.getName() + "/", absoluteUrl);
new File(jarWithClassPath.getParentFile(), "project-core/target/classes")
.mkdirs();
new File(jarWithClassPath.getParentFile(), "project-web/target/classes").mkdirs();
@ -90,7 +88,7 @@ public class ChangeableUrlsTests {
assertThat(urls.toList()).containsExactly(
new URL(jarWithClassPath.toURI().toURL(), "project-core/target/classes/"),
new URL(jarWithClassPath.toURI().toURL(), "project-web/target/classes/"),
relative.toURI().toURL(), absoluteFile.toURI().toURL(), absoluteUrl);
relative.toURI().toURL(), absoluteUrl);
}
private URL makeUrl(String name) throws IOException {