mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-09-03 04:26:12 +08:00
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:
parent
5bbb01c071
commit
edaaac8993
@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user