Search in sources :

Example 1 with MockRunningAppProvider

use of org.springframework.ide.vscode.project.harness.MockRunningAppProvider in project sts4 by spring-projects.

the class RequestMappingLiveHoverTest method setup.

@Before
public void setup() throws Exception {
    mockAppProvider = new MockRunningAppProvider();
    harness = BootJavaLanguageServerHarness.builder().runningAppProvider(mockAppProvider.provider).watchDogInterval(Duration.ofMillis(100)).build();
}
Also used : MockRunningAppProvider(org.springframework.ide.vscode.project.harness.MockRunningAppProvider) Before(org.junit.Before)

Example 2 with MockRunningAppProvider

use of org.springframework.ide.vscode.project.harness.MockRunningAppProvider in project sts4 by spring-projects.

the class ConditionalsLiveHoverTest method setup.

@Before
public void setup() throws Exception {
    mockAppProvider = new MockRunningAppProvider();
    harness = BootJavaLanguageServerHarness.builder().runningAppProvider(mockAppProvider.provider).watchDogInterval(Duration.ofMillis(100)).build();
}
Also used : MockRunningAppProvider(org.springframework.ide.vscode.project.harness.MockRunningAppProvider) Before(org.junit.Before)

Example 3 with MockRunningAppProvider

use of org.springframework.ide.vscode.project.harness.MockRunningAppProvider in project sts4 by spring-projects.

the class ActiveProfilesHoverTest method setup.

@Before
public void setup() throws Exception {
    mockAppProvider = new MockRunningAppProvider();
    harness = BootJavaLanguageServerHarness.builder().mockDefaults().runningAppProvider(mockAppProvider.provider).watchDogInterval(Duration.ofMillis(100)).build();
    harness.useProject(projects.mavenProject("empty-boot-15-web-app"));
    harness.intialize(null);
}
Also used : MockRunningAppProvider(org.springframework.ide.vscode.project.harness.MockRunningAppProvider) Before(org.junit.Before)

Example 4 with MockRunningAppProvider

use of org.springframework.ide.vscode.project.harness.MockRunningAppProvider in project sts4 by spring-projects.

the class ActuatorWarningHoverTest method setup.

@Before
public void setup() throws Exception {
    mockAppProvider = new MockRunningAppProvider();
    harness = BootJavaLanguageServerHarness.builder().mockDefaults().runningAppProvider(mockAppProvider.provider).watchDogInterval(Duration.ofMillis(100)).build();
}
Also used : MockRunningAppProvider(org.springframework.ide.vscode.project.harness.MockRunningAppProvider) Before(org.junit.Before)

Example 5 with MockRunningAppProvider

use of org.springframework.ide.vscode.project.harness.MockRunningAppProvider in project sts4 by spring-projects.

the class BeanInjectedIntoHoverProviderTest method setup.

@Before
public void setup() throws Exception {
    mockAppProvider = new MockRunningAppProvider();
    harness = BootJavaLanguageServerHarness.builder().mockDefaults().runningAppProvider(mockAppProvider.provider).watchDogInterval(Duration.ofMillis(100)).build();
    MavenJavaProject jp = projects.mavenProject("empty-boot-15-web-app", FOO_INTERFACE);
    assertTrue(jp.getClasspath().findType("hello.Foo").exists());
    harness.useProject(jp);
    harness.intialize(null);
}
Also used : MavenJavaProject(org.springframework.ide.vscode.commons.maven.java.MavenJavaProject) MockRunningAppProvider(org.springframework.ide.vscode.project.harness.MockRunningAppProvider) Before(org.junit.Before)

Aggregations

Before (org.junit.Before)8 MockRunningAppProvider (org.springframework.ide.vscode.project.harness.MockRunningAppProvider)8 MavenJavaProject (org.springframework.ide.vscode.commons.maven.java.MavenJavaProject)4