@Test public void testIsCompletionSnippetsSupported() throws Exception { assertFalse(prefs.isCompletionSnippetsSupported()); when(text.getCompletion()).thenReturn(new CompletionCapabilities()); assertFalse(prefs.isCompletionSnippetsSupported()); when(text.getCompletion()).thenReturn(new CompletionCapabilities(new CompletionItemCapabilities(true))); assertTrue(prefs.isCompletionSnippetsSupported()); }
/** * Capabilities specific to the `textDocument/completion` */ @Pure public CompletionCapabilities getCompletion() { return this.completion; }
/** * Capabilities specific to the `textDocument/completion` */ public void setCompletion(final CompletionCapabilities completion) { this.completion = completion; }