mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 22:51:17 +07:00
32 lines
1.1 KiB
Kotlin
32 lines
1.1 KiB
Kotlin
package com.intellij.codeInspection.tests.kotlin
|
|
|
|
import com.intellij.jvm.analysis.KotlinJvmAnalysisTestUtil
|
|
import com.intellij.testFramework.TestDataPath
|
|
import com.siyeh.ig.dependency.SuspiciousPackagePrivateAccessInspectionTestCase
|
|
import org.jetbrains.kotlin.idea.test.ExpectedPluginModeProvider
|
|
import org.jetbrains.kotlin.idea.test.setUpWithKotlinPlugin
|
|
|
|
@TestDataPath("\$CONTENT_ROOT/testData/codeInspection/suspiciousPackagePrivateAccess")
|
|
abstract class KotlinSuspiciousPackagePrivateAccessInspectionTest : SuspiciousPackagePrivateAccessInspectionTestCase("kt"), ExpectedPluginModeProvider {
|
|
override fun setUp() {
|
|
setUpWithKotlinPlugin(testRootDisposable) { super.setUp() }
|
|
}
|
|
|
|
fun testAccessingPackagePrivateMembers() {
|
|
doTestWithDependency()
|
|
}
|
|
|
|
fun testAccessingProtectedMembers() {
|
|
doTestWithDependency()
|
|
}
|
|
|
|
fun testAccessingProtectedMembersFromKotlin() {
|
|
doTestWithDependency()
|
|
}
|
|
|
|
fun testOverridePackagePrivateMethod() {
|
|
doTestWithDependency()
|
|
}
|
|
|
|
override fun getBasePath() = "${KotlinJvmAnalysisTestUtil.TEST_DATA_PROJECT_RELATIVE_BASE_PATH}/codeInspection/suspiciousPackagePrivateAccess"
|
|
} |