Merge branch '2.0.x' into 2.1.x

This commit is contained in:
Andy Wilkinson 2019-04-01 14:08:07 +01:00
commit 23d237928b
1 changed files with 6 additions and 3 deletions

View File

@ -142,9 +142,12 @@ public class AetherGrapeEngineTests {
public void resolutionWithCustomResolver() {
Map<String, Object> args = new HashMap<>();
AetherGrapeEngine grapeEngine = this.createGrapeEngine();
grapeEngine
.addResolver(createResolver("restlet.org", "https://maven.restlet.org"));
grapeEngine.grab(args, createDependency("org.restlet", "org.restlet", "1.1.6"));
grapeEngine.addResolver(
createResolver("spring-releases", "https://repo.spring.io/release"));
Map<String, Object> dependency = createDependency("io.spring.docresources",
"spring-doc-resources", "0.1.1.RELEASE");
dependency.put("ext", "zip");
grapeEngine.grab(args, dependency);
assertThat(this.groovyClassLoader.getURLs().length).isEqualTo(1);
}