[RESTORED] Spring Support: Implement Spring-specific references

This commit is contained in:
Alexey Sedunov
2016-02-25 14:02:43 +03:00
parent 196b484cd7
commit f2e2220560
45 changed files with 906 additions and 80 deletions
@@ -36,13 +36,18 @@ abstract class KotlinFixtureCompletionBaseTestCase : KotlinLightCodeInsightFixtu
open fun doTest(testPath: String) {
setUpFixture(testPath)
val fileText = FileUtil.loadFile(File(testPath), true)
try {
val fileText = FileUtil.loadFile(File(testPath), true)
if (ExpectedCompletionUtils.shouldRunHighlightingBeforeCompletion(fileText)) {
myFixture.doHighlighting()
if (ExpectedCompletionUtils.shouldRunHighlightingBeforeCompletion(fileText)) {
myFixture.doHighlighting()
}
testCompletion(fileText, getPlatform(), { completionType, count -> complete(completionType, count) }, defaultCompletionType(), defaultInvocationCount())
}
finally {
tearDownFixture()
}
testCompletion(fileText, getPlatform(), { completionType, count -> complete(completionType, count) }, defaultCompletionType(), defaultInvocationCount())
}
protected open fun setUpFixture(testPath: String) {
@@ -51,4 +56,8 @@ abstract class KotlinFixtureCompletionBaseTestCase : KotlinLightCodeInsightFixtu
myFixture.configureByFile(testPath)
}
protected open fun tearDownFixture() {
}
}
@@ -73,6 +73,7 @@ abstract class AbstractCompletionHandlerTest(private val defaultCompletionType:
}
finally {
settingManager.dropTemporarySettings()
tearDownFixture()
}
}
@@ -80,6 +81,10 @@ abstract class AbstractCompletionHandlerTest(private val defaultCompletionType:
fixture.configureByFile(testPath)
}
protected open fun tearDownFixture() {
}
override fun getProjectDescriptor() = KotlinWithJdkAndRuntimeLightProjectDescriptor.INSTANCE
}