IDEA-240930 renamed method to more appropriate one

IDEA-CR-62605

GitOrigin-RevId: 5ba178be5968a9fa7a87128932964575a088fbc3
This commit is contained in:
Alexandr Evstigneev
2020-05-15 12:35:35 +00:00
committed by intellij-monorepo-bot
parent 2601a01c7e
commit 45149087b1
2 changed files with 3 additions and 3 deletions
@@ -23,7 +23,7 @@ public class BraceHighlightingHandlerBlockCaretTest extends LightPlatformCodeIns
configureByFile(myFileSuffix);
Editor editor = getEditor();
editor.getSettings().setBlockCursor(true);
String result = BraceHighlightingHandlerTest.getTextEditorWithHighlightedBraces(getEditor(), getFile());
String result = BraceHighlightingHandlerTest.getEditorTextWithHighlightedBraces(getEditor(), getFile());
UsefulTestCase.assertSameLinesWithFile(getAnswerFilePath(), result);
});
}
@@ -34,7 +34,7 @@ public class BraceHighlightingHandlerTest extends LightPlatformCodeInsightTestCa
public void testAction() {
runInEdtAndWait(() -> {
configureByFile(myFileSuffix);
String result = getTextEditorWithHighlightedBraces(getEditor(), getFile());
String result = getEditorTextWithHighlightedBraces(getEditor(), getFile());
UsefulTestCase.assertSameLinesWithFile(getAnswerFilePath(), result);
});
}
@@ -53,7 +53,7 @@ public class BraceHighlightingHandlerTest extends LightPlatformCodeInsightTestCa
/**
* @return a text from passed editor with highlighted braces wrapped in {@code <brace></brace>} tags. And {@link <caret>} marker
*/
public static String getTextEditorWithHighlightedBraces(@NotNull Editor editor, @NotNull PsiFile psiFile) {
public static String getEditorTextWithHighlightedBraces(@NotNull Editor editor, @NotNull PsiFile psiFile) {
Editor hostEditor = editor instanceof EditorWindow ? ((EditorWindow)editor).getDelegate() : editor;
List<Pair<Integer, String>> markers = new ArrayList<>();
Alarm alarm = new Alarm();