Commit edaaac89 authored by Dave Syer's avatar Dave Syer

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.
parent 5bbb01c0
...@@ -19,7 +19,6 @@ package org.springframework.boot.cli.command; ...@@ -19,7 +19,6 @@ package org.springframework.boot.cli.command;
import groovy.lang.Closure; import groovy.lang.Closure;
import java.io.File; import java.io.File;
import java.util.Collections;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
...@@ -32,6 +31,7 @@ import org.springframework.boot.cli.command.InitCommand.Commands; ...@@ -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.GroovyCompiler;
import org.springframework.boot.cli.compiler.GroovyCompilerConfiguration; import org.springframework.boot.cli.compiler.GroovyCompilerConfiguration;
import org.springframework.boot.cli.compiler.GroovyCompilerScope; import org.springframework.boot.cli.compiler.GroovyCompilerScope;
import org.springframework.boot.cli.compiler.RepositoryConfigurationFactory;
import org.springframework.boot.cli.compiler.grape.RepositoryConfiguration; import org.springframework.boot.cli.compiler.grape.RepositoryConfiguration;
import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertEquals;
...@@ -152,7 +152,7 @@ public class ScriptCompilationCustomizerTests { ...@@ -152,7 +152,7 @@ public class ScriptCompilationCustomizerTests {
@Override @Override
public List<RepositoryConfiguration> getRepositoryConfiguration() { public List<RepositoryConfiguration> getRepositoryConfiguration() {
return Collections.emptyList(); return RepositoryConfigurationFactory.createDefaultRepositoryConfiguration();
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment