Search in sources :

Example 1 with ConcourseLanguageServer

use of org.springframework.ide.vscode.concourse.ConcourseLanguageServer in project sts4 by spring-projects.

the class ConcourseLanguageServerTest method createAndInitializeServerWithoutWorkspace.

@Test
public void createAndInitializeServerWithoutWorkspace() throws Exception {
    File workspaceRoot = null;
    LanguageServerHarness harness = new LanguageServerHarness(() -> new ConcourseLanguageServer(TEST_DEFAULT, Mockito.mock(GithubInfoProvider.class)));
    assertExpectedInitResult(harness.intialize(workspaceRoot));
}
Also used : ConcourseLanguageServer(org.springframework.ide.vscode.concourse.ConcourseLanguageServer) LanguageServerHarness(org.springframework.ide.vscode.languageserver.testharness.LanguageServerHarness) File(java.io.File) Test(org.junit.Test)

Example 2 with ConcourseLanguageServer

use of org.springframework.ide.vscode.concourse.ConcourseLanguageServer in project sts4 by spring-projects.

the class ConcourseLanguageServerTest method createAndInitializeServerWithWorkspace.

@Test
public void createAndInitializeServerWithWorkspace() throws Exception {
    LanguageServerHarness harness = new LanguageServerHarness(() -> new ConcourseLanguageServer(TEST_DEFAULT, Mockito.mock(GithubInfoProvider.class)));
    File workspaceRoot = getTestResource("/workspace/");
    assertExpectedInitResult(harness.intialize(workspaceRoot));
}
Also used : ConcourseLanguageServer(org.springframework.ide.vscode.concourse.ConcourseLanguageServer) LanguageServerHarness(org.springframework.ide.vscode.languageserver.testharness.LanguageServerHarness) File(java.io.File) Test(org.junit.Test)

Aggregations

File (java.io.File)2 Test (org.junit.Test)2 ConcourseLanguageServer (org.springframework.ide.vscode.concourse.ConcourseLanguageServer)2 LanguageServerHarness (org.springframework.ide.vscode.languageserver.testharness.LanguageServerHarness)2