[devkit] Support Kotlin TestMetadata annotation for test data navigation (IDEA-272789)

GitOrigin-RevId: 23d5a6d02220f6554912ebbc4325fa2de2e9cf6d
This commit is contained in:
Vladimir Dolzhenko
2021-06-30 18:26:05 +00:00
committed by intellij-monorepo-bot
parent 517f70cafe
commit ad70f810c0
5 changed files with 88 additions and 8 deletions

View File

@@ -0,0 +1,23 @@
@com.intellij.testFramework.TestDataPath("$CONTENT_ROOT")
@org.jetbrains.kotlin.test.TestMetadata("testData/refactoring")
public class ATest extends LightCodeInsightFixtureTestCase {
@com.intellij.testFramework.TestDataPath("")
@org.jetbrains.kotlin.test.TestMetadata("introduceVariable")
public static class IntroduceVariable extends ATest {
private void runTest(String testDataFilePath) throws Exception {
}
@org.jetbrains.kotlin.test.TestMetadata("AnonymousType.kt")
public void testAnonymousType() throws Exception {
runTest("testData/refactoring/introduceVariable/AnonymousType.kt");
}
}
@org.jetbrains.kotlin.test.TestMetadata("introduceVariable/SomeType.kt")
public void testSomeType() throws Exception {
runTest("testData/refactoring/introduceVariable/SomeType.kt");
}
}