use of org.springframework.ide.vscode.languageserver.testharness.LanguageServerHarness 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.languageserver.testharness.LanguageServerHarness in project sts4 by spring-projects.
the class ManifestYamlEditorTest method setup.
@Before
public void setup() throws Exception {
harness = new LanguageServerHarness(() -> new ManifestYamlLanguageServer(cloudfoundry.factory, cloudfoundry.defaultParamsProvider), LanguageId.CF_MANIFEST);
harness.intialize(null);
System.setProperty("lsp.yaml.completions.errors.disable", "false");
}
use of org.springframework.ide.vscode.languageserver.testharness.LanguageServerHarness in project sts4 by spring-projects.
the class ManifestYamlLanguageServerTest method createAndInitializeServerWithoutWorkspace.
@Test
public void createAndInitializeServerWithoutWorkspace() throws Exception {
File workspaceRoot = null;
LanguageServerHarness harness = new LanguageServerHarness(ManifestYamlLanguageServer::new);
assertExpectedInitResult(harness.intialize(workspaceRoot));
}
use of org.springframework.ide.vscode.languageserver.testharness.LanguageServerHarness in project sts4 by spring-projects.
the class AbstractPropsEditorTest method setup.
@Before
public void setup() throws Exception {
md = new PropertyIndexHarness();
harness = new LanguageServerHarness(this::newLanguageServer) {
@Override
protected LanguageId getDefaultLanguageId() {
return AbstractPropsEditorTest.this.getLanguageId();
}
protected String getFileExtension() {
return AbstractPropsEditorTest.this.getFileExtension();
}
};
harness.intialize(null);
}
use of org.springframework.ide.vscode.languageserver.testharness.LanguageServerHarness 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