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));
}
Aggregations