[jvm] Enable call matcher test

GitOrigin-RevId: 6e60b05400606840a6f5070d76284059d000b4cb
This commit is contained in:
Bart van Helvert
2024-09-13 18:22:47 +02:00
committed by intellij-monorepo-bot
parent 8326c6227e
commit f59622a97b
3 changed files with 5 additions and 5 deletions

View File

@@ -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
}

View File

@@ -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>

View File

@@ -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() { } }