mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-03-22 06:50:54 +07:00
[jvm] Enable call matcher test
GitOrigin-RevId: 6e60b05400606840a6f5070d76284059d000b4cb
This commit is contained in:
committed by
intellij-monorepo-bot
parent
8326c6227e
commit
f59622a97b
@@ -1,11 +1,7 @@
|
||||
package com.intellij.codeInspection.tests.kotlin
|
||||
|
||||
import com.intellij.idea.IgnoreJUnit3
|
||||
import org.jetbrains.kotlin.idea.base.plugin.KotlinPluginMode
|
||||
import org.junit.Ignore
|
||||
|
||||
@Ignore
|
||||
@IgnoreJUnit3
|
||||
class K2CallMatcherTest : KotlinCallMatcherTest() {
|
||||
override val pluginMode: KotlinPluginMode get() = KotlinPluginMode.K2
|
||||
}
|
||||
@@ -14,5 +14,6 @@
|
||||
<orderEntry type="module" module-name="intellij.platform.testFramework.junit5" exported="" scope="TEST" />
|
||||
<orderEntry type="module" module-name="kotlin.base.plugin" exported="" scope="TEST" />
|
||||
<orderEntry type="module" module-name="kotlin.base.test" exported="" scope="TEST" />
|
||||
<orderEntry type="module" module-name="kotlin.test-framework" scope="TEST" />
|
||||
</component>
|
||||
</module>
|
||||
@@ -2,16 +2,19 @@ package com.intellij.codeInspection.tests.kotlin
|
||||
|
||||
import com.intellij.jvm.analysis.internal.testFramework.CallMatcherTestBase
|
||||
import com.intellij.jvm.analysis.testFramework.JvmLanguage
|
||||
import com.intellij.testFramework.LightProjectDescriptor
|
||||
import com.siyeh.ig.callMatcher.CallMatcher
|
||||
import org.jetbrains.kotlin.idea.test.ExpectedPluginModeProvider
|
||||
import org.jetbrains.kotlin.idea.test.KotlinWithJdkAndRuntimeLightProjectDescriptor
|
||||
import org.jetbrains.kotlin.idea.test.setUpWithKotlinPlugin
|
||||
|
||||
abstract class KotlinCallMatcherTest : CallMatcherTestBase(), ExpectedPluginModeProvider {
|
||||
override fun getProjectDescriptor(): LightProjectDescriptor = KotlinWithJdkAndRuntimeLightProjectDescriptor.getInstance()
|
||||
|
||||
override fun setUp() {
|
||||
setUpWithKotlinPlugin(testRootDisposable) { super.setUp() }
|
||||
}
|
||||
|
||||
|
||||
fun testInstanceMethodCall() {
|
||||
checkMatchCall(JvmLanguage.KOTLIN, CallMatcher.instanceCall("Foo", "bar").parameterCount(0), """
|
||||
class Foo { fun bar() { } }
|
||||
|
||||
Reference in New Issue
Block a user