Files
openide/jvm/jvm-analysis-java-tests/testSrc/com/intellij/codeInspection/tests/java/JavaThreadRunInspectionTest.kt
Bart van Helvert 1d4d872901 [jvm] Remove file extension override from test base
GitOrigin-RevId: 229e517662a6233ed7c8ebe06553977459042722
2021-08-23 17:35:15 +00:00

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")
}
}