Files
openide/jvm/jvm-analysis-kotlin-tests/testSrc/com/intellij/codeInspection/tests/kotlin/KotlinEmptyMethodInspectionTest.kt
Tagir Valeev 82deb5011f [jvm-inspections] KotlinEmptyMethodInspection: moved to JVM category, test superclass updated
GitOrigin-RevId: 6f93e40ea1a12bb988ad93f9ad384223122da7bf
2024-02-07 19:29:18 +00:00

20 lines
823 B
Kotlin

package com.intellij.codeInspection.tests.kotlin
import com.intellij.codeInspection.emptyMethod.EmptyMethodInspection
import com.intellij.codeInspection.ex.GlobalInspectionToolWrapper
import com.intellij.jvm.analysis.KotlinJvmAnalysisTestUtil
import com.intellij.jvm.analysis.testFramework.JvmInspectionTestBase
import com.intellij.testFramework.TestDataPath
private const val inspectionPath = "/codeInspection/emptyMethod"
@TestDataPath("\$CONTENT_ROOT/testData$inspectionPath")
class KotlinEmptyMethodInspectionTest : JvmInspectionTestBase() {
override var inspection = EmptyMethodInspection()
override fun getBasePath() = KotlinJvmAnalysisTestUtil.TEST_DATA_PROJECT_RELATIVE_BASE_PATH + inspectionPath
fun `test basic`() {
myFixture.testInspection("basic", GlobalInspectionToolWrapper(inspection))
}
}