mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-21 21:50:54 +07:00
20 lines
823 B
Kotlin
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))
|
|
}
|
|
} |