From 0397eb058ec4f0ba56b1cd539eecc297f665dab4 Mon Sep 17 00:00:00 2001 From: BoykoAlex Date: Mon, 12 Dec 2016 18:18:00 -0500 Subject: [PATCH] Fixed comment for the new test harness method --- .../ide/vscode/languageserver/testharness/Editor.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/vscode-extensions/commons/language-server-test-harness/src/main/java/org/springframework/ide/vscode/languageserver/testharness/Editor.java b/vscode-extensions/commons/language-server-test-harness/src/main/java/org/springframework/ide/vscode/languageserver/testharness/Editor.java index 7061a150a..ccbbadb7f 100644 --- a/vscode-extensions/commons/language-server-test-harness/src/main/java/org/springframework/ide/vscode/languageserver/testharness/Editor.java +++ b/vscode-extensions/commons/language-server-test-harness/src/main/java/org/springframework/ide/vscode/languageserver/testharness/Editor.java @@ -344,17 +344,17 @@ public class Editor { } /** - * Verifies an expected textSnippet is contained in the hover text that is - * computed when hovering mouse at position at the end of first occurrence of - * a given string in the editor. + * Verifies an expected text is the hover text that is computed when + * hovering mouse at position at the end of first occurrence of a given + * string in the editor. */ - public void assertHoverExactText(String afterString, String expectSnippet) throws Exception { + public void assertHoverExactText(String afterString, String expectedHover) throws Exception { int pos = getRawText().indexOf(afterString); if (pos>=0) { pos += afterString.length(); } Hover hover = harness.getHover(document, document.toPosition(pos)); - assertEquals(expectSnippet, hover.getContents().toString()); + assertEquals(expectedHover, hover.getContents().toString()); } public void assertCompletionDetails(String expectLabel, String expectDetail, String expectDocSnippet) throws Exception {