summaryrefslogtreecommitdiff
path: root/test-framework
diff options
context:
space:
mode:
authorYan Zhulanow <yan.zhulanow@jetbrains.com>2021-01-09 04:35:23 +0900
committerkotlin-ide-monorepo-bot <kotlin-ide-monorepo-bot-no-reply@jetbrains.com>2021-01-08 19:36:40 +0000
commitf520538c437c5c94e23066be58be8eac6e22ef9d (patch)
treecce966a34babedb3947059ed9c375a410dbf1627 /test-framework
parent5c434ad52c41fc4db0fe98a7715e0cbc0319a396 (diff)
downloadintellij-kotlin-f520538c437c5c94e23066be58be8eac6e22ef9d.tar.gz
Fix tests based on AbstractSearcherTest
GitOrigin-RevId: 95edde743907fdc86c9f6c803eef0b9dbd2ba9fe
Diffstat (limited to 'test-framework')
-rw-r--r--test-framework/test/org/jetbrains/kotlin/idea/test/KotlinLightCodeInsightFixtureTestCase.kt5
1 files changed, 3 insertions, 2 deletions
diff --git a/test-framework/test/org/jetbrains/kotlin/idea/test/KotlinLightCodeInsightFixtureTestCase.kt b/test-framework/test/org/jetbrains/kotlin/idea/test/KotlinLightCodeInsightFixtureTestCase.kt
index 1533fb457e41..33141e9ea078 100644
--- a/test-framework/test/org/jetbrains/kotlin/idea/test/KotlinLightCodeInsightFixtureTestCase.kt
+++ b/test-framework/test/org/jetbrains/kotlin/idea/test/KotlinLightCodeInsightFixtureTestCase.kt
@@ -26,6 +26,7 @@ import com.intellij.openapi.vfs.VfsUtilCore
import com.intellij.openapi.vfs.newvfs.impl.VfsRootAccess
import com.intellij.pom.java.LanguageLevel
import com.intellij.psi.PsiClassOwner
+import com.intellij.psi.PsiFile
import com.intellij.psi.PsiJavaFile
import com.intellij.psi.PsiManager
import com.intellij.psi.codeStyle.CodeStyleSettings
@@ -272,9 +273,9 @@ abstract class KotlinLightCodeInsightFixtureTestCase : KotlinLightCodeInsightFix
return true
}
- fun JavaCodeInsightTestFixture.configureByFile(file: File) {
+ fun JavaCodeInsightTestFixture.configureByFile(file: File): PsiFile {
val relativePath = file.toRelativeString(testDataDirectory)
- configureByFile(relativePath)
+ return configureByFile(relativePath)
}
fun JavaCodeInsightTestFixture.checkResultByFile(file: File) {