mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-08-29 03:06:45 +08:00
Polishing
This commit is contained in:
parent
1fbd43bdf0
commit
b554894bb4
@ -79,9 +79,11 @@ public class ChangeableUrlsTests {
|
|||||||
URL projectCore = makeUrl("project-core");
|
URL projectCore = makeUrl("project-core");
|
||||||
URL projectWeb = makeUrl("project-web");
|
URL projectWeb = makeUrl("project-web");
|
||||||
File relative = this.temporaryFolder.newFolder();
|
File relative = this.temporaryFolder.newFolder();
|
||||||
ChangeableUrls urls = ChangeableUrls.fromUrlClassLoader(new URLClassLoader(
|
ChangeableUrls urls = ChangeableUrls
|
||||||
new URL[] { makeJarFileWithUrlsInManifestClassPath(projectCore,
|
.fromUrlClassLoader(new URLClassLoader(new URL[] {
|
||||||
projectWeb, relative.getName() + "/"), makeJarFileWithNoManifest() }));
|
makeJarFileWithUrlsInManifestClassPath(projectCore, projectWeb,
|
||||||
|
relative.getName() + "/"),
|
||||||
|
makeJarFileWithNoManifest() }));
|
||||||
assertThat(urls.toList(),
|
assertThat(urls.toList(),
|
||||||
contains(projectCore, projectWeb, relative.toURI().toURL()));
|
contains(projectCore, projectWeb, relative.toURI().toURL()));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user