Http Proxy server support
This commit is contained in:
@@ -22,8 +22,10 @@ import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.extension.ExtendWith;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.context.annotation.Import;
|
||||
import org.springframework.ide.vscode.boot.app.RestTemplateFactory;
|
||||
import org.springframework.ide.vscode.boot.bootiful.BootLanguageServerTest;
|
||||
import org.springframework.ide.vscode.boot.bootiful.HoverTestConf;
|
||||
import org.springframework.ide.vscode.boot.validation.generations.CachedBootVersionsFromMavenCentral;
|
||||
import org.springframework.ide.vscode.boot.validation.generations.SpringIoProjectsProvider;
|
||||
import org.springframework.ide.vscode.boot.validation.generations.SpringProjectsProvider;
|
||||
import org.springframework.ide.vscode.boot.validation.generations.json.Generation;
|
||||
@@ -42,6 +44,8 @@ import org.springframework.test.context.junit.jupiter.SpringExtension;
|
||||
public class ProjectGenerationsValidationTest {
|
||||
|
||||
@Autowired private BootLanguageServerHarness harness;
|
||||
@Autowired private RestTemplateFactory restTemplateFactory;
|
||||
@Autowired private CachedBootVersionsFromMavenCentral cachedVersions;
|
||||
|
||||
private ProjectsHarness projects = ProjectsHarness.INSTANCE;
|
||||
|
||||
@@ -55,7 +59,7 @@ public class ProjectGenerationsValidationTest {
|
||||
|
||||
@Test
|
||||
void testProjectsInfoFromSpringIo() throws Exception {
|
||||
SpringProjectsProvider cache = new SpringIoProjectsProvider("https://api.spring.io/projects");
|
||||
SpringProjectsProvider cache = new SpringIoProjectsProvider("https://api.spring.io/projects", restTemplateFactory, cachedVersions);
|
||||
|
||||
SpringProject project = cache.getProject("spring-boot");
|
||||
assertNotNull(project);
|
||||
|
||||
@@ -34,7 +34,7 @@ public class SampleProjectsProvider implements SpringProjectsProvider {
|
||||
|
||||
@Override
|
||||
public ResolvedSpringProject getProject(String projectSlug) throws Exception {
|
||||
ResolvedSpringProject project = new ResolvedSpringProject(getSpringProject(projectSlug), null) {
|
||||
ResolvedSpringProject project = new ResolvedSpringProject(getSpringProject(projectSlug), null, null) {
|
||||
|
||||
@Override
|
||||
public List<Generation> getGenerations() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user