[kotlin] Add test for navigation from top level function with JvmName file to test #KTIJ-28969

GitOrigin-RevId: 432e59700c1ce19421c07299d511ed4f2c59a7fb
This commit is contained in:
Alexander.Danilov
2024-03-12 11:13:59 +01:00
committed by intellij-monorepo-bot
parent f86790309e
commit 2d252ff519
3 changed files with 20 additions and 0 deletions

View File

@@ -58,6 +58,11 @@ public class K2GotoTestOrCodeActionTestGenerated extends AbstractK2GotoTestOrCod
runTest("../../../idea/tests/testData/navigation/gotoTestOrCode/fromKotlinFileToTest.main.kt");
}
@TestMetadata("fromKotlinJvmFileToJavaFacadeTest.main.kt")
public void testFromKotlinJvmFileToJavaFacadeTest() throws Exception {
runTest("../../../idea/tests/testData/navigation/gotoTestOrCode/fromKotlinJvmFileToJavaFacadeTest.main.kt");
}
@TestMetadata("fromKotlinTestToJavaClass.main.kt")
public void testFromKotlinTestToJavaClass() throws Exception {
runTest("../../../idea/tests/testData/navigation/gotoTestOrCode/fromKotlinTestToJavaClass.main.kt");

View File

@@ -58,6 +58,11 @@ public class GotoTestOrCodeActionTestGenerated extends AbstractGotoTestOrCodeAct
runTest("testData/navigation/gotoTestOrCode/fromKotlinFileToTest.main.kt");
}
@TestMetadata("fromKotlinJvmFileToJavaFacadeTest.main.kt")
public void testFromKotlinJvmFileToJavaFacadeTest() throws Exception {
runTest("testData/navigation/gotoTestOrCode/fromKotlinJvmFileToJavaFacadeTest.main.kt");
}
@TestMetadata("fromKotlinTestToJavaClass.main.kt")
public void testFromKotlinTestToJavaClass() throws Exception {
runTest("testData/navigation/gotoTestOrCode/fromKotlinTestToJavaClass.main.kt");

View File

@@ -0,0 +1,10 @@
// CONFIGURE_LIBRARY: JUnit
// REF: (<root>).FooUtilsTest
@file:JvmName("FooUtils")
import junit.framework.TestCase
fun foo<caret>() { }
class FooUtilsTest : TestCase() {
fun testFoo() { }
}