mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 22:51:17 +07:00
30 lines
1.0 KiB
Kotlin
30 lines
1.0 KiB
Kotlin
package com.intellij.codeInspection.tests.kotlin
|
|
|
|
import com.intellij.jvm.analysis.KotlinJvmAnalysisTestUtil
|
|
import com.intellij.jvm.analysis.internal.testFramework.ThreadRunInspectionTestBase
|
|
import com.intellij.testFramework.TestDataPath
|
|
import org.jetbrains.kotlin.idea.test.ExpectedPluginModeProvider
|
|
import org.jetbrains.kotlin.idea.test.setUpWithKotlinPlugin
|
|
|
|
private const val inspectionPath = "/codeInspection/threadrun"
|
|
|
|
@TestDataPath("\$CONTENT_ROOT/testData$inspectionPath")
|
|
abstract class KotlinThreadRunInspectionTest : ThreadRunInspectionTestBase(), ExpectedPluginModeProvider {
|
|
override fun setUp() {
|
|
setUpWithKotlinPlugin(testRootDisposable) { super.setUp() }
|
|
}
|
|
|
|
override fun getBasePath() = KotlinJvmAnalysisTestUtil.TEST_DATA_PROJECT_RELATIVE_BASE_PATH + inspectionPath
|
|
|
|
fun `test highlighting`() {
|
|
myFixture.testHighlighting("ThreadRunTest.kt")
|
|
}
|
|
|
|
fun `test no highlighting super`() {
|
|
myFixture.testHighlighting("ThreadRunSuperTest.kt")
|
|
}
|
|
|
|
fun `test quickfix`() {
|
|
myFixture.testQuickFix("ThreadRunQfTest.kt")
|
|
}
|
|
} |