Add when branches: include auto-import
Before this commit, enum / sealed class to add was not imported so user had to import them himself. Now everything is auto-imported. Separate "add with import" is kept but * import is now in mind there. #KT-22330 Fixed #KT-22354 Fixed EA-108090 Fixed
This commit is contained in:
+10
@@ -4203,6 +4203,16 @@ public class QuickFixMultiFileTestGenerated extends AbstractQuickFixMultiFileTes
|
||||
KotlinTestUtils.runTest(this::doTestWithExtraFile, TargetBackend.ANY, testDataFilePath);
|
||||
}
|
||||
|
||||
@TestMetadata("addRemainingBranchesAnotherPackage.before.Main.kt")
|
||||
public void testAddRemainingBranchesAnotherPackage() throws Exception {
|
||||
runTest("idea/testData/quickfix/when/addRemainingBranchesAnotherPackage.before.Main.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("addRemainingBranchesAnotherPackageAll.before.Main.kt")
|
||||
public void testAddRemainingBranchesAnotherPackageAll() throws Exception {
|
||||
runTest("idea/testData/quickfix/when/addRemainingBranchesAnotherPackageAll.before.Main.kt");
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInWhen() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/quickfix/when"), Pattern.compile("^(\\w+)\\.((before\\.Main\\.\\w+)|(test))$"), TargetBackend.ANY, true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user