mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-22 06:20:54 +07:00
24 lines
795 B
Kotlin
24 lines
795 B
Kotlin
package com.intellij.codeInspection.tests.java
|
|
|
|
import com.intellij.codeInspection.tests.ThreadRunInspectionTestBase
|
|
import com.intellij.jvm.analysis.JavaJvmAnalysisTestUtil
|
|
import com.intellij.testFramework.TestDataPath
|
|
|
|
private const val inspectionPath = "/codeInspection/threadrun"
|
|
|
|
@TestDataPath("\$CONTENT_ROOT/testData$inspectionPath")
|
|
class JavaThreadRunInspectionTest : ThreadRunInspectionTestBase() {
|
|
override fun getBasePath() = JavaJvmAnalysisTestUtil.TEST_DATA_PROJECT_RELATIVE_BASE_PATH + inspectionPath
|
|
|
|
fun `test highlighting`() {
|
|
myFixture.testHighlighting("ThreadRunTest.java")
|
|
}
|
|
|
|
fun `test no highlighting super`() {
|
|
myFixture.testHighlighting("ThreadRunSuperTest.java")
|
|
}
|
|
|
|
fun `test quickfix`() {
|
|
myFixture.testQuickFixAll("ThreadRunQfTest.java")
|
|
}
|
|
} |