Fix goto implementation tests - deffered task should be executed

This commit is contained in:
Nikolay Krasko
2016-09-07 19:55:12 +03:00
parent 00db1c1490
commit 6cdb578f76
@@ -19,7 +19,6 @@ package org.jetbrains.kotlin.idea.navigation;
import com.google.common.base.Function;
import com.google.common.collect.Lists;
import com.google.common.collect.Ordering;
import com.intellij.codeInsight.navigation.GotoImplementationHandler;
import com.intellij.codeInsight.navigation.GotoTargetHandler;
import com.intellij.openapi.editor.Document;
import com.intellij.openapi.editor.Editor;
@@ -30,6 +29,7 @@ import com.intellij.psi.PsiDocumentManager;
import com.intellij.psi.PsiElement;
import com.intellij.psi.PsiFile;
import com.intellij.testFramework.UsefulTestCase;
import com.intellij.testFramework.fixtures.CodeInsightTestUtil;
import com.intellij.util.PathUtil;
import com.intellij.util.containers.MultiMap;
import junit.framework.TestCase;
@@ -46,7 +46,7 @@ public final class NavigationTestUtils {
}
public static GotoTargetHandler.GotoData invokeGotoImplementations(Editor editor, PsiFile psiFile) {
return new GotoImplementationHandler().getSourceAndTargetElements(editor, psiFile);
return CodeInsightTestUtil.gotoImplementation(editor, psiFile);
}
public static void assertGotoDataMatching(Editor editor, GotoTargetHandler.GotoData gotoData) {