diff options
Diffstat (limited to 'plugins/kotlin/test-framework/test/org/jetbrains/kotlin/idea/test/KotlinLightCodeInsightFixtureTestCase.kt')
-rw-r--r-- | plugins/kotlin/test-framework/test/org/jetbrains/kotlin/idea/test/KotlinLightCodeInsightFixtureTestCase.kt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/kotlin/test-framework/test/org/jetbrains/kotlin/idea/test/KotlinLightCodeInsightFixtureTestCase.kt b/plugins/kotlin/test-framework/test/org/jetbrains/kotlin/idea/test/KotlinLightCodeInsightFixtureTestCase.kt index 9b9e30ac15d0..575590e17ccf 100644 --- a/plugins/kotlin/test-framework/test/org/jetbrains/kotlin/idea/test/KotlinLightCodeInsightFixtureTestCase.kt +++ b/plugins/kotlin/test-framework/test/org/jetbrains/kotlin/idea/test/KotlinLightCodeInsightFixtureTestCase.kt @@ -290,6 +290,11 @@ abstract class KotlinLightCodeInsightFixtureTestCase : KotlinLightCodeInsightFix return configureByFile(relativePath) } + fun JavaCodeInsightTestFixture.configureByFiles(vararg file: File): List<PsiFile> { + val relativePaths = file.map { it.toRelativeString(testDataDirectory) }.toTypedArray() + return configureByFiles(*relativePaths).toList() + } + fun JavaCodeInsightTestFixture.checkResultByFile(file: File) { val relativePath = file.toRelativeString(testDataDirectory) checkResultByFile(relativePath) |