From edaaac89939a93348c065624719afec5ac7680a1 Mon Sep 17 00:00:00 2001 From: Dave Syer Date: Fri, 10 Jan 2014 08:25:25 +0000 Subject: [PATCH] Fix broken test Recent changes to the repository configuration for @Grab didn't update the tests which use the GroovyCompiler as a standalone. Fixed that by using the RepositoryConfigurationFactory. --- .../boot/cli/command/ScriptCompilationCustomizerTests.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-boot-cli/src/test/java/org/springframework/boot/cli/command/ScriptCompilationCustomizerTests.java b/spring-boot-cli/src/test/java/org/springframework/boot/cli/command/ScriptCompilationCustomizerTests.java index eab060a445..42b043a62d 100644 --- a/spring-boot-cli/src/test/java/org/springframework/boot/cli/command/ScriptCompilationCustomizerTests.java +++ b/spring-boot-cli/src/test/java/org/springframework/boot/cli/command/ScriptCompilationCustomizerTests.java @@ -19,7 +19,6 @@ package org.springframework.boot.cli.command; import groovy.lang.Closure; import java.io.File; -import java.util.Collections; import java.util.List; import java.util.Map; @@ -32,6 +31,7 @@ import org.springframework.boot.cli.command.InitCommand.Commands; import org.springframework.boot.cli.compiler.GroovyCompiler; import org.springframework.boot.cli.compiler.GroovyCompilerConfiguration; import org.springframework.boot.cli.compiler.GroovyCompilerScope; +import org.springframework.boot.cli.compiler.RepositoryConfigurationFactory; import org.springframework.boot.cli.compiler.grape.RepositoryConfiguration; import static org.junit.Assert.assertEquals; @@ -152,7 +152,7 @@ public class ScriptCompilationCustomizerTests { @Override public List getRepositoryConfiguration() { - return Collections.emptyList(); + return RepositoryConfigurationFactory.createDefaultRepositoryConfiguration(); } }