use of org.springframework.ide.vscode.bosh.mocks.MockCloudConfigProvider in project sts4 by spring-projects.
the class BoshLanguageServerTest method createAndInitializeServerWithWorkspace.
@Test
public void createAndInitializeServerWithWorkspace() throws Exception {
LanguageServerHarness harness = new LanguageServerHarness(() -> new BoshLanguageServer(cliConfig, new MockCloudConfigProvider(cliConfig), mock(DynamicModelProvider.class), mock(DynamicModelProvider.class)));
File workspaceRoot = getTestResource("/workspace/");
assertExpectedInitResult(harness.intialize(workspaceRoot));
}
use of org.springframework.ide.vscode.bosh.mocks.MockCloudConfigProvider in project sts4 by spring-projects.
the class BoshLanguageServerTest method createAndInitializeServerWithoutWorkspace.
@Test
public void createAndInitializeServerWithoutWorkspace() throws Exception {
File workspaceRoot = null;
LanguageServerHarness harness = new LanguageServerHarness(() -> new BoshLanguageServer(cliConfig, new MockCloudConfigProvider(cliConfig), mock(DynamicModelProvider.class), mock(DynamicModelProvider.class)));
assertExpectedInitResult(harness.intialize(workspaceRoot));
}
Aggregations