Search in sources :

Example 21 with LanguageServer

use of io.typefox.lsapi.services.LanguageServer in project che by eclipse.

the class LanguageServerRegistryImplTest method testFindServer.

@Test
public void testFindServer() throws Exception {
    LanguageServer server = registry.findServer(PREFIX + FILE_PATH);
    assertNotNull(server);
    assertEquals(server, languageServer);
    verify(initializer).initialize(eq(languageServerLauncher), eq(PROJECT_PATH));
    verify(registry).onServerInitialized(eq(languageServer), eq(serverCapabilities), eq(languageDescription), eq(PROJECT_PATH));
}
Also used : LanguageServer(io.typefox.lsapi.services.LanguageServer) Test(org.testng.annotations.Test)

Aggregations

LanguageServer (io.typefox.lsapi.services.LanguageServer)21 Consumes (javax.ws.rs.Consumes)15 POST (javax.ws.rs.POST)15 Path (javax.ws.rs.Path)15 Produces (javax.ws.rs.Produces)10 LocationImpl (io.typefox.lsapi.impl.LocationImpl)3 InitializeResult (io.typefox.lsapi.InitializeResult)2 Test (org.testng.annotations.Test)2 InitializeParams (io.typefox.lsapi.InitializeParams)1 Location (io.typefox.lsapi.Location)1 ServerCapabilities (io.typefox.lsapi.ServerCapabilities)1 InitializeParamsImpl (io.typefox.lsapi.impl.InitializeParamsImpl)1 ExecutionException (java.util.concurrent.ExecutionException)1 PreDestroy (javax.annotation.PreDestroy)1 LanguageServerException (org.eclipse.che.api.languageserver.exception.LanguageServerException)1 LanguageServerLauncher (org.eclipse.che.api.languageserver.launcher.LanguageServerLauncher)1 ProjectExtensionKey (org.eclipse.che.api.languageserver.shared.ProjectExtensionKey)1 Nullable (org.eclipse.che.commons.annotation.Nullable)1