@Test void testVariableCompletion() { MyDocumentModel document = createModel(); Set<Completion> completionSet = new HashSet<>(); completionSet.add(new VariableCompletion()); Completions completions = new Completions(completionSet); List<CompletionItem> completionItems = completions.collectFor(document, createCompletionParams()).getItems(); assertEquals(2, completionItems.size()); assertEquals("TBPARM1", completionItems.get(0).getLabel()); assertEquals(CompletionItemKind.Variable, completionItems.get(0).getKind()); }
@Nonnull @Override public CompletionItemKind getKind() { return CompletionItemKind.Variable; }
VariableCompletion implements Completion { @Nonnull @Override public CompletionItemKind getKind() { return CompletionItemKind.Variable; } }
VariableCompletion implements Completion { @Nonnull @Override public CompletionItemKind getKind() { return CompletionItemKind.Variable; }  }
VariableCompletion implements Completion { @Nonnull @Override public CompletionItemKind getKind() { return CompletionItemKind.Variable; }  @Nonnull @Override Collection<String> getCompletionSource(MyDocumentModel document); @Nonnull @Override String getSortOrderPrefix(); @Nonnull @Override CompletionItemKind getKind(); }
VariableCompletion implements Completion { @Nonnull @Override public CompletionItemKind getKind() { return CompletionItemKind.Variable; }  @Nonnull @Override Collection<String> getCompletionSource(MyDocumentModel document); @Nonnull @Override String getSortOrderPrefix(); @Nonnull @Override CompletionItemKind getKind();  }