diff --git a/spring-boot-cli/src/test/java/org/springframework/boot/cli/command/install/GroovyGrabDependencyResolverTests.java b/spring-boot-cli/src/test/java/org/springframework/boot/cli/command/install/GroovyGrabDependencyResolverTests.java index 79760c550ef..a1050b337f4 100644 --- a/spring-boot-cli/src/test/java/org/springframework/boot/cli/command/install/GroovyGrabDependencyResolverTests.java +++ b/spring-boot-cli/src/test/java/org/springframework/boot/cli/command/install/GroovyGrabDependencyResolverTests.java @@ -111,9 +111,10 @@ public class GroovyGrabDependencyResolverTests { @SuppressWarnings({ "unchecked", "rawtypes" }) public void resolveShorthandArtifactWithDependencies() throws Exception { List resolved = this.resolver.resolve(Arrays.asList("spring-beans")); - assertThat(resolved).hasSize(2); - assertThat(getNames(resolved)).has((Condition) Matched - .by(hasItems(startsWith("spring-core-"), startsWith("spring-beans-")))); + assertThat(resolved).hasSize(3); + assertThat(getNames(resolved)) + .has((Condition) Matched.by(hasItems(startsWith("spring-core-"), + startsWith("spring-beans-"), startsWith("spring-jcl-")))); } @Test diff --git a/spring-boot-cli/src/test/java/org/springframework/boot/cli/compiler/grape/AetherGrapeEngineTests.java b/spring-boot-cli/src/test/java/org/springframework/boot/cli/compiler/grape/AetherGrapeEngineTests.java index 57764484755..543102fed2d 100644 --- a/spring-boot-cli/src/test/java/org/springframework/boot/cli/compiler/grape/AetherGrapeEngineTests.java +++ b/spring-boot-cli/src/test/java/org/springframework/boot/cli/compiler/grape/AetherGrapeEngineTests.java @@ -67,7 +67,7 @@ public class AetherGrapeEngineTests { Map args = new HashMap<>(); createGrapeEngine(this.springMilestones).grab(args, createDependency("org.springframework", "spring-jdbc", null)); - assertThat(this.groovyClassLoader.getURLs()).hasSize(4); + assertThat(this.groovyClassLoader.getURLs()).hasSize(5); } @Test @@ -156,7 +156,7 @@ public class AetherGrapeEngineTests { createDependency("org.springframework", "spring-jdbc", null)); assertThat(this.groovyClassLoader.getURLs().length).isEqualTo(0); - assertThat(customClassLoader.getURLs().length).isEqualTo(4); + assertThat(customClassLoader.getURLs().length).isEqualTo(5); } @Test