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.
This commit is contained in:
Dave Syer 2014-01-10 08:25:25 +00:00
parent 5bbb01c071
commit edaaac8993

View File

@ -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<RepositoryConfiguration> getRepositoryConfiguration() {
return Collections.emptyList();
return RepositoryConfigurationFactory.createDefaultRepositoryConfiguration();
}
}