From 059d504fd78327a7a7c6d198be1ce8f373abb21a Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Fri, 30 May 2014 17:55:41 +0100 Subject: [PATCH] Fix DependencyCustomizerTests following merge of 1.0.x --- .../boot/cli/compiler/DependencyCustomizerTests.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/spring-boot-cli/src/test/java/org/springframework/boot/cli/compiler/DependencyCustomizerTests.java b/spring-boot-cli/src/test/java/org/springframework/boot/cli/compiler/DependencyCustomizerTests.java index 0d9ecef2a6..fe4338d2e2 100644 --- a/spring-boot-cli/src/test/java/org/springframework/boot/cli/compiler/DependencyCustomizerTests.java +++ b/spring-boot-cli/src/test/java/org/springframework/boot/cli/compiler/DependencyCustomizerTests.java @@ -57,11 +57,14 @@ public class DependencyCustomizerTests { when(this.resolver.getGroupId("spring-boot-starter-logging")).thenReturn( "org.springframework.boot"); + when(this.resolver.getArtifactId("spring-boot-starter-logging")).thenReturn( + "spring-boot-starter-logging"); when(this.resolver.getVersion("spring-boot-starter-logging")).thenReturn("1.2.3"); this.moduleNode.addClass(this.classNode); this.dependencyCustomizer = new DependencyCustomizer(new GroovyClassLoader( - getClass().getClassLoader()), this.moduleNode, this.resolver); + getClass().getClassLoader()), this.moduleNode, + new DependencyResolutionContext(this.resolver)); } @Test