diff --git a/plugins/kotlin/code-insight/fixes-k2/tests/test/org/jetbrains/kotlin/idea/k2/codeinsight/fixes/HighLevelQuickFixTestGenerated.java b/plugins/kotlin/code-insight/fixes-k2/tests/test/org/jetbrains/kotlin/idea/k2/codeinsight/fixes/HighLevelQuickFixTestGenerated.java index ad121a753475..eb39d980283a 100644 --- a/plugins/kotlin/code-insight/fixes-k2/tests/test/org/jetbrains/kotlin/idea/k2/codeinsight/fixes/HighLevelQuickFixTestGenerated.java +++ b/plugins/kotlin/code-insight/fixes-k2/tests/test/org/jetbrains/kotlin/idea/k2/codeinsight/fixes/HighLevelQuickFixTestGenerated.java @@ -505,9 +505,11 @@ public abstract class HighLevelQuickFixTestGenerated extends AbstractHighLevelQu } } + + @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/addInitializer") - public static class AddInitializer extends AbstractHighLevelQuickFixTest { + @TestMetadata("../../../idea/tests/testData/quickfix/addAnnotationUseSiteTarget") + public static class AddAnnotationUseSiteTarget extends AbstractHighLevelQuickFixTest { @java.lang.Override @org.jetbrains.annotations.NotNull public final KotlinPluginMode getPluginMode() { @@ -518,125 +520,35 @@ public abstract class HighLevelQuickFixTestGenerated extends AbstractHighLevelQu KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); } - @TestMetadata("localVar.kt") - public void testLocalVar() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addInitializer/localVar.kt"); + @TestMetadata("allTargetVal.kt") + public void testAllTargetVal() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addAnnotationUseSiteTarget/allTargetVal.kt"); } - @TestMetadata("memberExtensionProperty.kt") - public void testMemberExtensionProperty() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addInitializer/memberExtensionProperty.kt"); + @TestMetadata("allTargetVar.kt") + public void testAllTargetVar() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addAnnotationUseSiteTarget/allTargetVar.kt"); } - @TestMetadata("memberExtensionPropertyVarGetterOnly.kt") - public void testMemberExtensionPropertyVarGetterOnly() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addInitializer/memberExtensionPropertyVarGetterOnly.kt"); + @TestMetadata("delegate.kt") + public void testDelegate() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addAnnotationUseSiteTarget/delegate.kt"); } - @TestMetadata("memberExtensionPropertyVarSetterOnly.kt") - public void testMemberExtensionPropertyVarSetterOnly() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addInitializer/memberExtensionPropertyVarSetterOnly.kt"); + @TestMetadata("get.kt") + public void testGet() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addAnnotationUseSiteTarget/get.kt"); } - @TestMetadata("memberProperty.kt") - public void testMemberProperty() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addInitializer/memberProperty.kt"); - } - - @TestMetadata("memberPropertyVarGetterOnly.kt") - public void testMemberPropertyVarGetterOnly() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addInitializer/memberPropertyVarGetterOnly.kt"); - } - - @TestMetadata("memberPropertyVarSetterOnly.kt") - public void testMemberPropertyVarSetterOnly() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addInitializer/memberPropertyVarSetterOnly.kt"); - } - - @TestMetadata("memberPropertyWithAccessor.kt") - public void testMemberPropertyWithAccessor() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addInitializer/memberPropertyWithAccessor.kt"); - } - - @TestMetadata("memberPropertyWithDelegateRuntime.kt") - public void testMemberPropertyWithDelegateRuntime() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addInitializer/memberPropertyWithDelegateRuntime.kt"); - } - - @TestMetadata("mustBeInitializedOrBeAbstract.kt") - public void testMustBeInitializedOrBeAbstract() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addInitializer/mustBeInitializedOrBeAbstract.kt"); - } - - @TestMetadata("mustBeInitializedOrBeFinal.kt") - public void testMustBeInitializedOrBeFinal() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addInitializer/mustBeInitializedOrBeFinal.kt"); - } - - @TestMetadata("mustBeInitializedOrBeFinalWarning.kt") - public void testMustBeInitializedOrBeFinalWarning() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addInitializer/mustBeInitializedOrBeFinalWarning.kt"); - } - - @TestMetadata("mustBeInitializedOrFinalOrAbstract.kt") - public void testMustBeInitializedOrFinalOrAbstract() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addInitializer/mustBeInitializedOrFinalOrAbstract.kt"); - } - - @TestMetadata("mustBeInitializedOrFinalOrAbstractWarning.kt") - public void testMustBeInitializedOrFinalOrAbstractWarning() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addInitializer/mustBeInitializedOrFinalOrAbstractWarning.kt"); - } - - @TestMetadata("mustBeInitializedWarning.kt") - public void testMustBeInitializedWarning() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addInitializer/mustBeInitializedWarning.kt"); - } - - @TestMetadata("topLevelExtensionProperty.kt") - public void testTopLevelExtensionProperty() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addInitializer/topLevelExtensionProperty.kt"); - } - - @TestMetadata("topLevelExtensionPropertySetterOnly.kt") - public void testTopLevelExtensionPropertySetterOnly() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addInitializer/topLevelExtensionPropertySetterOnly.kt"); - } - - @TestMetadata("topLevelProperty.kt") - public void testTopLevelProperty() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addInitializer/topLevelProperty.kt"); - } - - @TestMetadata("topLevelPropertyVarClass.kt") - public void testTopLevelPropertyVarClass() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addInitializer/topLevelPropertyVarClass.kt"); - } - - @TestMetadata("topLevelPropertyVarGetterOnly.kt") - public void testTopLevelPropertyVarGetterOnly() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addInitializer/topLevelPropertyVarGetterOnly.kt"); - } - - @TestMetadata("topLevelPropertyVarSetterOnly.kt") - public void testTopLevelPropertyVarSetterOnly() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addInitializer/topLevelPropertyVarSetterOnly.kt"); - } - - @TestMetadata("topLevelPropertyWithDelegateRuntime.kt") - public void testTopLevelPropertyWithDelegateRuntime() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addInitializer/topLevelPropertyWithDelegateRuntime.kt"); - } - - @TestMetadata("topLevelPropertyWithGetter.kt") - public void testTopLevelPropertyWithGetter() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addInitializer/topLevelPropertyWithGetter.kt"); + @TestMetadata("notApplicable.kt") + public void testNotApplicable() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addAnnotationUseSiteTarget/notApplicable.kt"); } } @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/addPropertyAccessors") - public static class AddPropertyAccessors extends AbstractHighLevelQuickFixTest { + @TestMetadata("../../../idea/tests/testData/quickfix/addAnnotationUseSiteTargetForConstructorParameter") + public static class AddAnnotationUseSiteTargetForConstructorParameter extends AbstractHighLevelQuickFixTest { @java.lang.Override @org.jetbrains.annotations.NotNull public final KotlinPluginMode getPluginMode() { @@ -647,120 +559,556 @@ public abstract class HighLevelQuickFixTestGenerated extends AbstractHighLevelQu KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); } - @TestMetadata("val.kt") - public void testVal() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addPropertyAccessors/val.kt"); + @TestMetadata("allTargetInapplicableNoProperty.kt") + public void testAllTargetInapplicableNoProperty() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addAnnotationUseSiteTargetForConstructorParameter/allTargetInapplicableNoProperty.kt"); } - @TestMetadata("var.kt") - public void testVar() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addPropertyAccessors/var.kt"); + @TestMetadata("allTargetVal.kt") + public void testAllTargetVal() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addAnnotationUseSiteTargetForConstructorParameter/allTargetVal.kt"); } - @TestMetadata("varHasGetter.kt") - public void testVarHasGetter() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addPropertyAccessors/varHasGetter.kt"); + @TestMetadata("allTargetVar.kt") + public void testAllTargetVar() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addAnnotationUseSiteTargetForConstructorParameter/allTargetVar.kt"); } - @TestMetadata("varHasSetter.kt") - public void testVarHasSetter() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addPropertyAccessors/varHasSetter.kt"); + @TestMetadata("constructorParameterAndFieldChange.kt") + public void testConstructorParameterAndFieldChange() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addAnnotationUseSiteTargetForConstructorParameter/constructorParameterAndFieldChange.kt"); + } + + @TestMetadata("constructorParameterAndFieldKeep.kt") + public void testConstructorParameterAndFieldKeep() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addAnnotationUseSiteTargetForConstructorParameter/constructorParameterAndFieldKeep.kt"); + } + + @TestMetadata("constructorParameterAndPropertyChange.kt") + public void testConstructorParameterAndPropertyChange() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addAnnotationUseSiteTargetForConstructorParameter/constructorParameterAndPropertyChange.kt"); + } + + @TestMetadata("constructorParameterAndPropertyKeep.kt") + public void testConstructorParameterAndPropertyKeep() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addAnnotationUseSiteTargetForConstructorParameter/constructorParameterAndPropertyKeep.kt"); + } + + @TestMetadata("inapplicableNoProperty.kt") + public void testInapplicableNoProperty() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addAnnotationUseSiteTargetForConstructorParameter/inapplicableNoProperty.kt"); + } + + @TestMetadata("threeTargetsChangeToField.kt") + public void testThreeTargetsChangeToField() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addAnnotationUseSiteTargetForConstructorParameter/threeTargetsChangeToField.kt"); + } + + @TestMetadata("threeTargetsChangeToProperty.kt") + public void testThreeTargetsChangeToProperty() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addAnnotationUseSiteTargetForConstructorParameter/threeTargetsChangeToProperty.kt"); + } + + @TestMetadata("threeTargetsKeep.kt") + public void testThreeTargetsKeep() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addAnnotationUseSiteTargetForConstructorParameter/threeTargetsKeep.kt"); + } + } + + + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/addConstructorParameterFromSuperTypeCall") + public static class AddConstructorParameterFromSuperTypeCall extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("backticks.kt") + public void testBackticks() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addConstructorParameterFromSuperTypeCall/backticks.kt"); + } + + @TestMetadata("basic.kt") + public void testBasic() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addConstructorParameterFromSuperTypeCall/basic.kt"); + } + + @TestMetadata("basic2.kt") + public void testBasic2() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addConstructorParameterFromSuperTypeCall/basic2.kt"); + } + + @TestMetadata("basic3.kt") + public void testBasic3() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addConstructorParameterFromSuperTypeCall/basic3.kt"); + } + + @TestMetadata("basic4.kt") + public void testBasic4() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addConstructorParameterFromSuperTypeCall/basic4.kt"); + } + + @TestMetadata("enumEntry.kt") + public void testEnumEntry() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addConstructorParameterFromSuperTypeCall/enumEntry.kt"); + } + + @TestMetadata("fewerArguments.kt") + public void testFewerArguments() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addConstructorParameterFromSuperTypeCall/fewerArguments.kt"); + } + + @TestMetadata("generics.kt") + public void testGenerics() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addConstructorParameterFromSuperTypeCall/generics.kt"); + } + + @TestMetadata("hasDifferentNameParameter.kt") + public void testHasDifferentNameParameter() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addConstructorParameterFromSuperTypeCall/hasDifferentNameParameter.kt"); + } + + @TestMetadata("hasSameNameParameter.kt") + public void testHasSameNameParameter() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addConstructorParameterFromSuperTypeCall/hasSameNameParameter.kt"); + } + + @TestMetadata("typeParameter.kt") + public void testTypeParameter() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addConstructorParameterFromSuperTypeCall/typeParameter.kt"); } } @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/addValVar") - public abstract static class AddValVar extends AbstractHighLevelQuickFixTest { - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/addValVar/inline") - public static class Inline extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("basic.kt") - public void testBasic() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addValVar/inline/basic.kt"); - } - - @TestMetadata("var.kt") - public void testVar() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addValVar/inline/var.kt"); - } + @TestMetadata("../../../idea/tests/testData/quickfix/addConversionCall") + public static class AddConversionCall extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; } - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/addValVar") - public static class Uncategorized extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("addVal.kt") - public void testAddVal() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addValVar/addVal.kt"); - } - - @TestMetadata("addValAfterVarArg.kt") - public void testAddValAfterVarArg() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addValVar/addValAfterVarArg.kt"); - } - - @TestMetadata("annotation.kt") - public void testAnnotation() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addValVar/annotation.kt"); - } - - @TestMetadata("expectAnnotation.kt") - public void testExpectAnnotation() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addValVar/expectAnnotation.kt"); - } - - @TestMetadata("library.kt") - public void testLibrary() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addValVar/library.kt"); - } + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); } - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/addValVar/value") - public static class Value extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } + @TestMetadata("toByte.kt") + public void testToByte() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addConversionCall/toByte.kt"); + } - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } + @TestMetadata("toByteExtraParenthesis.kt") + public void testToByteExtraParenthesis() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addConversionCall/toByteExtraParenthesis.kt"); + } - @TestMetadata("basic.kt") - public void testBasic() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addValVar/value/basic.kt"); - } + @TestMetadata("toShort.kt") + public void testToShort() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addConversionCall/toShort.kt"); + } + } - @TestMetadata("genericParameter.kt") - public void testGenericParameter() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addValVar/value/genericParameter.kt"); - } + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/addCrossinline") + public static class AddCrossinline extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } - @TestMetadata("var.kt") - public void testVar() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addValVar/value/var.kt"); - } + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("basic.kt") + public void testBasic() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addCrossinline/basic.kt"); + } + + @TestMetadata("suspend.kt") + public void testSuspend() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addCrossinline/suspend.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/addDataModifier") + public static class AddDataModifier extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("abstract.kt") + public void testAbstract() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addDataModifier/abstract.kt"); + } + + @TestMetadata("inner.kt") + public void testInner() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addDataModifier/inner.kt"); + } + + @TestMetadata("invisibleParameter.kt") + public void testInvisibleParameter() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addDataModifier/invisibleParameter.kt"); + } + + @TestMetadata("invisibleParameter2.kt") + public void testInvisibleParameter2() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addDataModifier/invisibleParameter2.kt"); + } + + @TestMetadata("noParameter.kt") + public void testNoParameter() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addDataModifier/noParameter.kt"); + } + + @TestMetadata("notVarVal.kt") + public void testNotVarVal() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addDataModifier/notVarVal.kt"); + } + + @TestMetadata("open.kt") + public void testOpen() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addDataModifier/open.kt"); + } + + @TestMetadata("sealed.kt") + public void testSealed() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addDataModifier/sealed.kt"); + } + + @TestMetadata("test1.kt") + public void testTest1() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addDataModifier/test1.kt"); + } + + @TestMetadata("test2.kt") + public void testTest2() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addDataModifier/test2.kt"); + } + + @TestMetadata("test3.kt") + public void testTest3() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addDataModifier/test3.kt"); + } + + @TestMetadata("test4.kt") + public void testTest4() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addDataModifier/test4.kt"); + } + + @TestMetadata("test5.kt") + public void testTest5() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addDataModifier/test5.kt"); + } + + @TestMetadata("test6.kt") + public void testTest6() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addDataModifier/test6.kt"); + } + + @TestMetadata("test7.kt") + public void testTest7() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addDataModifier/test7.kt"); + } + + @TestMetadata("vararg.kt") + public void testVararg() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addDataModifier/vararg.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/addDefaultConstructor") + public static class AddDefaultConstructor extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("expect.kt") + public void testExpect() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addDefaultConstructor/expect.kt"); + } + + @TestMetadata("expectAnnotation.kt") + public void testExpectAnnotation() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addDefaultConstructor/expectAnnotation.kt"); + } + + @TestMetadata("expectAnnotation2.kt") + public void testExpectAnnotation2() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addDefaultConstructor/expectAnnotation2.kt"); + } + + @TestMetadata("expectAnnotation3.kt") + public void testExpectAnnotation3() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addDefaultConstructor/expectAnnotation3.kt"); + } + + @TestMetadata("expectAnnotationWithUnresolvedParams.kt") + public void testExpectAnnotationWithUnresolvedParams() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addDefaultConstructor/expectAnnotationWithUnresolvedParams.kt"); + } + + @TestMetadata("expectInterface.kt") + public void testExpectInterface() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addDefaultConstructor/expectInterface.kt"); + } + + @TestMetadata("expectWithUnresolvedParams.kt") + public void testExpectWithUnresolvedParams() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addDefaultConstructor/expectWithUnresolvedParams.kt"); + } + + @TestMetadata("interface.kt") + public void testInterface() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addDefaultConstructor/interface.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/addElseBranchToIf") + public static class AddElseBranchToIf extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("error.kt") + public void testError() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addElseBranchToIf/error.kt"); + } + + @TestMetadata("errorWithBlock.kt") + public void testErrorWithBlock() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addElseBranchToIf/errorWithBlock.kt"); + } + + @TestMetadata("inElvis.kt") + public void testInElvis() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addElseBranchToIf/inElvis.kt"); + } + + @TestMetadata("inElvisBlock.kt") + public void testInElvisBlock() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addElseBranchToIf/inElvisBlock.kt"); + } + + @TestMetadata("inElvisWithoutThen.kt") + public void testInElvisWithoutThen() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addElseBranchToIf/inElvisWithoutThen.kt"); + } + + @TestMetadata("withoutCloseParenthesisInCondition.kt") + public void testWithoutCloseParenthesisInCondition() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addElseBranchToIf/withoutCloseParenthesisInCondition.kt"); + } + + @TestMetadata("withoutCondition.kt") + public void testWithoutCondition() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addElseBranchToIf/withoutCondition.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/addEmptyArgumentList") + public static class AddEmptyArgumentList extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("suspend.kt") + public void testSuspend() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addEmptyArgumentList/suspend.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/addEqEqTrue") + public static class AddEqEqTrue extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("argument.kt") + public void testArgument() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addEqEqTrue/argument.kt"); + } + + @TestMetadata("assignment.kt") + public void testAssignment() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addEqEqTrue/assignment.kt"); + } + + @TestMetadata("condition.kt") + public void testCondition() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addEqEqTrue/condition.kt"); + } + + @TestMetadata("initializer.kt") + public void testInitializer() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addEqEqTrue/initializer.kt"); + } + + @TestMetadata("notBoolean.kt") + public void testNotBoolean() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addEqEqTrue/notBoolean.kt"); + } + + @TestMetadata("notBoolean2.kt") + public void testNotBoolean2() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addEqEqTrue/notBoolean2.kt"); + } + + @TestMetadata("return.kt") + public void testReturn() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addEqEqTrue/return.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/addFunModifier") + public static class AddFunModifier extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("asFirstArgument.kt") + public void testAsFirstArgument() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addFunModifier/asFirstArgument.kt"); + } + + @TestMetadata("asLastArgument.kt") + public void testAsLastArgument() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addFunModifier/asLastArgument.kt"); + } + + @TestMetadata("hasArguments.kt") + public void testHasArguments() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addFunModifier/hasArguments.kt"); + } + + @TestMetadata("hasNoArguments.kt") + public void testHasNoArguments() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addFunModifier/hasNoArguments.kt"); + } + + @TestMetadata("multipleLambdaArgumentsAreNotMovedOutsideParentheses.kt") + public void testMultipleLambdaArgumentsAreNotMovedOutsideParentheses() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addFunModifier/multipleLambdaArgumentsAreNotMovedOutsideParentheses.kt"); + } + + @TestMetadata("namedLambdaArgumentIsNotMovedOutsideParentheses.kt") + public void testNamedLambdaArgumentIsNotMovedOutsideParentheses() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addFunModifier/namedLambdaArgumentIsNotMovedOutsideParentheses.kt"); + } + + @TestMetadata("nonSource.kt") + public void testNonSource() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addFunModifier/nonSource.kt"); + } + + @TestMetadata("notSam.kt") + public void testNotSam() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addFunModifier/notSam.kt"); + } + + @TestMetadata("notSam2.kt") + public void testNotSam2() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addFunModifier/notSam2.kt"); + } + + @TestMetadata("notSam3.kt") + public void testNotSam3() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addFunModifier/notSam3.kt"); + } + + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addFunModifier/simple.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/addGenericUpperBound") + public static class AddGenericUpperBound extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("basic.kt") + public void testBasic() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addGenericUpperBound/basic.kt"); + } + + @TestMetadata("boundAlreadyExists.kt") + public void testBoundAlreadyExists() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addGenericUpperBound/boundAlreadyExists.kt"); + } + + @TestMetadata("inferenceTwoParams.kt") + public void testInferenceTwoParams() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addGenericUpperBound/inferenceTwoParams.kt"); + } + + @TestMetadata("paramAsBound.kt") + public void testParamAsBound() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addGenericUpperBound/paramAsBound.kt"); + } + + @TestMetadata("withinDeclaration.kt") + public void testWithinDeclaration() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addGenericUpperBound/withinDeclaration.kt"); } } @@ -1300,6 +1648,1333 @@ public abstract class HighLevelQuickFixTestGenerated extends AbstractHighLevelQu } } + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/addInitializer") + public static class AddInitializer extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("localVar.kt") + public void testLocalVar() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addInitializer/localVar.kt"); + } + + @TestMetadata("memberExtensionProperty.kt") + public void testMemberExtensionProperty() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addInitializer/memberExtensionProperty.kt"); + } + + @TestMetadata("memberExtensionPropertyVarGetterOnly.kt") + public void testMemberExtensionPropertyVarGetterOnly() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addInitializer/memberExtensionPropertyVarGetterOnly.kt"); + } + + @TestMetadata("memberExtensionPropertyVarSetterOnly.kt") + public void testMemberExtensionPropertyVarSetterOnly() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addInitializer/memberExtensionPropertyVarSetterOnly.kt"); + } + + @TestMetadata("memberProperty.kt") + public void testMemberProperty() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addInitializer/memberProperty.kt"); + } + + @TestMetadata("memberPropertyVarGetterOnly.kt") + public void testMemberPropertyVarGetterOnly() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addInitializer/memberPropertyVarGetterOnly.kt"); + } + + @TestMetadata("memberPropertyVarSetterOnly.kt") + public void testMemberPropertyVarSetterOnly() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addInitializer/memberPropertyVarSetterOnly.kt"); + } + + @TestMetadata("memberPropertyWithAccessor.kt") + public void testMemberPropertyWithAccessor() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addInitializer/memberPropertyWithAccessor.kt"); + } + + @TestMetadata("memberPropertyWithDelegateRuntime.kt") + public void testMemberPropertyWithDelegateRuntime() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addInitializer/memberPropertyWithDelegateRuntime.kt"); + } + + @TestMetadata("mustBeInitializedOrBeAbstract.kt") + public void testMustBeInitializedOrBeAbstract() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addInitializer/mustBeInitializedOrBeAbstract.kt"); + } + + @TestMetadata("mustBeInitializedOrBeFinal.kt") + public void testMustBeInitializedOrBeFinal() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addInitializer/mustBeInitializedOrBeFinal.kt"); + } + + @TestMetadata("mustBeInitializedOrBeFinalWarning.kt") + public void testMustBeInitializedOrBeFinalWarning() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addInitializer/mustBeInitializedOrBeFinalWarning.kt"); + } + + @TestMetadata("mustBeInitializedOrFinalOrAbstract.kt") + public void testMustBeInitializedOrFinalOrAbstract() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addInitializer/mustBeInitializedOrFinalOrAbstract.kt"); + } + + @TestMetadata("mustBeInitializedOrFinalOrAbstractWarning.kt") + public void testMustBeInitializedOrFinalOrAbstractWarning() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addInitializer/mustBeInitializedOrFinalOrAbstractWarning.kt"); + } + + @TestMetadata("mustBeInitializedWarning.kt") + public void testMustBeInitializedWarning() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addInitializer/mustBeInitializedWarning.kt"); + } + + @TestMetadata("topLevelExtensionProperty.kt") + public void testTopLevelExtensionProperty() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addInitializer/topLevelExtensionProperty.kt"); + } + + @TestMetadata("topLevelExtensionPropertySetterOnly.kt") + public void testTopLevelExtensionPropertySetterOnly() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addInitializer/topLevelExtensionPropertySetterOnly.kt"); + } + + @TestMetadata("topLevelProperty.kt") + public void testTopLevelProperty() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addInitializer/topLevelProperty.kt"); + } + + @TestMetadata("topLevelPropertyVarClass.kt") + public void testTopLevelPropertyVarClass() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addInitializer/topLevelPropertyVarClass.kt"); + } + + @TestMetadata("topLevelPropertyVarGetterOnly.kt") + public void testTopLevelPropertyVarGetterOnly() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addInitializer/topLevelPropertyVarGetterOnly.kt"); + } + + @TestMetadata("topLevelPropertyVarSetterOnly.kt") + public void testTopLevelPropertyVarSetterOnly() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addInitializer/topLevelPropertyVarSetterOnly.kt"); + } + + @TestMetadata("topLevelPropertyWithDelegateRuntime.kt") + public void testTopLevelPropertyWithDelegateRuntime() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addInitializer/topLevelPropertyWithDelegateRuntime.kt"); + } + + @TestMetadata("topLevelPropertyWithGetter.kt") + public void testTopLevelPropertyWithGetter() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addInitializer/topLevelPropertyWithGetter.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/addInline") + public static class AddInline extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("basic.kt") + public void testBasic() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addInline/basic.kt"); + } + + @TestMetadata("local.kt") + public void testLocal() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addInline/local.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/addInlineToReifiedFunctionFix") + public static class AddInlineToReifiedFunctionFix extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("basic.kt") + public void testBasic() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addInlineToReifiedFunctionFix/basic.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/addIsToWhenCondition") + public static class AddIsToWhenCondition extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("class.kt") + public void testClass() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addIsToWhenCondition/class.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/addJvmInline") + public static class AddJvmInline extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("genericParameter.kt") + public void testGenericParameter() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addJvmInline/genericParameter.kt"); + } + + @TestMetadata("valueClass.kt") + public void testValueClass() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addJvmInline/valueClass.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/addJvmStaticAnnotation") + public static class AddJvmStaticAnnotation extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("function.kt") + public void testFunction() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addJvmStaticAnnotation/function.kt"); + } + + @TestMetadata("property.kt") + public void testProperty() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addJvmStaticAnnotation/property.kt"); + } + } + + + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/addNoinline") + public static class AddNoinline extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("basic.kt") + public void testBasic() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addNoinline/basic.kt"); + } + + @TestMetadata("extensionCalls.kt") + public void testExtensionCalls() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addNoinline/extensionCalls.kt"); + } + + @TestMetadata("suspend.kt") + public void testSuspend() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addNoinline/suspend.kt"); + } + + @TestMetadata("withCrossinline.kt") + public void testWithCrossinline() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addNoinline/withCrossinline.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/addPropertyAccessors") + public static class AddPropertyAccessors extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("val.kt") + public void testVal() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addPropertyAccessors/val.kt"); + } + + @TestMetadata("var.kt") + public void testVar() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addPropertyAccessors/var.kt"); + } + + @TestMetadata("varHasGetter.kt") + public void testVarHasGetter() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addPropertyAccessors/varHasGetter.kt"); + } + + @TestMetadata("varHasSetter.kt") + public void testVarHasSetter() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addPropertyAccessors/varHasSetter.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/addReifiedToTypeParameterOfFunctionFix") + public static class AddReifiedToTypeParameterOfFunctionFix extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("doubleColonClass.kt") + public void testDoubleColonClass() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addReifiedToTypeParameterOfFunctionFix/doubleColonClass.kt"); + } + + @TestMetadata("secondTypeParameter.kt") + public void testSecondTypeParameter() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addReifiedToTypeParameterOfFunctionFix/secondTypeParameter.kt"); + } + + @TestMetadata("toTypedArray.kt") + public void testToTypedArray() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addReifiedToTypeParameterOfFunctionFix/toTypedArray.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/addReturnExpression") + public static class AddReturnExpression extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("emptyBody.kt") + public void testEmptyBody() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addReturnExpression/emptyBody.kt"); + } + + @TestMetadata("noRightBrace.kt") + public void testNoRightBrace() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addReturnExpression/noRightBrace.kt"); + } + + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addReturnExpression/simple.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/addReturnToLastExpressionInFunction") + public static class AddReturnToLastExpressionInFunction extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("notSubtype.kt") + public void testNotSubtype() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addReturnToLastExpressionInFunction/notSubtype.kt"); + } + + @TestMetadata("nothing.kt") + public void testNothing() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addReturnToLastExpressionInFunction/nothing.kt"); + } + + @TestMetadata("simpleBoolean.kt") + public void testSimpleBoolean() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addReturnToLastExpressionInFunction/simpleBoolean.kt"); + } + + @TestMetadata("subtype.kt") + public void testSubtype() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addReturnToLastExpressionInFunction/subtype.kt"); + } + + @TestMetadata("typeError.kt") + public void testTypeError() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addReturnToLastExpressionInFunction/typeError.kt"); + } + + @TestMetadata("typeError2.kt") + public void testTypeError2() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addReturnToLastExpressionInFunction/typeError2.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/addReturnToUnusedLastExpressionInFunction") + public static class AddReturnToUnusedLastExpressionInFunction extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("notSubtype.kt") + public void testNotSubtype() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addReturnToUnusedLastExpressionInFunction/notSubtype.kt"); + } + + @TestMetadata("nothing.kt") + public void testNothing() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addReturnToUnusedLastExpressionInFunction/nothing.kt"); + } + + @TestMetadata("simpleBoolean.kt") + public void testSimpleBoolean() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addReturnToUnusedLastExpressionInFunction/simpleBoolean.kt"); + } + + @TestMetadata("subtype.kt") + public void testSubtype() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addReturnToUnusedLastExpressionInFunction/subtype.kt"); + } + + @TestMetadata("typeError.kt") + public void testTypeError() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addReturnToUnusedLastExpressionInFunction/typeError.kt"); + } + + @TestMetadata("typeError2.kt") + public void testTypeError2() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addReturnToUnusedLastExpressionInFunction/typeError2.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/addRunBeforeLambda") + public static class AddRunBeforeLambda extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("basic.kt") + public void testBasic() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addRunBeforeLambda/basic.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/addSemicolonBeforeLambdaExpression") + public static class AddSemicolonBeforeLambdaExpression extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("basic.kt") + public void testBasic() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addSemicolonBeforeLambdaExpression/basic.kt"); + } + + @TestMetadata("chainedDotsEnd.kt") + public void testChainedDotsEnd() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addSemicolonBeforeLambdaExpression/chainedDotsEnd.kt"); + } + + @TestMetadata("chainedDotsStart.kt") + public void testChainedDotsStart() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addSemicolonBeforeLambdaExpression/chainedDotsStart.kt"); + } + + @TestMetadata("chainedDotsStartEnd.kt") + public void testChainedDotsStartEnd() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addSemicolonBeforeLambdaExpression/chainedDotsStartEnd.kt"); + } + + @TestMetadata("complex.kt") + public void testComplex() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addSemicolonBeforeLambdaExpression/complex.kt"); + } + + @TestMetadata("dotExpressionAndCallExpression.kt") + public void testDotExpressionAndCallExpression() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addSemicolonBeforeLambdaExpression/dotExpressionAndCallExpression.kt"); + } + + @TestMetadata("multipleCallsEnd.kt") + public void testMultipleCallsEnd() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addSemicolonBeforeLambdaExpression/multipleCallsEnd.kt"); + } + + @TestMetadata("multipleCallsStart.kt") + public void testMultipleCallsStart() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addSemicolonBeforeLambdaExpression/multipleCallsStart.kt"); + } + + @TestMetadata("multipleCallsStartEnd.kt") + public void testMultipleCallsStartEnd() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addSemicolonBeforeLambdaExpression/multipleCallsStartEnd.kt"); + } + + @TestMetadata("multipleLambdas.kt") + public void testMultipleLambdas() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addSemicolonBeforeLambdaExpression/multipleLambdas.kt"); + } + + @TestMetadata("onlyDotBefore.kt") + public void testOnlyDotBefore() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addSemicolonBeforeLambdaExpression/onlyDotBefore.kt"); + } + + @TestMetadata("twoLambdasTwoInvokes.kt") + public void testTwoLambdasTwoInvokes() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addSemicolonBeforeLambdaExpression/twoLambdasTwoInvokes.kt"); + } + + @TestMetadata("withComments.kt") + public void testWithComments() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addSemicolonBeforeLambdaExpression/withComments.kt"); + } + } + + + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/addStarProjections") + public abstract static class AddStarProjections extends AbstractHighLevelQuickFixTest { + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/addStarProjections/cast") + public static class Cast extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("changeFunctionalToStarProjection.kt") + public void testChangeFunctionalToStarProjection() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addStarProjections/cast/changeFunctionalToStarProjection.kt"); + } + + @TestMetadata("changeToStarProjection.kt") + public void testChangeToStarProjection() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addStarProjections/cast/changeToStarProjection.kt"); + } + + @TestMetadata("changeToStarProjectionNullable.kt") + public void testChangeToStarProjectionNullable() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addStarProjections/cast/changeToStarProjectionNullable.kt"); + } + + @TestMetadata("extensionReceiver.kt") + public void testExtensionReceiver() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addStarProjections/cast/extensionReceiver.kt"); + } + + @TestMetadata("extensionReceiver2.kt") + public void testExtensionReceiver2() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addStarProjections/cast/extensionReceiver2.kt"); + } + + @TestMetadata("extensionReceiver3.kt") + public void testExtensionReceiver3() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addStarProjections/cast/extensionReceiver3.kt"); + } + + @TestMetadata("extensionReceiver4.kt") + public void testExtensionReceiver4() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addStarProjections/cast/extensionReceiver4.kt"); + } + + @TestMetadata("extensionReceiver5.kt") + public void testExtensionReceiver5() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addStarProjections/cast/extensionReceiver5.kt"); + } + + @TestMetadata("genericTypeParameter.kt") + public void testGenericTypeParameter() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addStarProjections/cast/genericTypeParameter.kt"); + } + + @TestMetadata("genericTypeParameter2.kt") + public void testGenericTypeParameter2() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addStarProjections/cast/genericTypeParameter2.kt"); + } + + @TestMetadata("genericTypeParameter3.kt") + public void testGenericTypeParameter3() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addStarProjections/cast/genericTypeParameter3.kt"); + } + + @TestMetadata("genericTypeParameter4.kt") + public void testGenericTypeParameter4() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addStarProjections/cast/genericTypeParameter4.kt"); + } + + @TestMetadata("genericTypeParameter5.kt") + public void testGenericTypeParameter5() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addStarProjections/cast/genericTypeParameter5.kt"); + } + + @TestMetadata("genericTypeParameter6.kt") + public void testGenericTypeParameter6() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addStarProjections/cast/genericTypeParameter6.kt"); + } + + @TestMetadata("genericTypeParameter7.kt") + public void testGenericTypeParameter7() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addStarProjections/cast/genericTypeParameter7.kt"); + } + + @TestMetadata("uncheckedCastOnTypeParameter.kt") + public void testUncheckedCastOnTypeParameter() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addStarProjections/cast/uncheckedCastOnTypeParameter.kt"); + } + + @TestMetadata("valueArgument.kt") + public void testValueArgument() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addStarProjections/cast/valueArgument.kt"); + } + + @TestMetadata("valueArgument2.kt") + public void testValueArgument2() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addStarProjections/cast/valueArgument2.kt"); + } + + @TestMetadata("valueArgument3.kt") + public void testValueArgument3() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addStarProjections/cast/valueArgument3.kt"); + } + + @TestMetadata("valueArgument4.kt") + public void testValueArgument4() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addStarProjections/cast/valueArgument4.kt"); + } + + @TestMetadata("valueArgument5.kt") + public void testValueArgument5() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addStarProjections/cast/valueArgument5.kt"); + } + + @TestMetadata("valueArgument6.kt") + public void testValueArgument6() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addStarProjections/cast/valueArgument6.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/addStarProjections/checkType") + public static class CheckType extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("array.kt") + public void testArray() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addStarProjections/checkType/array.kt"); + } + + @TestMetadata("arrayInWhen.kt") + public void testArrayInWhen() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addStarProjections/checkType/arrayInWhen.kt"); + } + + @TestMetadata("changeToStarProjectionMultipleParameters.kt") + public void testChangeToStarProjectionMultipleParameters() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addStarProjections/checkType/changeToStarProjectionMultipleParameters.kt"); + } + + @TestMetadata("changeToStarProjectionNullable.kt") + public void testChangeToStarProjectionNullable() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addStarProjections/checkType/changeToStarProjectionNullable.kt"); + } + + @TestMetadata("changeToStarProjectionSingleParameter.kt") + public void testChangeToStarProjectionSingleParameter() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addStarProjections/checkType/changeToStarProjectionSingleParameter.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/addStarProjections/inner") + public static class Inner extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("inner1.kt") + public void testInner1() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addStarProjections/inner/inner1.kt"); + } + + @TestMetadata("inner2.kt") + public void testInner2() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addStarProjections/inner/inner2.kt"); + } + + @TestMetadata("inner3.kt") + public void testInner3() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addStarProjections/inner/inner3.kt"); + } + + @TestMetadata("inner4.kt") + public void testInner4() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addStarProjections/inner/inner4.kt"); + } + + @TestMetadata("inner5.kt") + public void testInner5() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addStarProjections/inner/inner5.kt"); + } + + @TestMetadata("inner6.kt") + public void testInner6() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addStarProjections/inner/inner6.kt"); + } + + @TestMetadata("inner7.kt") + public void testInner7() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addStarProjections/inner/inner7.kt"); + } + + @TestMetadata("inner8.kt") + public void testInner8() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addStarProjections/inner/inner8.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/addStarProjections") + public static class Uncategorized extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("qualifiedArrayList.kt") + public void testQualifiedArrayList() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addStarProjections/qualifiedArrayList.kt"); + } + + @TestMetadata("qualifiedList.kt") + public void testQualifiedList() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addStarProjections/qualifiedList.kt"); + } + + @TestMetadata("qualifiedMap.kt") + public void testQualifiedMap() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addStarProjections/qualifiedMap.kt"); + } + + @TestMetadata("unqualifiedList.kt") + public void testUnqualifiedList() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addStarProjections/unqualifiedList.kt"); + } + + @TestMetadata("unqualifiedMap.kt") + public void testUnqualifiedMap() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addStarProjections/unqualifiedMap.kt"); + } + + @TestMetadata("unqualifiedMapOneArg.kt") + public void testUnqualifiedMapOneArg() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addStarProjections/unqualifiedMapOneArg.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/addStarProjections/when") + public static class When extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("qualifiedArrayList.kt") + public void testQualifiedArrayList() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addStarProjections/when/qualifiedArrayList.kt"); + } + + @TestMetadata("qualifiedList.kt") + public void testQualifiedList() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addStarProjections/when/qualifiedList.kt"); + } + + @TestMetadata("qualifiedMap.kt") + public void testQualifiedMap() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addStarProjections/when/qualifiedMap.kt"); + } + + @TestMetadata("unqualifiedList.kt") + public void testUnqualifiedList() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addStarProjections/when/unqualifiedList.kt"); + } + + @TestMetadata("unqualifiedMap.kt") + public void testUnqualifiedMap() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addStarProjections/when/unqualifiedMap.kt"); + } + + @TestMetadata("unqualifiedMapOneArg.kt") + public void testUnqualifiedMapOneArg() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addStarProjections/when/unqualifiedMapOneArg.kt"); + } + } + } + + + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/addTypeAnnotationToValueParameter") + public static class AddTypeAnnotationToValueParameter extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("annotationWithArrayLiteralDouble.kt") + public void testAnnotationWithArrayLiteralDouble() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addTypeAnnotationToValueParameter/annotationWithArrayLiteralDouble.kt"); + } + + @TestMetadata("annotationWithArrayLiteralInt.kt") + public void testAnnotationWithArrayLiteralInt() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addTypeAnnotationToValueParameter/annotationWithArrayLiteralInt.kt"); + } + + @TestMetadata("annotationWithArrayLiteralString.kt") + public void testAnnotationWithArrayLiteralString() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addTypeAnnotationToValueParameter/annotationWithArrayLiteralString.kt"); + } + + @TestMetadata("annotationWithVarargArrayLiteralDouble.kt") + public void testAnnotationWithVarargArrayLiteralDouble() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addTypeAnnotationToValueParameter/annotationWithVarargArrayLiteralDouble.kt"); + } + + @TestMetadata("annotationWithVarargArrayLiteralInt.kt") + public void testAnnotationWithVarargArrayLiteralInt() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addTypeAnnotationToValueParameter/annotationWithVarargArrayLiteralInt.kt"); + } + + @TestMetadata("annotationWithVarargArrayLiteralString.kt") + public void testAnnotationWithVarargArrayLiteralString() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addTypeAnnotationToValueParameter/annotationWithVarargArrayLiteralString.kt"); + } + + @TestMetadata("annotationWithVarargDoubleArray.kt") + public void testAnnotationWithVarargDoubleArray() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addTypeAnnotationToValueParameter/annotationWithVarargDoubleArray.kt"); + } + + @TestMetadata("annotationWithVarargIntArray.kt") + public void testAnnotationWithVarargIntArray() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addTypeAnnotationToValueParameter/annotationWithVarargIntArray.kt"); + } + + @TestMetadata("noDefaultValue.kt") + public void testNoDefaultValue() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addTypeAnnotationToValueParameter/noDefaultValue.kt"); + } + + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addTypeAnnotationToValueParameter/simple.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/addUnsafeVarianceAnnotation") + public static class AddUnsafeVarianceAnnotation extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("parameterType.kt") + public void testParameterType() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addUnsafeVarianceAnnotation/parameterType.kt"); + } + + @TestMetadata("returnType.kt") + public void testReturnType() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addUnsafeVarianceAnnotation/returnType.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/addValVar") + public abstract static class AddValVar extends AbstractHighLevelQuickFixTest { + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/addValVar/inline") + public static class Inline extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("basic.kt") + public void testBasic() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addValVar/inline/basic.kt"); + } + + @TestMetadata("var.kt") + public void testVar() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addValVar/inline/var.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/addValVar") + public static class Uncategorized extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("addVal.kt") + public void testAddVal() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addValVar/addVal.kt"); + } + + @TestMetadata("addValAfterVarArg.kt") + public void testAddValAfterVarArg() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addValVar/addValAfterVarArg.kt"); + } + + @TestMetadata("annotation.kt") + public void testAnnotation() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addValVar/annotation.kt"); + } + + @TestMetadata("expectAnnotation.kt") + public void testExpectAnnotation() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addValVar/expectAnnotation.kt"); + } + + @TestMetadata("library.kt") + public void testLibrary() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addValVar/library.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/addValVar/value") + public static class Value extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("basic.kt") + public void testBasic() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addValVar/value/basic.kt"); + } + + @TestMetadata("genericParameter.kt") + public void testGenericParameter() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addValVar/value/genericParameter.kt"); + } + + @TestMetadata("var.kt") + public void testVar() throws Exception { + runTest("../../../idea/tests/testData/quickfix/addValVar/value/var.kt"); + } + } + } + + + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/assignToProperty") + public static class AssignToProperty extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("differentNameProperty.kt") + public void testDifferentNameProperty() throws Exception { + runTest("../../../idea/tests/testData/quickfix/assignToProperty/differentNameProperty.kt"); + } + + @TestMetadata("differentNameProperty2.kt") + public void testDifferentNameProperty2() throws Exception { + runTest("../../../idea/tests/testData/quickfix/assignToProperty/differentNameProperty2.kt"); + } + + @TestMetadata("differentTypeProperty.kt") + public void testDifferentTypeProperty() throws Exception { + runTest("../../../idea/tests/testData/quickfix/assignToProperty/differentTypeProperty.kt"); + } + + @TestMetadata("differentTypeProperty2.kt") + public void testDifferentTypeProperty2() throws Exception { + runTest("../../../idea/tests/testData/quickfix/assignToProperty/differentTypeProperty2.kt"); + } + + @TestMetadata("inSecondaryConstructor.kt") + public void testInSecondaryConstructor() throws Exception { + runTest("../../../idea/tests/testData/quickfix/assignToProperty/inSecondaryConstructor.kt"); + } + + @TestMetadata("noProperty.kt") + public void testNoProperty() throws Exception { + runTest("../../../idea/tests/testData/quickfix/assignToProperty/noProperty.kt"); + } + + @TestMetadata("qualifiedThis.kt") + public void testQualifiedThis() throws Exception { + runTest("../../../idea/tests/testData/quickfix/assignToProperty/qualifiedThis.kt"); + } + + @TestMetadata("sameProperty.kt") + public void testSameProperty() throws Exception { + runTest("../../../idea/tests/testData/quickfix/assignToProperty/sameProperty.kt"); + } + + @TestMetadata("sameProperty2.kt") + public void testSameProperty2() throws Exception { + runTest("../../../idea/tests/testData/quickfix/assignToProperty/sameProperty2.kt"); + } + + @TestMetadata("sameProperty3.kt") + public void testSameProperty3() throws Exception { + runTest("../../../idea/tests/testData/quickfix/assignToProperty/sameProperty3.kt"); + } + + @TestMetadata("valProperty.kt") + public void testValProperty() throws Exception { + runTest("../../../idea/tests/testData/quickfix/assignToProperty/valProperty.kt"); + } + + @TestMetadata("valProperty2.kt") + public void testValProperty2() throws Exception { + runTest("../../../idea/tests/testData/quickfix/assignToProperty/valProperty2.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/callFromPublicInline") + public abstract static class CallFromPublicInline extends AbstractHighLevelQuickFixTest { + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/callFromPublicInline/nonPublic") + public static class NonPublic extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("internalFunction.kt") + public void testInternalFunction() throws Exception { + runTest("../../../idea/tests/testData/quickfix/callFromPublicInline/nonPublic/internalFunction.kt"); + } + + @TestMetadata("internalFunction2.kt") + public void testInternalFunction2() throws Exception { + runTest("../../../idea/tests/testData/quickfix/callFromPublicInline/nonPublic/internalFunction2.kt"); + } + + @TestMetadata("internalFunction3.kt") + public void testInternalFunction3() throws Exception { + runTest("../../../idea/tests/testData/quickfix/callFromPublicInline/nonPublic/internalFunction3.kt"); + } + + @TestMetadata("privateProperty.kt") + public void testPrivateProperty() throws Exception { + runTest("../../../idea/tests/testData/quickfix/callFromPublicInline/nonPublic/privateProperty.kt"); + } + + @TestMetadata("privateProperty2.kt") + public void testPrivateProperty2() throws Exception { + runTest("../../../idea/tests/testData/quickfix/callFromPublicInline/nonPublic/privateProperty2.kt"); + } + + @TestMetadata("privateProperty3.kt") + public void testPrivateProperty3() throws Exception { + runTest("../../../idea/tests/testData/quickfix/callFromPublicInline/nonPublic/privateProperty3.kt"); + } + + @TestMetadata("reifiedTypeParameter.kt") + public void testReifiedTypeParameter() throws Exception { + runTest("../../../idea/tests/testData/quickfix/callFromPublicInline/nonPublic/reifiedTypeParameter.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/callFromPublicInline/protected") + public static class Protected extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("infix.kt") + public void testInfix() throws Exception { + runTest("../../../idea/tests/testData/quickfix/callFromPublicInline/protected/infix.kt"); + } + + @TestMetadata("protectedFunction.kt") + public void testProtectedFunction() throws Exception { + runTest("../../../idea/tests/testData/quickfix/callFromPublicInline/protected/protectedFunction.kt"); + } + + @TestMetadata("protectedFunction2.kt") + public void testProtectedFunction2() throws Exception { + runTest("../../../idea/tests/testData/quickfix/callFromPublicInline/protected/protectedFunction2.kt"); + } + + @TestMetadata("protectedFunction3.kt") + public void testProtectedFunction3() throws Exception { + runTest("../../../idea/tests/testData/quickfix/callFromPublicInline/protected/protectedFunction3.kt"); + } + + @TestMetadata("reifiedTypeParameter.kt") + public void testReifiedTypeParameter() throws Exception { + runTest("../../../idea/tests/testData/quickfix/callFromPublicInline/protected/reifiedTypeParameter.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/callFromPublicInline/super") + public static class Super extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("reifiedTypeParameter.kt") + public void testReifiedTypeParameter() throws Exception { + runTest("../../../idea/tests/testData/quickfix/callFromPublicInline/super/reifiedTypeParameter.kt"); + } + + @TestMetadata("superFunction.kt") + public void testSuperFunction() throws Exception { + runTest("../../../idea/tests/testData/quickfix/callFromPublicInline/super/superFunction.kt"); + } + + @TestMetadata("superFunction2.kt") + public void testSuperFunction2() throws Exception { + runTest("../../../idea/tests/testData/quickfix/callFromPublicInline/super/superFunction2.kt"); + } + + @TestMetadata("superFunction3.kt") + public void testSuperFunction3() throws Exception { + runTest("../../../idea/tests/testData/quickfix/callFromPublicInline/super/superFunction3.kt"); + } + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/canBeParameter") + public static class CanBeParameter extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("usedInDerivedClass.kt") + public void testUsedInDerivedClass() throws Exception { + runTest("../../../idea/tests/testData/quickfix/canBeParameter/usedInDerivedClass.kt"); + } + + @TestMetadata("usedInProperty.kt") + public void testUsedInProperty() throws Exception { + runTest("../../../idea/tests/testData/quickfix/canBeParameter/usedInProperty.kt"); + } + + @TestMetadata("usedPrivateInInitializer.kt") + public void testUsedPrivateInInitializer() throws Exception { + runTest("../../../idea/tests/testData/quickfix/canBeParameter/usedPrivateInInitializer.kt"); + } + + @TestMetadata("usedVarArg.kt") + public void testUsedVarArg() throws Exception { + runTest("../../../idea/tests/testData/quickfix/canBeParameter/usedVarArg.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/canBePrimaryConstructorProperty") + public static class CanBePrimaryConstructorProperty extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("commentAfter.kt") + public void testCommentAfter() throws Exception { + runTest("../../../idea/tests/testData/quickfix/canBePrimaryConstructorProperty/commentAfter.kt"); + } + + @TestMetadata("commentAhead.kt") + public void testCommentAhead() throws Exception { + runTest("../../../idea/tests/testData/quickfix/canBePrimaryConstructorProperty/commentAhead.kt"); + } + + @TestMetadata("protectedOpenVar.kt") + public void testProtectedOpenVar() throws Exception { + runTest("../../../idea/tests/testData/quickfix/canBePrimaryConstructorProperty/protectedOpenVar.kt"); + } + + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("../../../idea/tests/testData/quickfix/canBePrimaryConstructorProperty/simple.kt"); + } + + @TestMetadata("vararg.kt") + public void testVararg() throws Exception { + runTest("../../../idea/tests/testData/quickfix/canBePrimaryConstructorProperty/vararg.kt"); + } + } + + + @RunWith(JUnit3RunnerWithInners.class) @TestMetadata("../../../idea/tests/testData/quickfix/changeToMutableCollection") public static class ChangeToMutableCollection extends AbstractHighLevelQuickFixTest { @@ -1406,6 +3081,217 @@ public abstract class HighLevelQuickFixTestGenerated extends AbstractHighLevelQu } } + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/changeObjectToClass") + public static class ChangeObjectToClass extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("primaryConstructor.kt") + public void testPrimaryConstructor() throws Exception { + runTest("../../../idea/tests/testData/quickfix/changeObjectToClass/primaryConstructor.kt"); + } + + @TestMetadata("secondaryConstructor.kt") + public void testSecondaryConstructor() throws Exception { + runTest("../../../idea/tests/testData/quickfix/changeObjectToClass/secondaryConstructor.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/changeSuperTypeListEntryTypeArgument") + public static class ChangeSuperTypeListEntryTypeArgument extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("propertyTypeMismatchOnOverride.kt") + public void testPropertyTypeMismatchOnOverride() throws Exception { + runTest("../../../idea/tests/testData/quickfix/changeSuperTypeListEntryTypeArgument/propertyTypeMismatchOnOverride.kt"); + } + + @TestMetadata("propertyTypeMismatchOnOverride2.kt") + public void testPropertyTypeMismatchOnOverride2() throws Exception { + runTest("../../../idea/tests/testData/quickfix/changeSuperTypeListEntryTypeArgument/propertyTypeMismatchOnOverride2.kt"); + } + + @TestMetadata("propertyTypeMismatchWithNameAmbiguity.kt") + public void testPropertyTypeMismatchWithNameAmbiguity() throws Exception { + runTest("../../../idea/tests/testData/quickfix/changeSuperTypeListEntryTypeArgument/propertyTypeMismatchWithNameAmbiguity.kt"); + } + + @TestMetadata("propertyTypeMismatchWithNameCollision.kt") + public void testPropertyTypeMismatchWithNameCollision() throws Exception { + runTest("../../../idea/tests/testData/quickfix/changeSuperTypeListEntryTypeArgument/propertyTypeMismatchWithNameCollision.kt"); + } + + @TestMetadata("returnTypeMismatchOnOverride.kt") + public void testReturnTypeMismatchOnOverride() throws Exception { + runTest("../../../idea/tests/testData/quickfix/changeSuperTypeListEntryTypeArgument/returnTypeMismatchOnOverride.kt"); + } + + @TestMetadata("returnTypeMismatchOnOverride2.kt") + public void testReturnTypeMismatchOnOverride2() throws Exception { + runTest("../../../idea/tests/testData/quickfix/changeSuperTypeListEntryTypeArgument/returnTypeMismatchOnOverride2.kt"); + } + + @TestMetadata("returnTypeMismatchWithNameAmbiguity.kt") + public void testReturnTypeMismatchWithNameAmbiguity() throws Exception { + runTest("../../../idea/tests/testData/quickfix/changeSuperTypeListEntryTypeArgument/returnTypeMismatchWithNameAmbiguity.kt"); + } + + @TestMetadata("returnTypeMismatchWithNameCollision.kt") + public void testReturnTypeMismatchWithNameCollision() throws Exception { + runTest("../../../idea/tests/testData/quickfix/changeSuperTypeListEntryTypeArgument/returnTypeMismatchWithNameCollision.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/changeToLabeledReturn") + public static class ChangeToLabeledReturn extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("constantExpectedTypeMismatch.kt") + public void testConstantExpectedTypeMismatch() throws Exception { + runTest("../../../idea/tests/testData/quickfix/changeToLabeledReturn/constantExpectedTypeMismatch.kt"); + } + + @TestMetadata("multipleInner.kt") + public void testMultipleInner() throws Exception { + runTest("../../../idea/tests/testData/quickfix/changeToLabeledReturn/multipleInner.kt"); + } + + @TestMetadata("multipleOuter.kt") + public void testMultipleOuter() throws Exception { + runTest("../../../idea/tests/testData/quickfix/changeToLabeledReturn/multipleOuter.kt"); + } + + @TestMetadata("noCandidates.kt") + public void testNoCandidates() throws Exception { + runTest("../../../idea/tests/testData/quickfix/changeToLabeledReturn/noCandidates.kt"); + } + + @TestMetadata("normal.kt") + public void testNormal() throws Exception { + runTest("../../../idea/tests/testData/quickfix/changeToLabeledReturn/normal.kt"); + } + + @TestMetadata("nullForNonnullType.kt") + public void testNullForNonnullType() throws Exception { + runTest("../../../idea/tests/testData/quickfix/changeToLabeledReturn/nullForNonnullType.kt"); + } + + @TestMetadata("nullForNonnullType2.kt") + public void testNullForNonnullType2() throws Exception { + runTest("../../../idea/tests/testData/quickfix/changeToLabeledReturn/nullForNonnullType2.kt"); + } + + @TestMetadata("returnNotAllowedInClass.kt") + public void testReturnNotAllowedInClass() throws Exception { + runTest("../../../idea/tests/testData/quickfix/changeToLabeledReturn/returnNotAllowedInClass.kt"); + } + + @TestMetadata("returnNotAllowedInObject.kt") + public void testReturnNotAllowedInObject() throws Exception { + runTest("../../../idea/tests/testData/quickfix/changeToLabeledReturn/returnNotAllowedInObject.kt"); + } + + @TestMetadata("typeMismatch.kt") + public void testTypeMismatch() throws Exception { + runTest("../../../idea/tests/testData/quickfix/changeToLabeledReturn/typeMismatch.kt"); + } + + @TestMetadata("typeMismatch2.kt") + public void testTypeMismatch2() throws Exception { + runTest("../../../idea/tests/testData/quickfix/changeToLabeledReturn/typeMismatch2.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/changeToUseSpreadOperator") + public static class ChangeToUseSpreadOperator extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("differentTypeParameter.kt") + public void testDifferentTypeParameter() throws Exception { + runTest("../../../idea/tests/testData/quickfix/changeToUseSpreadOperator/differentTypeParameter.kt"); + } + + @TestMetadata("differentTypeParameterGeneric.kt") + public void testDifferentTypeParameterGeneric() throws Exception { + runTest("../../../idea/tests/testData/quickfix/changeToUseSpreadOperator/differentTypeParameterGeneric.kt"); + } + + @TestMetadata("mapOf.kt") + public void testMapOf() throws Exception { + runTest("../../../idea/tests/testData/quickfix/changeToUseSpreadOperator/mapOf.kt"); + } + + @TestMetadata("multipleParams.kt") + public void testMultipleParams() throws Exception { + runTest("../../../idea/tests/testData/quickfix/changeToUseSpreadOperator/multipleParams.kt"); + } + + @TestMetadata("nestedGeneric.kt") + public void testNestedGeneric() throws Exception { + runTest("../../../idea/tests/testData/quickfix/changeToUseSpreadOperator/nestedGeneric.kt"); + } + + @TestMetadata("nonArray.kt") + public void testNonArray() throws Exception { + runTest("../../../idea/tests/testData/quickfix/changeToUseSpreadOperator/nonArray.kt"); + } + + @TestMetadata("nonVarArg.kt") + public void testNonVarArg() throws Exception { + runTest("../../../idea/tests/testData/quickfix/changeToUseSpreadOperator/nonVarArg.kt"); + } + + @TestMetadata("normal.kt") + public void testNormal() throws Exception { + runTest("../../../idea/tests/testData/quickfix/changeToUseSpreadOperator/normal.kt"); + } + + @TestMetadata("stdlibMapOf.kt") + public void testStdlibMapOf() throws Exception { + runTest("../../../idea/tests/testData/quickfix/changeToUseSpreadOperator/stdlibMapOf.kt"); + } + + @TestMetadata("vararg.kt") + public void testVararg() throws Exception { + runTest("../../../idea/tests/testData/quickfix/changeToUseSpreadOperator/vararg.kt"); + } + } + @RunWith(JUnit3RunnerWithInners.class) @TestMetadata("../../../idea/tests/testData/quickfix/conflictingImports") public static class ConflictingImports extends AbstractHighLevelQuickFixTest { @@ -1435,6 +3321,4571 @@ public abstract class HighLevelQuickFixTestGenerated extends AbstractHighLevelQu } } + + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/convertCollectionLiteralToIntArrayOf") + public static class ConvertCollectionLiteralToIntArrayOf extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("companionObject.kt") + public void testCompanionObject() throws Exception { + runTest("../../../idea/tests/testData/quickfix/convertCollectionLiteralToIntArrayOf/companionObject.kt"); + } + + @TestMetadata("constructor.kt") + public void testConstructor() throws Exception { + runTest("../../../idea/tests/testData/quickfix/convertCollectionLiteralToIntArrayOf/constructor.kt"); + } + + @TestMetadata("NestedClass.kt") + public void testNestedClass() throws Exception { + runTest("../../../idea/tests/testData/quickfix/convertCollectionLiteralToIntArrayOf/NestedClass.kt"); + } + + @TestMetadata("NestedObject.kt") + public void testNestedObject() throws Exception { + runTest("../../../idea/tests/testData/quickfix/convertCollectionLiteralToIntArrayOf/NestedObject.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/convertIllegalEscapeToUnicodeEscape") + public static class ConvertIllegalEscapeToUnicodeEscape extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("formFeed.kt") + public void testFormFeed() throws Exception { + runTest("../../../idea/tests/testData/quickfix/convertIllegalEscapeToUnicodeEscape/formFeed.kt"); + } + + @TestMetadata("formFeedInStringTemplate.kt") + public void testFormFeedInStringTemplate() throws Exception { + runTest("../../../idea/tests/testData/quickfix/convertIllegalEscapeToUnicodeEscape/formFeedInStringTemplate.kt"); + } + } + + + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/convertLateinitPropertyToNotNullDelegate") + public static class ConvertLateinitPropertyToNotNullDelegate extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("basic.kt") + public void testBasic() throws Exception { + runTest("../../../idea/tests/testData/quickfix/convertLateinitPropertyToNotNullDelegate/basic.kt"); + } + + @TestMetadata("basic2.kt") + public void testBasic2() throws Exception { + runTest("../../../idea/tests/testData/quickfix/convertLateinitPropertyToNotNullDelegate/basic2.kt"); + } + + @TestMetadata("hasInitializer.kt") + public void testHasInitializer() throws Exception { + runTest("../../../idea/tests/testData/quickfix/convertLateinitPropertyToNotNullDelegate/hasInitializer.kt"); + } + + @TestMetadata("noType.kt") + public void testNoType() throws Exception { + runTest("../../../idea/tests/testData/quickfix/convertLateinitPropertyToNotNullDelegate/noType.kt"); + } + + @TestMetadata("notPrimitive.kt") + public void testNotPrimitive() throws Exception { + runTest("../../../idea/tests/testData/quickfix/convertLateinitPropertyToNotNullDelegate/notPrimitive.kt"); + } + + @TestMetadata("nullablePrimitive.kt") + public void testNullablePrimitive() throws Exception { + runTest("../../../idea/tests/testData/quickfix/convertLateinitPropertyToNotNullDelegate/nullablePrimitive.kt"); + } + + @TestMetadata("val.kt") + public void testVal() throws Exception { + runTest("../../../idea/tests/testData/quickfix/convertLateinitPropertyToNotNullDelegate/val.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/convertPropertyInitializerToGetter") + public static class ConvertPropertyInitializerToGetter extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("val.kt") + public void testVal() throws Exception { + runTest("../../../idea/tests/testData/quickfix/convertPropertyInitializerToGetter/val.kt"); + } + + @TestMetadata("var.kt") + public void testVar() throws Exception { + runTest("../../../idea/tests/testData/quickfix/convertPropertyInitializerToGetter/var.kt"); + } + + @TestMetadata("varWithSetter.kt") + public void testVarWithSetter() throws Exception { + runTest("../../../idea/tests/testData/quickfix/convertPropertyInitializerToGetter/varWithSetter.kt"); + } + } + + + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/convertToBlockBody") + public static class ConvertToBlockBody extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("../../../idea/tests/testData/quickfix/convertToBlockBody/simple.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/convertToIsArrayOfCall") + public static class ConvertToIsArrayOfCall extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("arrayLhs.kt") + public void testArrayLhs() throws Exception { + runTest("../../../idea/tests/testData/quickfix/convertToIsArrayOfCall/arrayLhs.kt"); + } + + @TestMetadata("basic.kt") + public void testBasic() throws Exception { + runTest("../../../idea/tests/testData/quickfix/convertToIsArrayOfCall/basic.kt"); + } + + @TestMetadata("list.kt") + public void testList() throws Exception { + runTest("../../../idea/tests/testData/quickfix/convertToIsArrayOfCall/list.kt"); + } + + @TestMetadata("negatedArrayLhs.kt") + public void testNegatedArrayLhs() throws Exception { + runTest("../../../idea/tests/testData/quickfix/convertToIsArrayOfCall/negatedArrayLhs.kt"); + } + + @TestMetadata("negatedBasic.kt") + public void testNegatedBasic() throws Exception { + runTest("../../../idea/tests/testData/quickfix/convertToIsArrayOfCall/negatedBasic.kt"); + } + + @TestMetadata("negatedNullableArrayLhs.kt") + public void testNegatedNullableArrayLhs() throws Exception { + runTest("../../../idea/tests/testData/quickfix/convertToIsArrayOfCall/negatedNullableArrayLhs.kt"); + } + + @TestMetadata("nullableArrayLhs.kt") + public void testNullableArrayLhs() throws Exception { + runTest("../../../idea/tests/testData/quickfix/convertToIsArrayOfCall/nullableArrayLhs.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/createFromUsage/createClass") + public abstract static class CreateClass extends AbstractHighLevelQuickFixTest { + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/createFromUsage/createClass/annotationEntry") + public static class AnnotationEntry extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("annotationNoBrackets.kt") + public void testAnnotationNoBrackets() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/annotationEntry/annotationNoBrackets.kt"); + } + + @TestMetadata("annotationNoParamList.kt") + public void testAnnotationNoParamList() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/annotationEntry/annotationNoParamList.kt"); + } + + @TestMetadata("annotationNoParams.kt") + public void testAnnotationNoParams() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/annotationEntry/annotationNoParams.kt"); + } + + @TestMetadata("annotationWithParams.kt") + public void testAnnotationWithParams() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/annotationEntry/annotationWithParams.kt"); + } + + @TestMetadata("annotationWithTypeParams.kt") + public void testAnnotationWithTypeParams() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/annotationEntry/annotationWithTypeParams.kt"); + } + + @TestMetadata("notAnnotation.kt") + public void testNotAnnotation() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/annotationEntry/notAnnotation.kt"); + } + + @TestMetadata("singleArgAnnotation.kt") + public void testSingleArgAnnotation() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/annotationEntry/singleArgAnnotation.kt"); + } + + @TestMetadata("singleNamedArgAnnotation.kt") + public void testSingleNamedArgAnnotation() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/annotationEntry/singleNamedArgAnnotation.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/createFromUsage/createClass/callExpression") + public static class CallExpression extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("callInAnnotationEntry.kt") + public void testCallInAnnotationEntry() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/callExpression/callInAnnotationEntry.kt"); + } + + @TestMetadata("callInLambda.kt") + public void testCallInLambda() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/callExpression/callInLambda.kt"); + } + + @TestMetadata("callInLocalFunNoReceiver.kt") + public void testCallInLocalFunNoReceiver() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/callExpression/callInLocalFunNoReceiver.kt"); + } + + @TestMetadata("callInMemberFunNoReceiver.kt") + public void testCallInMemberFunNoReceiver() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/callExpression/callInMemberFunNoReceiver.kt"); + } + + @TestMetadata("callInMemberValDelegateRuntime.kt") + public void testCallInMemberValDelegateRuntime() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/callExpression/callInMemberValDelegateRuntime.kt"); + } + + @TestMetadata("callInMemberVarDelegateRuntime.kt") + public void testCallInMemberVarDelegateRuntime() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/callExpression/callInMemberVarDelegateRuntime.kt"); + } + + @TestMetadata("callInWhenEntry.kt") + public void testCallInWhenEntry() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/callExpression/callInWhenEntry.kt"); + } + + @TestMetadata("callNoReceiver.kt") + public void testCallNoReceiver() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/callExpression/callNoReceiver.kt"); + } + + @TestMetadata("callWithClassQualifier.kt") + public void testCallWithClassQualifier() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/callExpression/callWithClassQualifier.kt"); + } + + @TestMetadata("callWithExplicitParamNames.kt") + public void testCallWithExplicitParamNames() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/callExpression/callWithExplicitParamNames.kt"); + } + + @TestMetadata("callWithExtraArgs.kt") + public void testCallWithExtraArgs() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/callExpression/callWithExtraArgs.kt"); + } + + @TestMetadata("callWithFinalSupertype.kt") + public void testCallWithFinalSupertype() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/callExpression/callWithFinalSupertype.kt"); + } + + @TestMetadata("callWithGenericReceiver.kt") + public void testCallWithGenericReceiver() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/callExpression/callWithGenericReceiver.kt"); + } + + @TestMetadata("callWithLambdaArg.kt") + public void testCallWithLambdaArg() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/callExpression/callWithLambdaArg.kt"); + } + + @TestMetadata("callWithLambdaArgOnly.kt") + public void testCallWithLambdaArgOnly() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/callExpression/callWithLambdaArgOnly.kt"); + } + + @TestMetadata("callWithLibClassQualifier.kt") + public void testCallWithLibClassQualifier() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/callExpression/callWithLibClassQualifier.kt"); + } + + @TestMetadata("callWithMissingArgs.kt") + public void testCallWithMissingArgs() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/callExpression/callWithMissingArgs.kt"); + } + + @TestMetadata("callWithObjectQualifier.kt") + public void testCallWithObjectQualifier() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/callExpression/callWithObjectQualifier.kt"); + } + + @TestMetadata("callWithPackageName.kt") + public void testCallWithPackageName() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/callExpression/callWithPackageName.kt"); + } + + @TestMetadata("callWithReceiver.kt") + public void testCallWithReceiver() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/callExpression/callWithReceiver.kt"); + } + + @TestMetadata("callWithSuperInterface.kt") + public void testCallWithSuperInterface() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/callExpression/callWithSuperInterface.kt"); + } + + @TestMetadata("callWithSuperclassNoConstructorParams.kt") + public void testCallWithSuperclassNoConstructorParams() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/callExpression/callWithSuperclassNoConstructorParams.kt"); + } + + @TestMetadata("callWithSuperclassWithConstructorParams.kt") + public void testCallWithSuperclassWithConstructorParams() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/callExpression/callWithSuperclassWithConstructorParams.kt"); + } + + @TestMetadata("callWithThisReceiverInClass.kt") + public void testCallWithThisReceiverInClass() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/callExpression/callWithThisReceiverInClass.kt"); + } + + @TestMetadata("callWithThisReceiverInExtension.kt") + public void testCallWithThisReceiverInExtension() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/callExpression/callWithThisReceiverInExtension.kt"); + } + + @TestMetadata("callWithThisReceiverInNestedClass1.kt") + public void testCallWithThisReceiverInNestedClass1() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/callExpression/callWithThisReceiverInNestedClass1.kt"); + } + + @TestMetadata("callWithThisReceiverInNestedClass2.kt") + public void testCallWithThisReceiverInNestedClass2() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/callExpression/callWithThisReceiverInNestedClass2.kt"); + } + + @TestMetadata("callWithTypeArgsInAnnotationEntry.kt") + public void testCallWithTypeArgsInAnnotationEntry() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/callExpression/callWithTypeArgsInAnnotationEntry.kt"); + } + + @TestMetadata("classWithLowerCase.kt") + public void testClassWithLowerCase() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/callExpression/classWithLowerCase.kt"); + } + + @TestMetadata("createNestedClass.kt") + public void testCreateNestedClass() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/callExpression/createNestedClass.kt"); + } + + @TestMetadata("createNestedClassInInner.kt") + public void testCreateNestedClassInInner() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/callExpression/createNestedClassInInner.kt"); + } + + @TestMetadata("expectedTypeBySuperFunction.kt") + public void testExpectedTypeBySuperFunction() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/callExpression/expectedTypeBySuperFunction.kt"); + } + + @TestMetadata("inReturn.kt") + public void testInReturn() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/callExpression/inReturn.kt"); + } + + @TestMetadata("inReturn2.kt") + public void testInReturn2() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/callExpression/inReturn2.kt"); + } + + @TestMetadata("notApplicableInReturn.kt") + public void testNotApplicableInReturn() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/callExpression/notApplicableInReturn.kt"); + } + + @TestMetadata("parameterClassIsInternal.kt") + public void testParameterClassIsInternal() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/callExpression/parameterClassIsInternal.kt"); + } + + @TestMetadata("parameterClassIsPrivate.kt") + public void testParameterClassIsPrivate() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/callExpression/parameterClassIsPrivate.kt"); + } + + @TestMetadata("parameterClassIsPublic.kt") + public void testParameterClassIsPublic() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/callExpression/parameterClassIsPublic.kt"); + } + + @TestMetadata("quotedName.kt") + public void testQuotedName() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/callExpression/quotedName.kt"); + } + + @TestMetadata("singleArgCallInAnnotationEntry.kt") + public void testSingleArgCallInAnnotationEntry() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/callExpression/singleArgCallInAnnotationEntry.kt"); + } + + @TestMetadata("singleNamedArgCallInAnnotationEntry.kt") + public void testSingleNamedArgCallInAnnotationEntry() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/callExpression/singleNamedArgCallInAnnotationEntry.kt"); + } + + @TestMetadata("unusedCallResult.kt") + public void testUnusedCallResult() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/callExpression/unusedCallResult.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/createFromUsage/createClass/delegationSpecifier") + public static class DelegationSpecifier extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("createSuperClassFromSuperTypeEntry.kt") + public void testCreateSuperClassFromSuperTypeEntry() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/delegationSpecifier/createSuperClassFromSuperTypeEntry.kt"); + } + + @TestMetadata("createSuperClassFromSuperTypeEntry2.kt") + public void testCreateSuperClassFromSuperTypeEntry2() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/delegationSpecifier/createSuperClassFromSuperTypeEntry2.kt"); + } + + @TestMetadata("createSuperClassFromSuperTypeEntry3.kt") + public void testCreateSuperClassFromSuperTypeEntry3() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/delegationSpecifier/createSuperClassFromSuperTypeEntry3.kt"); + } + + @TestMetadata("createSuperClassFromSuperTypeEntryForAnnotation.kt") + public void testCreateSuperClassFromSuperTypeEntryForAnnotation() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/delegationSpecifier/createSuperClassFromSuperTypeEntryForAnnotation.kt"); + } + + @TestMetadata("createSuperClassFromSuperTypeEntryForEnum.kt") + public void testCreateSuperClassFromSuperTypeEntryForEnum() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/delegationSpecifier/createSuperClassFromSuperTypeEntryForEnum.kt"); + } + + @TestMetadata("createSuperClassFromSuperTypeEntryForInline.kt") + public void testCreateSuperClassFromSuperTypeEntryForInline() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/delegationSpecifier/createSuperClassFromSuperTypeEntryForInline.kt"); + } + + @TestMetadata("createSuperclassInsideSubclass.kt") + public void testCreateSuperclassInsideSubclass() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/delegationSpecifier/createSuperclassInsideSubclass.kt"); + } + + @TestMetadata("delegatorToSupercallNoReceiver.kt") + public void testDelegatorToSupercallNoReceiver() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/delegationSpecifier/delegatorToSupercallNoReceiver.kt"); + } + + @TestMetadata("delegatorToSupercallWithClassQualifier.kt") + public void testDelegatorToSupercallWithClassQualifier() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/delegationSpecifier/delegatorToSupercallWithClassQualifier.kt"); + } + + @TestMetadata("delegatorToSupercallWithPackageQualifier.kt") + public void testDelegatorToSupercallWithPackageQualifier() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/delegationSpecifier/delegatorToSupercallWithPackageQualifier.kt"); + } + + @TestMetadata("delegatorToSupercallWithParamNames.kt") + public void testDelegatorToSupercallWithParamNames() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/delegationSpecifier/delegatorToSupercallWithParamNames.kt"); + } + + @TestMetadata("delegatorToSupercallWithTypeParams.kt") + public void testDelegatorToSupercallWithTypeParams() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/delegationSpecifier/delegatorToSupercallWithTypeParams.kt"); + } + + @TestMetadata("interfaceDelegatorToSuperclass.kt") + public void testInterfaceDelegatorToSuperclass() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/delegationSpecifier/interfaceDelegatorToSuperclass.kt"); + } + + @TestMetadata("interfaceDelegatorToSuperclass2.kt") + public void testInterfaceDelegatorToSuperclass2() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/delegationSpecifier/interfaceDelegatorToSuperclass2.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/createFromUsage/createClass/importDirective") + public static class ImportDirective extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("annotationInPackage.kt") + public void testAnnotationInPackage() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/importDirective/annotationInPackage.kt"); + } + + @TestMetadata("annotationWithQualifier.kt") + public void testAnnotationWithQualifier() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/importDirective/annotationWithQualifier.kt"); + } + + @TestMetadata("classInPackage.kt") + public void testClassInPackage() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/importDirective/classInPackage.kt"); + } + + @TestMetadata("classWithQualifier.kt") + public void testClassWithQualifier() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/importDirective/classWithQualifier.kt"); + } + + @TestMetadata("enumEntryInEnum.kt") + public void testEnumEntryInEnum() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/importDirective/enumEntryInEnum.kt"); + } + + @TestMetadata("enumEntryInPackage.kt") + public void testEnumEntryInPackage() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/importDirective/enumEntryInPackage.kt"); + } + + @TestMetadata("enumEntryWithQualifier.kt") + public void testEnumEntryWithQualifier() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/importDirective/enumEntryWithQualifier.kt"); + } + + @TestMetadata("enumInPackage.kt") + public void testEnumInPackage() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/importDirective/enumInPackage.kt"); + } + + @TestMetadata("enumWithQualifier.kt") + public void testEnumWithQualifier() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/importDirective/enumWithQualifier.kt"); + } + + @TestMetadata("interfaceInPackage.kt") + public void testInterfaceInPackage() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/importDirective/interfaceInPackage.kt"); + } + + @TestMetadata("interfaceWithQualifier.kt") + public void testInterfaceWithQualifier() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/importDirective/interfaceWithQualifier.kt"); + } + + @TestMetadata("objectInPackage.kt") + public void testObjectInPackage() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/importDirective/objectInPackage.kt"); + } + + @TestMetadata("objectWithQualifier.kt") + public void testObjectWithQualifier() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/importDirective/objectWithQualifier.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/createFromUsage/createClass/referenceExpression") + public static class ReferenceExpression extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("annotationByClassLiteral.kt") + public void testAnnotationByClassLiteral() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/referenceExpression/annotationByClassLiteral.kt"); + } + + @TestMetadata("annotationNoReceiver.kt") + public void testAnnotationNoReceiver() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/referenceExpression/annotationNoReceiver.kt"); + } + + @TestMetadata("classByClassLiteral.kt") + public void testClassByClassLiteral() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/referenceExpression/classByClassLiteral.kt"); + } + + @TestMetadata("classByNestedQualifier.kt") + public void testClassByNestedQualifier() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/referenceExpression/classByNestedQualifier.kt"); + } + + @TestMetadata("classByQualifier.kt") + public void testClassByQualifier() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/referenceExpression/classByQualifier.kt"); + } + + @TestMetadata("classInPackage.kt") + public void testClassInPackage() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/referenceExpression/classInPackage.kt"); + } + + @TestMetadata("classInPrimaryConstructor.kt") + public void testClassInPrimaryConstructor() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/referenceExpression/classInPrimaryConstructor.kt"); + } + + @TestMetadata("classNoReceiver.kt") + public void testClassNoReceiver() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/referenceExpression/classNoReceiver.kt"); + } + + @TestMetadata("classWithQualifier.kt") + public void testClassWithQualifier() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/referenceExpression/classWithQualifier.kt"); + } + + @TestMetadata("classWithReceiver.kt") + public void testClassWithReceiver() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/referenceExpression/classWithReceiver.kt"); + } + + @TestMetadata("createNestedObject.kt") + public void testCreateNestedObject() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/referenceExpression/createNestedObject.kt"); + } + + @TestMetadata("createNestedObjectInInner.kt") + public void testCreateNestedObjectInInner() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/referenceExpression/createNestedObjectInInner.kt"); + } + + @TestMetadata("enumByClassLiteral.kt") + public void testEnumByClassLiteral() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/referenceExpression/enumByClassLiteral.kt"); + } + + @TestMetadata("enumByQualifier.kt") + public void testEnumByQualifier() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/referenceExpression/enumByQualifier.kt"); + } + + @TestMetadata("enumEntryAddComma.kt") + public void testEnumEntryAddComma() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/referenceExpression/enumEntryAddComma.kt"); + } + + @TestMetadata("enumEntryHasComma.kt") + public void testEnumEntryHasComma() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/referenceExpression/enumEntryHasComma.kt"); + } + + @TestMetadata("enumEntryHasCommaAndSemicolon.kt") + public void testEnumEntryHasCommaAndSemicolon() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/referenceExpression/enumEntryHasCommaAndSemicolon.kt"); + } + + @TestMetadata("enumEntryHasCommaAndSemicolon2.kt") + public void testEnumEntryHasCommaAndSemicolon2() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/referenceExpression/enumEntryHasCommaAndSemicolon2.kt"); + } + + @TestMetadata("enumEntryHasNoLineBreak.kt") + public void testEnumEntryHasNoLineBreak() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/referenceExpression/enumEntryHasNoLineBreak.kt"); + } + + @TestMetadata("enumEntryHasSemicolon.kt") + public void testEnumEntryHasSemicolon() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/referenceExpression/enumEntryHasSemicolon.kt"); + } + + @TestMetadata("enumEntryNoReceiver.kt") + public void testEnumEntryNoReceiver() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/referenceExpression/enumEntryNoReceiver.kt"); + } + + @TestMetadata("enumEntryWithEnumQualifier.kt") + public void testEnumEntryWithEnumQualifier() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/referenceExpression/enumEntryWithEnumQualifier.kt"); + } + + @TestMetadata("enumEntryWithEnumQualifierAndParams.kt") + public void testEnumEntryWithEnumQualifierAndParams() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/referenceExpression/enumEntryWithEnumQualifierAndParams.kt"); + } + + @TestMetadata("enumEntryWithEnumSuperclass.kt") + public void testEnumEntryWithEnumSuperclass() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/referenceExpression/enumEntryWithEnumSuperclass.kt"); + } + + @TestMetadata("enumEntryWithQualifier.kt") + public void testEnumEntryWithQualifier() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/referenceExpression/enumEntryWithQualifier.kt"); + } + + @TestMetadata("enumEntryWithReceiver.kt") + public void testEnumEntryWithReceiver() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/referenceExpression/enumEntryWithReceiver.kt"); + } + + @TestMetadata("enumEntryWithSuperclass.kt") + public void testEnumEntryWithSuperclass() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/referenceExpression/enumEntryWithSuperclass.kt"); + } + + @TestMetadata("enumInBinaryExpression.kt") + public void testEnumInBinaryExpression() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/referenceExpression/enumInBinaryExpression.kt"); + } + + @TestMetadata("enumNoReceiver.kt") + public void testEnumNoReceiver() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/referenceExpression/enumNoReceiver.kt"); + } + + @TestMetadata("interfaceByClassLiteral.kt") + public void testInterfaceByClassLiteral() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/referenceExpression/interfaceByClassLiteral.kt"); + } + + @TestMetadata("interfaceByQualifier.kt") + public void testInterfaceByQualifier() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/referenceExpression/interfaceByQualifier.kt"); + } + + @TestMetadata("interfaceNoReceiver.kt") + public void testInterfaceNoReceiver() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/referenceExpression/interfaceNoReceiver.kt"); + } + + @TestMetadata("objectByClassLiteral.kt") + public void testObjectByClassLiteral() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/referenceExpression/objectByClassLiteral.kt"); + } + + @TestMetadata("objectByQualifier.kt") + public void testObjectByQualifier() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/referenceExpression/objectByQualifier.kt"); + } + + @TestMetadata("objectForEnum.kt") + public void testObjectForEnum() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/referenceExpression/objectForEnum.kt"); + } + + @TestMetadata("objectForEnumInArgument.kt") + public void testObjectForEnumInArgument() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/referenceExpression/objectForEnumInArgument.kt"); + } + + @TestMetadata("objectForEnumInEquals.kt") + public void testObjectForEnumInEquals() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/referenceExpression/objectForEnumInEquals.kt"); + } + + @TestMetadata("objectInPackage.kt") + public void testObjectInPackage() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/referenceExpression/objectInPackage.kt"); + } + + @TestMetadata("objectNoReceiver.kt") + public void testObjectNoReceiver() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/referenceExpression/objectNoReceiver.kt"); + } + + @TestMetadata("objectWithQualifier.kt") + public void testObjectWithQualifier() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/referenceExpression/objectWithQualifier.kt"); + } + + @TestMetadata("objectWithReceiver.kt") + public void testObjectWithReceiver() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/referenceExpression/objectWithReceiver.kt"); + } + + @TestMetadata("objectWithSuperclass.kt") + public void testObjectWithSuperclass() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/referenceExpression/objectWithSuperclass.kt"); + } + + @TestMetadata("objectWithSuperinterface.kt") + public void testObjectWithSuperinterface() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/referenceExpression/objectWithSuperinterface.kt"); + } + + @TestMetadata("recursiveBound.kt") + public void testRecursiveBound() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/referenceExpression/recursiveBound.kt"); + } + + @TestMetadata("unusedReference.kt") + public void testUnusedReference() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/referenceExpression/unusedReference.kt"); + } + + @TestMetadata("valDelegateExpressionRuntime.kt") + public void testValDelegateExpressionRuntime() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/referenceExpression/valDelegateExpressionRuntime.kt"); + } + + @TestMetadata("varDelegateExpressionRuntime.kt") + public void testVarDelegateExpressionRuntime() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/referenceExpression/varDelegateExpressionRuntime.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/createFromUsage/createClass/typeReference") + public static class TypeReference extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("annotationNotQualifierNoTypeArgs.kt") + public void testAnnotationNotQualifierNoTypeArgs() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/typeReference/annotationNotQualifierNoTypeArgs.kt"); + } + + @TestMetadata("annotationNotQualifierWithTypeArgs.kt") + public void testAnnotationNotQualifierWithTypeArgs() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/typeReference/annotationNotQualifierWithTypeArgs.kt"); + } + + @TestMetadata("annotationQualifierNoTypeArgs.kt") + public void testAnnotationQualifierNoTypeArgs() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/typeReference/annotationQualifierNoTypeArgs.kt"); + } + + @TestMetadata("classCurrentPackageReceiver.kt") + public void testClassCurrentPackageReceiver() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/typeReference/classCurrentPackageReceiver.kt"); + } + + @TestMetadata("classLibTypeReceiver.kt") + public void testClassLibTypeReceiver() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/typeReference/classLibTypeReceiver.kt"); + } + + @TestMetadata("classNotQualifierNoTypeArgs.kt") + public void testClassNotQualifierNoTypeArgs() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/typeReference/classNotQualifierNoTypeArgs.kt"); + } + + @TestMetadata("classNotQualifierWithStarProjection.kt") + public void testClassNotQualifierWithStarProjection() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/typeReference/classNotQualifierWithStarProjection.kt"); + } + + @TestMetadata("classNotQualifierWithTypeArgs.kt") + public void testClassNotQualifierWithTypeArgs() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/typeReference/classNotQualifierWithTypeArgs.kt"); + } + + @TestMetadata("classQualifierNoTypeArgs.kt") + public void testClassQualifierNoTypeArgs() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/typeReference/classQualifierNoTypeArgs.kt"); + } + + @TestMetadata("classUserTypeReceiver.kt") + public void testClassUserTypeReceiver() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/typeReference/classUserTypeReceiver.kt"); + } + + @TestMetadata("classUserTypeReceiverNoBody.kt") + public void testClassUserTypeReceiverNoBody() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/typeReference/classUserTypeReceiverNoBody.kt"); + } + + @TestMetadata("createNestedClass.kt") + public void testCreateNestedClass() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/typeReference/createNestedClass.kt"); + } + + @TestMetadata("createNestedClassInInner.kt") + public void testCreateNestedClassInInner() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/typeReference/createNestedClassInInner.kt"); + } + + @TestMetadata("enumEntryNotQualifierNoTypeArgs.kt") + public void testEnumEntryNotQualifierNoTypeArgs() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/typeReference/enumEntryNotQualifierNoTypeArgs.kt"); + } + + @TestMetadata("enumNotQualifierNoTypeArgs.kt") + public void testEnumNotQualifierNoTypeArgs() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/typeReference/enumNotQualifierNoTypeArgs.kt"); + } + + @TestMetadata("enumNotQualifierWithTypeArgs.kt") + public void testEnumNotQualifierWithTypeArgs() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/typeReference/enumNotQualifierWithTypeArgs.kt"); + } + + @TestMetadata("interfaceNotQualifierNoTypeArgs.kt") + public void testInterfaceNotQualifierNoTypeArgs() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/typeReference/interfaceNotQualifierNoTypeArgs.kt"); + } + + @TestMetadata("nestedClassByTypeArgumentRefNoBody.kt") + public void testNestedClassByTypeArgumentRefNoBody() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/typeReference/nestedClassByTypeArgumentRefNoBody.kt"); + } + + @TestMetadata("nestedClassByTypeArgumentRefWithBody.kt") + public void testNestedClassByTypeArgumentRefWithBody() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/typeReference/nestedClassByTypeArgumentRefWithBody.kt"); + } + + @TestMetadata("noAnnotationForTypeBound.kt") + public void testNoAnnotationForTypeBound() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/typeReference/noAnnotationForTypeBound.kt"); + } + + @TestMetadata("noAnnotationForTypeConstraint.kt") + public void testNoAnnotationForTypeConstraint() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/typeReference/noAnnotationForTypeConstraint.kt"); + } + + @TestMetadata("noEnumForTypeBound.kt") + public void testNoEnumForTypeBound() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/typeReference/noEnumForTypeBound.kt"); + } + + @TestMetadata("noEnumForTypeConstraint.kt") + public void testNoEnumForTypeConstraint() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/typeReference/noEnumForTypeConstraint.kt"); + } + + @TestMetadata("noObjectForTypeBound.kt") + public void testNoObjectForTypeBound() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/typeReference/noObjectForTypeBound.kt"); + } + + @TestMetadata("noObjectForTypeConstraint.kt") + public void testNoObjectForTypeConstraint() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/typeReference/noObjectForTypeConstraint.kt"); + } + + @TestMetadata("objectNotQualifierNoTypeArgs.kt") + public void testObjectNotQualifierNoTypeArgs() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/typeReference/objectNotQualifierNoTypeArgs.kt"); + } + + @TestMetadata("objectNotQualifierWithTypeArgs.kt") + public void testObjectNotQualifierWithTypeArgs() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/typeReference/objectNotQualifierWithTypeArgs.kt"); + } + + @TestMetadata("objectQualifierNoTypeArgs.kt") + public void testObjectQualifierNoTypeArgs() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/typeReference/objectQualifierNoTypeArgs.kt"); + } + + @TestMetadata("typeArgumentWithBound.kt") + public void testTypeArgumentWithBound() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/typeReference/typeArgumentWithBound.kt"); + } + + @TestMetadata("typeArgumentWithMultipleBounds.kt") + public void testTypeArgumentWithMultipleBounds() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/typeReference/typeArgumentWithMultipleBounds.kt"); + } + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call") + public abstract static class Call extends AbstractHighLevelQuickFixTest { + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/abstract") + public static class Abstract extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("classNoExplicitReceiver.kt") + public void testClassNoExplicitReceiver() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/abstract/classNoExplicitReceiver.kt"); + } + + @TestMetadata("companion.kt") + public void testCompanion() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/abstract/companion.kt"); + } + + @TestMetadata("explicitReceiverOfContainingClass.kt") + public void testExplicitReceiverOfContainingClass() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/abstract/explicitReceiverOfContainingClass.kt"); + } + + @TestMetadata("fromDelegate.kt") + public void testFromDelegate() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/abstract/fromDelegate.kt"); + } + + @TestMetadata("fromPrimaryConstructorDefaultValue.kt") + public void testFromPrimaryConstructorDefaultValue() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/abstract/fromPrimaryConstructorDefaultValue.kt"); + } + + @TestMetadata("fromSuperList.kt") + public void testFromSuperList() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/abstract/fromSuperList.kt"); + } + + @TestMetadata("inAbstractSuperclass.kt") + public void testInAbstractSuperclass() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/abstract/inAbstractSuperclass.kt"); + } + + @TestMetadata("inBaseInterface.kt") + public void testInBaseInterface() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/abstract/inBaseInterface.kt"); + } + + @TestMetadata("inBaseInterfaceWithReceiver.kt") + public void testInBaseInterfaceWithReceiver() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/abstract/inBaseInterfaceWithReceiver.kt"); + } + + @TestMetadata("inBaseInterfaceWithReceiver2.kt") + public void testInBaseInterfaceWithReceiver2() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/abstract/inBaseInterfaceWithReceiver2.kt"); + } + + @TestMetadata("interfaceNoExplicitReceiver.kt") + public void testInterfaceNoExplicitReceiver() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/abstract/interfaceNoExplicitReceiver.kt"); + } + + @TestMetadata("noAbstractSuperclass.kt") + public void testNoAbstractSuperclass() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/abstract/noAbstractSuperclass.kt"); + } + + @TestMetadata("notAbstractClass.kt") + public void testNotAbstractClass() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/abstract/notAbstractClass.kt"); + } + + @TestMetadata("notWritableAbstractSuperclass.kt") + public void testNotWritableAbstractSuperclass() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/abstract/notWritableAbstractSuperclass.kt"); + } + + @TestMetadata("otherExplicitReceiver.kt") + public void testOtherExplicitReceiver() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/abstract/otherExplicitReceiver.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/extension") + public static class Extension extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("approximateAnonymousObjectRuntime.kt") + public void testApproximateAnonymousObjectRuntime() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/extension/approximateAnonymousObjectRuntime.kt"); + } + + @TestMetadata("approximateLocalClassRuntime.kt") + public void testApproximateLocalClassRuntime() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/extension/approximateLocalClassRuntime.kt"); + } + + @TestMetadata("brokenPsi.kt") + public void testBrokenPsi() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/extension/brokenPsi.kt"); + } + + @TestMetadata("brokenReceiver.kt") + public void testBrokenReceiver() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/extension/brokenReceiver.kt"); + } + + @TestMetadata("explicitVsImplicitReceiver.kt") + public void testExplicitVsImplicitReceiver() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/extension/explicitVsImplicitReceiver.kt"); + } + + @TestMetadata("extension.kt") + public void testExtension() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/extension/extension.kt"); + } + + @TestMetadata("extensionFunOnClassNoClassObject.kt") + public void testExtensionFunOnClassNoClassObject() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/extension/extensionFunOnClassNoClassObject.kt"); + } + + @TestMetadata("extensionFunOnClassNoClassObject2.kt") + public void testExtensionFunOnClassNoClassObject2() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/extension/extensionFunOnClassNoClassObject2.kt"); + } + + @TestMetadata("extensionFunOnGenericType.kt") + public void testExtensionFunOnGenericType() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/extension/extensionFunOnGenericType.kt"); + } + + @TestMetadata("extensionFunOnInterface.kt") + public void testExtensionFunOnInterface() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/extension/extensionFunOnInterface.kt"); + } + + @TestMetadata("extensionOfInt.kt") + public void testExtensionOfInt() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/extension/extensionOfInt.kt"); + } + + @TestMetadata("extensionPartialSubstitution.kt") + public void testExtensionPartialSubstitution() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/extension/extensionPartialSubstitution.kt"); + } + + @TestMetadata("extensionRefInImport.kt") + public void testExtensionRefInImport() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/extension/extensionRefInImport.kt"); + } + + @TestMetadata("extensionWithReceiverArg.kt") + public void testExtensionWithReceiverArg() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/extension/extensionWithReceiverArg.kt"); + } + + @TestMetadata("extensionWithTypeParameterAsReceiver.kt") + public void testExtensionWithTypeParameterAsReceiver() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/extension/extensionWithTypeParameterAsReceiver.kt"); + } + + @TestMetadata("funOnLibObject.kt") + public void testFunOnLibObject() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/extension/funOnLibObject.kt"); + } + + @TestMetadata("funOnLibType.kt") + public void testFunOnLibType() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/extension/funOnLibType.kt"); + } + + @TestMetadata("functionalTypeInReceiver.kt") + public void testFunctionalTypeInReceiver() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/extension/functionalTypeInReceiver.kt"); + } + + @TestMetadata("nullableReceiver.kt") + public void testNullableReceiver() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/extension/nullableReceiver.kt"); + } + + @TestMetadata("withGenerics.kt") + public void testWithGenerics() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/extension/withGenerics.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/member") + public static class Member extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("brokenPsi2.kt") + public void testBrokenPsi2() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/member/brokenPsi2.kt"); + } + + @TestMetadata("callWithLambdaArg.kt") + public void testCallWithLambdaArg() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/member/callWithLambdaArg.kt"); + } + + @TestMetadata("callWithLambdaArgOnly.kt") + public void testCallWithLambdaArgOnly() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/member/callWithLambdaArgOnly.kt"); + } + + @TestMetadata("doNotStripPrefix.kt") + public void testDoNotStripPrefix() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/member/doNotStripPrefix.kt"); + } + + @TestMetadata("fromExtensionFunction.kt") + public void testFromExtensionFunction() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/member/fromExtensionFunction.kt"); + } + + @TestMetadata("funExtraArgs.kt") + public void testFunExtraArgs() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/member/funExtraArgs.kt"); + } + + @TestMetadata("funMissingArgs.kt") + public void testFunMissingArgs() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/member/funMissingArgs.kt"); + } + + @TestMetadata("funOnClassNoClassObject.kt") + public void testFunOnClassNoClassObject() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/member/funOnClassNoClassObject.kt"); + } + + @TestMetadata("funOnClassNoClassObject2.kt") + public void testFunOnClassNoClassObject2() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/member/funOnClassNoClassObject2.kt"); + } + + @TestMetadata("funOnClassObject.kt") + public void testFunOnClassObject() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/member/funOnClassObject.kt"); + } + + @TestMetadata("funOnEnumClass.kt") + public void testFunOnEnumClass() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/member/funOnEnumClass.kt"); + } + + @TestMetadata("funOnEnumClass2.kt") + public void testFunOnEnumClass2() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/member/funOnEnumClass2.kt"); + } + + @TestMetadata("funOnInterface.kt") + public void testFunOnInterface() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/member/funOnInterface.kt"); + } + + @TestMetadata("funOnUserObject.kt") + public void testFunOnUserObject() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/member/funOnUserObject.kt"); + } + + @TestMetadata("funOnUserType.kt") + public void testFunOnUserType() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/member/funOnUserType.kt"); + } + + @TestMetadata("funOnUserTypeWithDeclarations.kt") + public void testFunOnUserTypeWithDeclarations() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/member/funOnUserTypeWithDeclarations.kt"); + } + + @TestMetadata("funOnUserTypeWithTypeParams.kt") + public void testFunOnUserTypeWithTypeParams() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/member/funOnUserTypeWithTypeParams.kt"); + } + + @TestMetadata("funWithExplicitParamNamesOnUserType.kt") + public void testFunWithExplicitParamNamesOnUserType() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/member/funWithExplicitParamNamesOnUserType.kt"); + } + + @TestMetadata("funWithNullableParamType.kt") + public void testFunWithNullableParamType() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/member/funWithNullableParamType.kt"); + } + + @TestMetadata("funWithNullableType.kt") + public void testFunWithNullableType() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/member/funWithNullableType.kt"); + } + + @TestMetadata("funWithNullableTypeParameter.kt") + public void testFunWithNullableTypeParameter() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/member/funWithNullableTypeParameter.kt"); + } + + @TestMetadata("funWithSameTypesParams.kt") + public void testFunWithSameTypesParams() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/member/funWithSameTypesParams.kt"); + } + + @TestMetadata("implicitThisInLocalClassWithTypeParameterFromExtensionParent.kt") + public void testImplicitThisInLocalClassWithTypeParameterFromExtensionParent() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/member/implicitThisInLocalClassWithTypeParameterFromExtensionParent.kt"); + } + + @TestMetadata("implicitThisInNestedClassWithTypeParameterFromParent.kt") + public void testImplicitThisInNestedClassWithTypeParameterFromParent() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/member/implicitThisInNestedClassWithTypeParameterFromParent.kt"); + } + + @TestMetadata("inconsistentTypes.kt") + public void testInconsistentTypes() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/member/inconsistentTypes.kt"); + } + + @TestMetadata("innerClass.kt") + public void testInnerClass() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/member/innerClass.kt"); + } + + @TestMetadata("propertyOnUserType.kt") + public void testPropertyOnUserType() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/member/propertyOnUserType.kt"); + } + + @TestMetadata("qualifiedCallInStringTemplateRuntime.kt") + public void testQualifiedCallInStringTemplateRuntime() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/member/qualifiedCallInStringTemplateRuntime.kt"); + } + + @TestMetadata("receiverWithSmartCast.kt") + public void testReceiverWithSmartCast() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/member/receiverWithSmartCast.kt"); + } + + @TestMetadata("stripPrefix.kt") + public void testStripPrefix() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/member/stripPrefix.kt"); + } + + @TestMetadata("thisInClass.kt") + public void testThisInClass() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/member/thisInClass.kt"); + } + + @TestMetadata("thisInExtension.kt") + public void testThisInExtension() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/member/thisInExtension.kt"); + } + + @TestMetadata("thisInNestedClass1.kt") + public void testThisInNestedClass1() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/member/thisInNestedClass1.kt"); + } + + @TestMetadata("thisInNestedClass2.kt") + public void testThisInNestedClass2() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/member/thisInNestedClass2.kt"); + } + + @TestMetadata("unknownType.kt") + public void testUnknownType() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/member/unknownType.kt"); + } + + @TestMetadata("unresolvedSupertype.kt") + public void testUnresolvedSupertype() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/member/unresolvedSupertype.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/simple") + public static class Simple extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("argumentTypeMismatch.kt") + public void testArgumentTypeMismatch() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/simple/argumentTypeMismatch.kt"); + } + + @TestMetadata("binaryOperationInCall.kt") + public void testBinaryOperationInCall() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/simple/binaryOperationInCall.kt"); + } + + @TestMetadata("callInAnnotationEntry.kt") + public void testCallInAnnotationEntry() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/simple/callInAnnotationEntry.kt"); + } + + @TestMetadata("callInStringTemplateRuntime.kt") + public void testCallInStringTemplateRuntime() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/simple/callInStringTemplateRuntime.kt"); + } + + @TestMetadata("callWithClassLiteral.kt") + public void testCallWithClassLiteral() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/simple/callWithClassLiteral.kt"); + } + + @TestMetadata("funInInlineInternalFun.kt") + public void testFunInInlineInternalFun() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/simple/funInInlineInternalFun.kt"); + } + + @TestMetadata("funInInlinePrivateFun.kt") + public void testFunInInlinePrivateFun() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/simple/funInInlinePrivateFun.kt"); + } + + @TestMetadata("funInInlineProtectedFun.kt") + public void testFunInInlineProtectedFun() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/simple/funInInlineProtectedFun.kt"); + } + + @TestMetadata("funInInlinePublicFun.kt") + public void testFunInInlinePublicFun() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/simple/funInInlinePublicFun.kt"); + } + + @TestMetadata("funPlacement.kt") + public void testFunPlacement() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/simple/funPlacement.kt"); + } + + @TestMetadata("funWithPackageName.kt") + public void testFunWithPackageName() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/simple/funWithPackageName.kt"); + } + + @TestMetadata("functionalType.kt") + public void testFunctionalType() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/simple/functionalType.kt"); + } + + @TestMetadata("functionalTypeFromCallable.kt") + public void testFunctionalTypeFromCallable() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/simple/functionalTypeFromCallable.kt"); + } + + @TestMetadata("inAnonymousFunBlockWithExpectedType.kt") + public void testInAnonymousFunBlockWithExpectedType() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/simple/inAnonymousFunBlockWithExpectedType.kt"); + } + + @TestMetadata("inAnonymousFunExprWithExpectedType.kt") + public void testInAnonymousFunExprWithExpectedType() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/simple/inAnonymousFunExprWithExpectedType.kt"); + } + + @TestMetadata("inLambda.kt") + public void testInLambda() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/simple/inLambda.kt"); + } + + @TestMetadata("inLambdaWithExpectedType.kt") + public void testInLambdaWithExpectedType() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/simple/inLambdaWithExpectedType.kt"); + } + + @TestMetadata("inLambdaWithExpectedType2.kt") + public void testInLambdaWithExpectedType2() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/simple/inLambdaWithExpectedType2.kt"); + } + + @TestMetadata("inLambdaWithExpectedType3.kt") + public void testInLambdaWithExpectedType3() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/simple/inLambdaWithExpectedType3.kt"); + } + + @TestMetadata("inLambdaWithExpectedType4.kt") + public void testInLambdaWithExpectedType4() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/simple/inLambdaWithExpectedType4.kt"); + } + + @TestMetadata("inLambdaWithExpectedType5.kt") + public void testInLambdaWithExpectedType5() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/simple/inLambdaWithExpectedType5.kt"); + } + + @TestMetadata("insideIfCondition.kt") + public void testInsideIfCondition() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/simple/insideIfCondition.kt"); + } + + @TestMetadata("insideIfConditionWithNegation.kt") + public void testInsideIfConditionWithNegation() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/simple/insideIfConditionWithNegation.kt"); + } + + @TestMetadata("insideWhen.kt") + public void testInsideWhen() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/simple/insideWhen.kt"); + } + + @TestMetadata("kt10983.kt") + public void testKt10983() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/simple/kt10983.kt"); + } + + @TestMetadata("localFunNoReceiver.kt") + public void testLocalFunNoReceiver() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/simple/localFunNoReceiver.kt"); + } + + @TestMetadata("memberFunNoReceiver.kt") + public void testMemberFunNoReceiver() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/simple/memberFunNoReceiver.kt"); + } + + @TestMetadata("memberLocalVarDelegateRuntime.kt") + public void testMemberLocalVarDelegateRuntime() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/simple/memberLocalVarDelegateRuntime.kt"); + } + + @TestMetadata("memberValDelegateRuntime.kt") + public void testMemberValDelegateRuntime() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/simple/memberValDelegateRuntime.kt"); + } + + @TestMetadata("memberVarDelegateRuntime.kt") + public void testMemberVarDelegateRuntime() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/simple/memberVarDelegateRuntime.kt"); + } + + @TestMetadata("noInferCheck.kt") + public void testNoInferCheck() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/simple/noInferCheck.kt"); + } + + @TestMetadata("notExactArgument.kt") + public void testNotExactArgument() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/simple/notExactArgument.kt"); + } + + @TestMetadata("objectMemberFunNoReceiver.kt") + public void testObjectMemberFunNoReceiver() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/simple/objectMemberFunNoReceiver.kt"); + } + + @TestMetadata("privateForMembers.kt") + public void testPrivateForMembers() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/simple/privateForMembers.kt"); + } + + @TestMetadata("refInImport.kt") + public void testRefInImport() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/simple/refInImport.kt"); + } + + @TestMetadata("smartCastWithIs.kt") + public void testSmartCastWithIs() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/simple/smartCastWithIs.kt"); + } + + @TestMetadata("smartCastWithNullCheck.kt") + public void testSmartCastWithNullCheck() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/simple/smartCastWithNullCheck.kt"); + } + + @TestMetadata("topLevelFunFromConstructorDefaultParameterValue.kt") + public void testTopLevelFunFromConstructorDefaultParameterValue() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/simple/topLevelFunFromConstructorDefaultParameterValue.kt"); + } + + @TestMetadata("topLevelFunFromConstructorDelegation.kt") + public void testTopLevelFunFromConstructorDelegation() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/simple/topLevelFunFromConstructorDelegation.kt"); + } + + @TestMetadata("topLevelFunFromDelegate.kt") + public void testTopLevelFunFromDelegate() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/simple/topLevelFunFromDelegate.kt"); + } + + @TestMetadata("topLevelFunNoReceiver.kt") + public void testTopLevelFunNoReceiver() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/simple/topLevelFunNoReceiver.kt"); + } + + @TestMetadata("topLevelFunPlacement.kt") + public void testTopLevelFunPlacement() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/simple/topLevelFunPlacement.kt"); + } + + @TestMetadata("unaryOperationInCall.kt") + public void testUnaryOperationInCall() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/simple/unaryOperationInCall.kt"); + } + + @TestMetadata("unitFun.kt") + public void testUnitFun() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/simple/unitFun.kt"); + } + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/createFromUsage/createVariable") + public abstract static class CreateVariable extends AbstractHighLevelQuickFixTest { + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable") + public static class LocalVariable extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("assignedInFun.kt") + public void testAssignedInFun() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/assignedInFun.kt"); + } + + @TestMetadata("callableRef.kt") + public void testCallableRef() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/callableRef.kt"); + } + + @TestMetadata("inAccessor.kt") + public void testInAccessor() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/inAccessor.kt"); + } + + @TestMetadata("inAccessorWithExpressionBody.kt") + public void testInAccessorWithExpressionBody() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/inAccessorWithExpressionBody.kt"); + } + + @TestMetadata("inAnnotation.kt") + public void testInAnnotation() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/inAnnotation.kt"); + } + + @TestMetadata("inAnnotationValue.kt") + public void testInAnnotationValue() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/inAnnotationValue.kt"); + } + + @TestMetadata("inBinaryOperation.kt") + public void testInBinaryOperation() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/inBinaryOperation.kt"); + } + + @TestMetadata("inClass.kt") + public void testInClass() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/inClass.kt"); + } + + @TestMetadata("inDefaultValue.kt") + public void testInDefaultValue() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/inDefaultValue.kt"); + } + + @TestMetadata("inDefaultValueLocalFun.kt") + public void testInDefaultValueLocalFun() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/inDefaultValueLocalFun.kt"); + } + + @TestMetadata("inFun.kt") + public void testInFun() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/inFun.kt"); + } + + @TestMetadata("inFunWithExpressionBody.kt") + public void testInFunWithExpressionBody() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/inFunWithExpressionBody.kt"); + } + + @TestMetadata("inFunWithExpressionBodyNoExplicitType.kt") + public void testInFunWithExpressionBodyNoExplicitType() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/inFunWithExpressionBodyNoExplicitType.kt"); + } + + @TestMetadata("inLabelRef.kt") + public void testInLabelRef() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/inLabelRef.kt"); + } + + @TestMetadata("inLambdaNoParams.kt") + public void testInLambdaNoParams() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/inLambdaNoParams.kt"); + } + + @TestMetadata("inLambdaWithParams.kt") + public void testInLambdaWithParams() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/inLambdaWithParams.kt"); + } + + @TestMetadata("inMultiLineLambdaNoParams.kt") + public void testInMultiLineLambdaNoParams() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/inMultiLineLambdaNoParams.kt"); + } + + @TestMetadata("inMultiLineLambdaWithParams.kt") + public void testInMultiLineLambdaWithParams() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/inMultiLineLambdaWithParams.kt"); + } + + @TestMetadata("inWhen.kt") + public void testInWhen() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/inWhen.kt"); + } + + @TestMetadata("localWithPackageName.kt") + public void testLocalWithPackageName() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/localWithPackageName.kt"); + } + + @TestMetadata("nonIdentifier.kt") + public void testNonIdentifier() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/nonIdentifier.kt"); + } + + @TestMetadata("nullableType.kt") + public void testNullableType() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/nullableType.kt"); + } + + @TestMetadata("onTopLevel.kt") + public void testOnTopLevel() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/onTopLevel.kt"); + } + + @TestMetadata("positionNextToUsage.kt") + public void testPositionNextToUsage() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/positionNextToUsage.kt"); + } + + @TestMetadata("qualifiedInFun.kt") + public void testQualifiedInFun() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/qualifiedInFun.kt"); + } + + @TestMetadata("unitTypedInFun.kt") + public void testUnitTypedInFun() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/unitTypedInFun.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/parameter") + public static class Parameter extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("annotationClass.kt") + public void testAnnotationClass() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/annotationClass.kt"); + } + + @TestMetadata("annotationClass2.kt") + public void testAnnotationClass2() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/annotationClass2.kt"); + } + + @TestMetadata("assignedInFun.kt") + public void testAssignedInFun() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/assignedInFun.kt"); + } + + @TestMetadata("assignedInFunInClass.kt") + public void testAssignedInFunInClass() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/assignedInFunInClass.kt"); + } + + @TestMetadata("callableRef.kt") + public void testCallableRef() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/callableRef.kt"); + } + + @TestMetadata("dataClassPropertyByDestructuringEntry.kt") + public void testDataClassPropertyByDestructuringEntry() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/dataClassPropertyByDestructuringEntry.kt"); + } + + @TestMetadata("dataClassPropertyByDestructuringEntryWithSkippedIndex.kt") + public void testDataClassPropertyByDestructuringEntryWithSkippedIndex() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/dataClassPropertyByDestructuringEntryWithSkippedIndex.kt"); + } + + @TestMetadata("dataClassPropertyByDestructuringEntryWithType.kt") + public void testDataClassPropertyByDestructuringEntryWithType() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/dataClassPropertyByDestructuringEntryWithType.kt"); + } + + @TestMetadata("dataClassPropertyByNamedArgument.kt") + public void testDataClassPropertyByNamedArgument() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/dataClassPropertyByNamedArgument.kt"); + } + + @TestMetadata("fromDelegateConstructorCall.kt") + public void testFromDelegateConstructorCall() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/fromDelegateConstructorCall.kt"); + } + + @TestMetadata("inAccessorInClass.kt") + public void testInAccessorInClass() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/inAccessorInClass.kt"); + } + + @TestMetadata("inAccessorInClassObject.kt") + public void testInAccessorInClassObject() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/inAccessorInClassObject.kt"); + } + + @TestMetadata("inAccessorInGenClass.kt") + public void testInAccessorInGenClass() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/inAccessorInGenClass.kt"); + } + + @TestMetadata("inAccessorInInterface.kt") + public void testInAccessorInInterface() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/inAccessorInInterface.kt"); + } + + @TestMetadata("inAccessorInObject.kt") + public void testInAccessorInObject() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/inAccessorInObject.kt"); + } + + @TestMetadata("inAccessorNoClass.kt") + public void testInAccessorNoClass() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/inAccessorNoClass.kt"); + } + + @TestMetadata("inAccessorWithExpressionBodyInClass.kt") + public void testInAccessorWithExpressionBodyInClass() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/inAccessorWithExpressionBodyInClass.kt"); + } + + @TestMetadata("inAnonymousObject.kt") + public void testInAnonymousObject() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/inAnonymousObject.kt"); + } + + @TestMetadata("inAnonymousObjectInSecondaryConstructor.kt") + public void testInAnonymousObjectInSecondaryConstructor() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/inAnonymousObjectInSecondaryConstructor.kt"); + } + + @TestMetadata("inBinaryOperation.kt") + public void testInBinaryOperation() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/inBinaryOperation.kt"); + } + + @TestMetadata("inClassInitializer.kt") + public void testInClassInitializer() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/inClassInitializer.kt"); + } + + @TestMetadata("inClassObjectInitializer.kt") + public void testInClassObjectInitializer() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/inClassObjectInitializer.kt"); + } + + @TestMetadata("inFun.kt") + public void testInFun() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/inFun.kt"); + } + + @TestMetadata("inFunFromDefaultValue.kt") + public void testInFunFromDefaultValue() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/inFunFromDefaultValue.kt"); + } + + @TestMetadata("inFunInClass.kt") + public void testInFunInClass() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/inFunInClass.kt"); + } + + @TestMetadata("inFunInGenClass.kt") + public void testInFunInGenClass() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/inFunInGenClass.kt"); + } + + @TestMetadata("inGenAccessorInClass.kt") + public void testInGenAccessorInClass() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/inGenAccessorInClass.kt"); + } + + @TestMetadata("inGenAccessorInGenClass.kt") + public void testInGenAccessorInGenClass() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/inGenAccessorInGenClass.kt"); + } + + @TestMetadata("inGenFunInClass.kt") + public void testInGenFunInClass() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/inGenFunInClass.kt"); + } + + @TestMetadata("inGenFunInGenClass.kt") + public void testInGenFunInGenClass() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/inGenFunInGenClass.kt"); + } + + @TestMetadata("inLabelRef.kt") + public void testInLabelRef() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/inLabelRef.kt"); + } + + @TestMetadata("inLambdaNoParams.kt") + public void testInLambdaNoParams() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/inLambdaNoParams.kt"); + } + + @TestMetadata("inLambdaWithIt.kt") + public void testInLambdaWithIt() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/inLambdaWithIt.kt"); + } + + @TestMetadata("inLambdaWithParams.kt") + public void testInLambdaWithParams() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/inLambdaWithParams.kt"); + } + + @TestMetadata("inLambdaWithTypedParams.kt") + public void testInLambdaWithTypedParams() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/inLambdaWithTypedParams.kt"); + } + + @TestMetadata("inMultiLineLambdaNoParams.kt") + public void testInMultiLineLambdaNoParams() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/inMultiLineLambdaNoParams.kt"); + } + + @TestMetadata("inPropertyInitializerInClass.kt") + public void testInPropertyInitializerInClass() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/inPropertyInitializerInClass.kt"); + } + + @TestMetadata("inPropertyInitializerInClassObject.kt") + public void testInPropertyInitializerInClassObject() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/inPropertyInitializerInClassObject.kt"); + } + + @TestMetadata("inPropertyInitializerInEnumClass.kt") + public void testInPropertyInitializerInEnumClass() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/inPropertyInitializerInEnumClass.kt"); + } + + @TestMetadata("inPropertyInitializerInEnumEntry.kt") + public void testInPropertyInitializerInEnumEntry() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/inPropertyInitializerInEnumEntry.kt"); + } + + @TestMetadata("inPropertyInitializerInGenClass.kt") + public void testInPropertyInitializerInGenClass() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/inPropertyInitializerInGenClass.kt"); + } + + @TestMetadata("inPropertyInitializerInNestedClass.kt") + public void testInPropertyInitializerInNestedClass() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/inPropertyInitializerInNestedClass.kt"); + } + + @TestMetadata("inPropertyInitializerInObject.kt") + public void testInPropertyInitializerInObject() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/inPropertyInitializerInObject.kt"); + } + + @TestMetadata("inPropertyInitializerNoClass.kt") + public void testInPropertyInitializerNoClass() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/inPropertyInitializerNoClass.kt"); + } + + @TestMetadata("inSecondaryConstructor.kt") + public void testInSecondaryConstructor() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/inSecondaryConstructor.kt"); + } + + @TestMetadata("namedArgInConstructorCall.kt") + public void testNamedArgInConstructorCall() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/namedArgInConstructorCall.kt"); + } + + @TestMetadata("namedArgInFunctionCall.kt") + public void testNamedArgInFunctionCall() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/namedArgInFunctionCall.kt"); + } + + @TestMetadata("nonIdentifier.kt") + public void testNonIdentifier() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/nonIdentifier.kt"); + } + + @TestMetadata("nullableType.kt") + public void testNullableType() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/nullableType.kt"); + } + + @TestMetadata("parameterFromClassDelegationSpecifier.kt") + public void testParameterFromClassDelegationSpecifier() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/parameterFromClassDelegationSpecifier.kt"); + } + + @TestMetadata("parameterFromEnumEntryDelegationSpecifier.kt") + public void testParameterFromEnumEntryDelegationSpecifier() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/parameterFromEnumEntryDelegationSpecifier.kt"); + } + + @TestMetadata("parameterFromObjectDelegationSpecifier.kt") + public void testParameterFromObjectDelegationSpecifier() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/parameterFromObjectDelegationSpecifier.kt"); + } + + @TestMetadata("qualifiedInFun.kt") + public void testQualifiedInFun() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/qualifiedInFun.kt"); + } + + @TestMetadata("quotedName.kt") + public void testQuotedName() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/quotedName.kt"); + } + + @TestMetadata("recursiveBound.kt") + public void testRecursiveBound() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/recursiveBound.kt"); + } + + @TestMetadata("unknownTypeInReturn.kt") + public void testUnknownTypeInReturn() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/unknownTypeInReturn.kt"); + } + + @TestMetadata("withPackageName.kt") + public void testWithPackageName() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/withPackageName.kt"); + } + + @TestMetadata("wrongReceiver.kt") + public void testWrongReceiver() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/wrongReceiver.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/primaryParameter") + public static class PrimaryParameter extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("destructuring.kt") + public void testDestructuring() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/primaryParameter/destructuring.kt"); + } + + @TestMetadata("fromCallExpression.kt") + public void testFromCallExpression() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/primaryParameter/fromCallExpression.kt"); + } + + @TestMetadata("fromDefaultValuePositionWithComma.kt") + public void testFromDefaultValuePositionWithComma() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/primaryParameter/fromDefaultValuePositionWithComma.kt"); + } + + @TestMetadata("fromDelegationCall.kt") + public void testFromDelegationCall() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/primaryParameter/fromDelegationCall.kt"); + } + + @TestMetadata("fromEnumConstant.kt") + public void testFromEnumConstant() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/primaryParameter/fromEnumConstant.kt"); + } + + @TestMetadata("fromParameterDefaultValue.kt") + public void testFromParameterDefaultValue() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/primaryParameter/fromParameterDefaultValue.kt"); + } + + @TestMetadata("insideInterface.kt") + public void testInsideInterface() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/primaryParameter/insideInterface.kt"); + } + + @TestMetadata("localValNoReceiver.kt") + public void testLocalValNoReceiver() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/primaryParameter/localValNoReceiver.kt"); + } + + @TestMetadata("memberValNoReceiver.kt") + public void testMemberValNoReceiver() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/primaryParameter/memberValNoReceiver.kt"); + } + + @TestMetadata("memberVarNoReceiver.kt") + public void testMemberVarNoReceiver() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/primaryParameter/memberVarNoReceiver.kt"); + } + + @TestMetadata("objectMemberValNoReceiver.kt") + public void testObjectMemberValNoReceiver() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/primaryParameter/objectMemberValNoReceiver.kt"); + } + + @TestMetadata("thisInClass.kt") + public void testThisInClass() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/primaryParameter/thisInClass.kt"); + } + + @TestMetadata("thisInExtension.kt") + public void testThisInExtension() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/primaryParameter/thisInExtension.kt"); + } + + @TestMetadata("thisInNestedClass1.kt") + public void testThisInNestedClass1() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/primaryParameter/thisInNestedClass1.kt"); + } + + @TestMetadata("thisInNestedClass2.kt") + public void testThisInNestedClass2() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/primaryParameter/thisInNestedClass2.kt"); + } + + @TestMetadata("topLevelValNoReceiver.kt") + public void testTopLevelValNoReceiver() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/primaryParameter/topLevelValNoReceiver.kt"); + } + + @TestMetadata("unresolvedRight.kt") + public void testUnresolvedRight() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/primaryParameter/unresolvedRight.kt"); + } + + @TestMetadata("valInInterfaceFunction.kt") + public void testValInInterfaceFunction() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/primaryParameter/valInInterfaceFunction.kt"); + } + + @TestMetadata("valOnCompanionObject.kt") + public void testValOnCompanionObject() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/primaryParameter/valOnCompanionObject.kt"); + } + + @TestMetadata("valOnLibType.kt") + public void testValOnLibType() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/primaryParameter/valOnLibType.kt"); + } + + @TestMetadata("valOnUserType.kt") + public void testValOnUserType() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/primaryParameter/valOnUserType.kt"); + } + + @TestMetadata("varInInterfaceFunction.kt") + public void testVarInInterfaceFunction() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/primaryParameter/varInInterfaceFunction.kt"); + } + + @TestMetadata("varOnUserType.kt") + public void testVarOnUserType() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/primaryParameter/varOnUserType.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/property") + public abstract static class Property extends AbstractHighLevelQuickFixTest { + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/property/abstract") + public static class Abstract extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("classNoExplicitReceiver.kt") + public void testClassNoExplicitReceiver() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/property/abstract/classNoExplicitReceiver.kt"); + } + + @TestMetadata("explicitReceiverOfContainingClass.kt") + public void testExplicitReceiverOfContainingClass() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/property/abstract/explicitReceiverOfContainingClass.kt"); + } + + @TestMetadata("interfaceNoExplicitReceiver.kt") + public void testInterfaceNoExplicitReceiver() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/property/abstract/interfaceNoExplicitReceiver.kt"); + } + + @TestMetadata("noLateinitInAbstract.kt") + public void testNoLateinitInAbstract() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/property/abstract/noLateinitInAbstract.kt"); + } + + @TestMetadata("notAbstractClass.kt") + public void testNotAbstractClass() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/property/abstract/notAbstractClass.kt"); + } + + @TestMetadata("otherExplicitReceiver.kt") + public void testOtherExplicitReceiver() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/property/abstract/otherExplicitReceiver.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/property/extension") + public static class Extension extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("brokenReceiver.kt") + public void testBrokenReceiver() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/property/extension/brokenReceiver.kt"); + } + + @TestMetadata("extensionOnEnumEntry.kt") + public void testExtensionOnEnumEntry() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/property/extension/extensionOnEnumEntry.kt"); + } + + @TestMetadata("extensionRefInImport.kt") + public void testExtensionRefInImport() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/property/extension/extensionRefInImport.kt"); + } + + @TestMetadata("extensionValOnClassNoClassObject.kt") + public void testExtensionValOnClassNoClassObject() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/property/extension/extensionValOnClassNoClassObject.kt"); + } + + @TestMetadata("extensionValOnClassNoClassObject2.kt") + public void testExtensionValOnClassNoClassObject2() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/property/extension/extensionValOnClassNoClassObject2.kt"); + } + + @TestMetadata("extensionWithTypeParameterAsReceiver.kt") + public void testExtensionWithTypeParameterAsReceiver() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/property/extension/extensionWithTypeParameterAsReceiver.kt"); + } + + @TestMetadata("nullableReceiver.kt") + public void testNullableReceiver() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/property/extension/nullableReceiver.kt"); + } + + @TestMetadata("valOnLibObject.kt") + public void testValOnLibObject() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/property/extension/valOnLibObject.kt"); + } + + @TestMetadata("valOnLibType.kt") + public void testValOnLibType() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/property/extension/valOnLibType.kt"); + } + + @TestMetadata("varOnLibType.kt") + public void testVarOnLibType() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/property/extension/varOnLibType.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/property") + public static class Uncategorized extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("callOnUserType.kt") + public void testCallOnUserType() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/property/callOnUserType.kt"); + } + + @TestMetadata("callableRef.kt") + public void testCallableRef() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/property/callableRef.kt"); + } + + @TestMetadata("fromParameterDefaultValue.kt") + public void testFromParameterDefaultValue() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/property/fromParameterDefaultValue.kt"); + } + + @TestMetadata("inBinaryOperation.kt") + public void testInBinaryOperation() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/property/inBinaryOperation.kt"); + } + + @TestMetadata("inLabelRef.kt") + public void testInLabelRef() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/property/inLabelRef.kt"); + } + + @TestMetadata("inconsistentTypes.kt") + public void testInconsistentTypes() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/property/inconsistentTypes.kt"); + } + + @TestMetadata("localValDelegateRuntime.kt") + public void testLocalValDelegateRuntime() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/property/localValDelegateRuntime.kt"); + } + + @TestMetadata("localValNoReceiver.kt") + public void testLocalValNoReceiver() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/property/localValNoReceiver.kt"); + } + + @TestMetadata("memberValDelegateRuntime.kt") + public void testMemberValDelegateRuntime() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/property/memberValDelegateRuntime.kt"); + } + + @TestMetadata("memberValNoReceiver.kt") + public void testMemberValNoReceiver() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/property/memberValNoReceiver.kt"); + } + + @TestMetadata("memberVarDelegateRuntime.kt") + public void testMemberVarDelegateRuntime() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/property/memberVarDelegateRuntime.kt"); + } + + @TestMetadata("memberWithTypeParameterAsReceiver.kt") + public void testMemberWithTypeParameterAsReceiver() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/property/memberWithTypeParameterAsReceiver.kt"); + } + + @TestMetadata("noLateinitForNullable.kt") + public void testNoLateinitForNullable() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/property/noLateinitForNullable.kt"); + } + + @TestMetadata("noLateinitForPrimitive.kt") + public void testNoLateinitForPrimitive() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/property/noLateinitForPrimitive.kt"); + } + + @TestMetadata("nonAbstractInInterface.kt") + public void testNonAbstractInInterface() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/property/nonAbstractInInterface.kt"); + } + + @TestMetadata("objectMemberValNoReceiver.kt") + public void testObjectMemberValNoReceiver() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/property/objectMemberValNoReceiver.kt"); + } + + @TestMetadata("privateForMembers.kt") + public void testPrivateForMembers() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/property/privateForMembers.kt"); + } + + @TestMetadata("qualifiedRefInStringTemplateRuntime.kt") + public void testQualifiedRefInStringTemplateRuntime() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/property/qualifiedRefInStringTemplateRuntime.kt"); + } + + @TestMetadata("quotedName.kt") + public void testQuotedName() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/property/quotedName.kt"); + } + + @TestMetadata("recursiveBound.kt") + public void testRecursiveBound() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/property/recursiveBound.kt"); + } + + @TestMetadata("refInImport.kt") + public void testRefInImport() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/property/refInImport.kt"); + } + + @TestMetadata("refInStringTemplateRuntime.kt") + public void testRefInStringTemplateRuntime() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/property/refInStringTemplateRuntime.kt"); + } + + @TestMetadata("thisInClass.kt") + public void testThisInClass() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/property/thisInClass.kt"); + } + + @TestMetadata("thisInClassAlreadyExistsAfter.kt") + public void testThisInClassAlreadyExistsAfter() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/property/thisInClassAlreadyExistsAfter.kt"); + } + + @TestMetadata("thisInClassAlreadyExistsAfterAndBefore.kt") + public void testThisInClassAlreadyExistsAfterAndBefore() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/property/thisInClassAlreadyExistsAfterAndBefore.kt"); + } + + @TestMetadata("thisInClassAlreadyExistsBefore.kt") + public void testThisInClassAlreadyExistsBefore() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/property/thisInClassAlreadyExistsBefore.kt"); + } + + @TestMetadata("thisInExtension.kt") + public void testThisInExtension() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/property/thisInExtension.kt"); + } + + @TestMetadata("thisInNestedClass1.kt") + public void testThisInNestedClass1() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/property/thisInNestedClass1.kt"); + } + + @TestMetadata("thisInNestedClass2.kt") + public void testThisInNestedClass2() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/property/thisInNestedClass2.kt"); + } + + @TestMetadata("topLevelPropertyFromAnnotationArg.kt") + public void testTopLevelPropertyFromAnnotationArg() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/property/topLevelPropertyFromAnnotationArg.kt"); + } + + @TestMetadata("topLevelPropertyFromConstructorDefaultParameterValue.kt") + public void testTopLevelPropertyFromConstructorDefaultParameterValue() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/property/topLevelPropertyFromConstructorDefaultParameterValue.kt"); + } + + @TestMetadata("topLevelPropertyFromConstructorDelegation.kt") + public void testTopLevelPropertyFromConstructorDelegation() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/property/topLevelPropertyFromConstructorDelegation.kt"); + } + + @TestMetadata("topLevelPropertyFromDelegate.kt") + public void testTopLevelPropertyFromDelegate() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/property/topLevelPropertyFromDelegate.kt"); + } + + @TestMetadata("topLevelValNoReceiver.kt") + public void testTopLevelValNoReceiver() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/property/topLevelValNoReceiver.kt"); + } + + @TestMetadata("topLevelValNoReceiverAlreadyExistsAfter.kt") + public void testTopLevelValNoReceiverAlreadyExistsAfter() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/property/topLevelValNoReceiverAlreadyExistsAfter.kt"); + } + + @TestMetadata("topLevelValNoReceiverAlreadyExistsBefore.kt") + public void testTopLevelValNoReceiverAlreadyExistsBefore() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/property/topLevelValNoReceiverAlreadyExistsBefore.kt"); + } + + @TestMetadata("topLevelValWithPackageName.kt") + public void testTopLevelValWithPackageName() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/property/topLevelValWithPackageName.kt"); + } + + @TestMetadata("valOnClassNoClassObject.kt") + public void testValOnClassNoClassObject() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/property/valOnClassNoClassObject.kt"); + } + + @TestMetadata("valOnClassNoClassObject2.kt") + public void testValOnClassNoClassObject2() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/property/valOnClassNoClassObject2.kt"); + } + + @TestMetadata("valOnClassObject.kt") + public void testValOnClassObject() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/property/valOnClassObject.kt"); + } + + @TestMetadata("valOnUserObject.kt") + public void testValOnUserObject() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/property/valOnUserObject.kt"); + } + + @TestMetadata("valOnUserType.kt") + public void testValOnUserType() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/property/valOnUserType.kt"); + } + + @TestMetadata("valOnUserTypeWithTypeParams.kt") + public void testValOnUserTypeWithTypeParams() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/property/valOnUserTypeWithTypeParams.kt"); + } + + @TestMetadata("valWithNullableType.kt") + public void testValWithNullableType() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/property/valWithNullableType.kt"); + } + + @TestMetadata("varOnLibType.kt") + public void testVarOnLibType() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/property/varOnLibType.kt"); + } + + @TestMetadata("varOnTypeParameter.kt") + public void testVarOnTypeParameter() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/property/varOnTypeParameter.kt"); + } + + @TestMetadata("varOnUserType.kt") + public void testVarOnUserType() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/property/varOnUserType.kt"); + } + } + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/createLabel") + public static class CreateLabel extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("breakInLoop.kt") + public void testBreakInLoop() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createLabel/breakInLoop.kt"); + } + + @TestMetadata("breakInOuterLoop.kt") + public void testBreakInOuterLoop() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createLabel/breakInOuterLoop.kt"); + } + + @TestMetadata("breakInlambdaBeforeLoop.kt") + public void testBreakInlambdaBeforeLoop() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createLabel/breakInlambdaBeforeLoop.kt"); + } + + @TestMetadata("breakNoLoop.kt") + public void testBreakNoLoop() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createLabel/breakNoLoop.kt"); + } + + @TestMetadata("continueInLoop.kt") + public void testContinueInLoop() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createLabel/continueInLoop.kt"); + } + + @TestMetadata("continueNoLoop.kt") + public void testContinueNoLoop() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createLabel/continueNoLoop.kt"); + } + + @TestMetadata("returnInLambda.kt") + public void testReturnInLambda() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createLabel/returnInLambda.kt"); + } + + @TestMetadata("returnInOuterLambda.kt") + public void testReturnInOuterLambda() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createLabel/returnInOuterLambda.kt"); + } + + @TestMetadata("returnNoLambda.kt") + public void testReturnNoLambda() throws Exception { + runTest("../../../idea/tests/testData/quickfix/createLabel/returnNoLambda.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/dataClassConstructorVsCopyVisibility") + public static class DataClassConstructorVsCopyVisibility extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("AddConsistentCopyVisibilityAnnotation.kt") + public void testAddConsistentCopyVisibilityAnnotation() throws Exception { + runTest("../../../idea/tests/testData/quickfix/dataClassConstructorVsCopyVisibility/AddConsistentCopyVisibilityAnnotation.kt"); + } + + @TestMetadata("DataClassConsistentCopyAndExposedCopyAreIncompatibleAnnotations.kt") + public void testDataClassConsistentCopyAndExposedCopyAreIncompatibleAnnotations() throws Exception { + runTest("../../../idea/tests/testData/quickfix/dataClassConstructorVsCopyVisibility/DataClassConsistentCopyAndExposedCopyAreIncompatibleAnnotations.kt"); + } + + @TestMetadata("DataClassConsistentCopyWrongAnnotationTarget.kt") + public void testDataClassConsistentCopyWrongAnnotationTarget() throws Exception { + runTest("../../../idea/tests/testData/quickfix/dataClassConstructorVsCopyVisibility/DataClassConsistentCopyWrongAnnotationTarget.kt"); + } + + @TestMetadata("RemoveRedundantConsistentCopyVisibilityAnnotation.kt") + public void testRemoveRedundantConsistentCopyVisibilityAnnotation() throws Exception { + runTest("../../../idea/tests/testData/quickfix/dataClassConstructorVsCopyVisibility/RemoveRedundantConsistentCopyVisibilityAnnotation.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/declarationCantBeInlined") + public static class DeclarationCantBeInlined extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("inClass.kt") + public void testInClass() throws Exception { + runTest("../../../idea/tests/testData/quickfix/declarationCantBeInlined/inClass.kt"); + } + + @TestMetadata("inInterface.kt") + public void testInInterface() throws Exception { + runTest("../../../idea/tests/testData/quickfix/declarationCantBeInlined/inInterface.kt"); + } + } + + + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/decreaseVisibility") + public static class DecreaseVisibility extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("exposedConstructorParameterType.kt") + public void testExposedConstructorParameterType() throws Exception { + runTest("../../../idea/tests/testData/quickfix/decreaseVisibility/exposedConstructorParameterType.kt"); + } + + @TestMetadata("exposedConstructorParameterType_privateVal.kt") + public void testExposedConstructorParameterType_privateVal() throws Exception { + runTest("../../../idea/tests/testData/quickfix/decreaseVisibility/exposedConstructorParameterType_privateVal.kt"); + } + + @TestMetadata("exposedConstructorParameterType_val.kt") + public void testExposedConstructorParameterType_val() throws Exception { + runTest("../../../idea/tests/testData/quickfix/decreaseVisibility/exposedConstructorParameterType_val.kt"); + } + + @TestMetadata("exposedParameterType.kt") + public void testExposedParameterType() throws Exception { + runTest("../../../idea/tests/testData/quickfix/decreaseVisibility/exposedParameterType.kt"); + } + + @TestMetadata("exposedParameterType_privateType.kt") + public void testExposedParameterType_privateType() throws Exception { + runTest("../../../idea/tests/testData/quickfix/decreaseVisibility/exposedParameterType_privateType.kt"); + } + + @TestMetadata("exposedPropertyType.kt") + public void testExposedPropertyType() throws Exception { + runTest("../../../idea/tests/testData/quickfix/decreaseVisibility/exposedPropertyType.kt"); + } + + @TestMetadata("exposedReceiverType.kt") + public void testExposedReceiverType() throws Exception { + runTest("../../../idea/tests/testData/quickfix/decreaseVisibility/exposedReceiverType.kt"); + } + + @TestMetadata("exposedReceiverTypeInternal.kt") + public void testExposedReceiverTypeInternal() throws Exception { + runTest("../../../idea/tests/testData/quickfix/decreaseVisibility/exposedReceiverTypeInternal.kt"); + } + + @TestMetadata("exposedReceiverTypePrivate.kt") + public void testExposedReceiverTypePrivate() throws Exception { + runTest("../../../idea/tests/testData/quickfix/decreaseVisibility/exposedReceiverTypePrivate.kt"); + } + + @TestMetadata("exposedReturnType.kt") + public void testExposedReturnType() throws Exception { + runTest("../../../idea/tests/testData/quickfix/decreaseVisibility/exposedReturnType.kt"); + } + + @TestMetadata("exposedSuperClass.kt") + public void testExposedSuperClass() throws Exception { + runTest("../../../idea/tests/testData/quickfix/decreaseVisibility/exposedSuperClass.kt"); + } + + @TestMetadata("exposedSuperClassProtectedBase.kt") + public void testExposedSuperClassProtectedBase() throws Exception { + runTest("../../../idea/tests/testData/quickfix/decreaseVisibility/exposedSuperClassProtectedBase.kt"); + } + + @TestMetadata("exposedSuperClassProtectedInAnother.kt") + public void testExposedSuperClassProtectedInAnother() throws Exception { + runTest("../../../idea/tests/testData/quickfix/decreaseVisibility/exposedSuperClassProtectedInAnother.kt"); + } + + @TestMetadata("exposedSuperInterface.kt") + public void testExposedSuperInterface() throws Exception { + runTest("../../../idea/tests/testData/quickfix/decreaseVisibility/exposedSuperInterface.kt"); + } + + @TestMetadata("exposedSuperInterfacePrivate.kt") + public void testExposedSuperInterfacePrivate() throws Exception { + runTest("../../../idea/tests/testData/quickfix/decreaseVisibility/exposedSuperInterfacePrivate.kt"); + } + + @TestMetadata("exposedTypeInAnnotation.kt") + public void testExposedTypeInAnnotation() throws Exception { + runTest("../../../idea/tests/testData/quickfix/decreaseVisibility/exposedTypeInAnnotation.kt"); + } + + @TestMetadata("exposedTypeParameterBound.kt") + public void testExposedTypeParameterBound() throws Exception { + runTest("../../../idea/tests/testData/quickfix/decreaseVisibility/exposedTypeParameterBound.kt"); + } + + @TestMetadata("exposedTypeParameterBoundNested.kt") + public void testExposedTypeParameterBoundNested() throws Exception { + runTest("../../../idea/tests/testData/quickfix/decreaseVisibility/exposedTypeParameterBoundNested.kt"); + } + } + + + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage") + public abstract static class DeprecatedSymbolUsage extends AbstractHighLevelQuickFixTest { + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/argumentSideEffects") + public static class ArgumentSideEffects extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("callWithAssignment.kt") + public void testCallWithAssignment() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/argumentSideEffects/callWithAssignment.kt"); + } + + @TestMetadata("callWithAssignment1.kt") + public void testCallWithAssignment1() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/argumentSideEffects/callWithAssignment1.kt"); + } + + @TestMetadata("callWithAssignment2.kt") + public void testCallWithAssignment2() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/argumentSideEffects/callWithAssignment2.kt"); + } + + @TestMetadata("callWithAssignment3.kt") + public void testCallWithAssignment3() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/argumentSideEffects/callWithAssignment3.kt"); + } + + @TestMetadata("callWithAssignment4.kt") + public void testCallWithAssignment4() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/argumentSideEffects/callWithAssignment4.kt"); + } + + @TestMetadata("callWithAssignment5.kt") + public void testCallWithAssignment5() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/argumentSideEffects/callWithAssignment5.kt"); + } + + @TestMetadata("complexExpressionNotUsed1.kt") + public void testComplexExpressionNotUsed1() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/argumentSideEffects/complexExpressionNotUsed1.kt"); + } + + @TestMetadata("complexExpressionNotUsed2.kt") + public void testComplexExpressionNotUsed2() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/argumentSideEffects/complexExpressionNotUsed2.kt"); + } + + @TestMetadata("complexExpressionNotUsed3Runtime.kt") + public void testComplexExpressionNotUsed3Runtime() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/argumentSideEffects/complexExpressionNotUsed3Runtime.kt"); + } + + @TestMetadata("complexExpressionNotUsed4Runtime.kt") + public void testComplexExpressionNotUsed4Runtime() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/argumentSideEffects/complexExpressionNotUsed4Runtime.kt"); + } + + @TestMetadata("complexExpressionNotUsed5Runtime.kt") + public void testComplexExpressionNotUsed5Runtime() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/argumentSideEffects/complexExpressionNotUsed5Runtime.kt"); + } + + @TestMetadata("complexExpressionNotUsedSafeCall.kt") + public void testComplexExpressionNotUsedSafeCall() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/argumentSideEffects/complexExpressionNotUsedSafeCall.kt"); + } + + @TestMetadata("complexExpressionNotUsedSafeCall2Runtime.kt") + public void testComplexExpressionNotUsedSafeCall2Runtime() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/argumentSideEffects/complexExpressionNotUsedSafeCall2Runtime.kt"); + } + + @TestMetadata("complexExpressionNotUsedShortenRefsRuntime.kt") + public void testComplexExpressionNotUsedShortenRefsRuntime() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/argumentSideEffects/complexExpressionNotUsedShortenRefsRuntime.kt"); + } + + @TestMetadata("complexExpressionUsedTwice.kt") + public void testComplexExpressionUsedTwice() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/argumentSideEffects/complexExpressionUsedTwice.kt"); + } + + @TestMetadata("complexExpressionUsedTwice2.kt") + public void testComplexExpressionUsedTwice2() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/argumentSideEffects/complexExpressionUsedTwice2.kt"); + } + + @TestMetadata("complexExpressionUsedTwice3Runtime.kt") + public void testComplexExpressionUsedTwice3Runtime() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/argumentSideEffects/complexExpressionUsedTwice3Runtime.kt"); + } + + @TestMetadata("complexExpressionUsedTwice4.kt") + public void testComplexExpressionUsedTwice4() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/argumentSideEffects/complexExpressionUsedTwice4.kt"); + } + + @TestMetadata("complexExpressionUsedTwice5Runtime.kt") + public void testComplexExpressionUsedTwice5Runtime() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/argumentSideEffects/complexExpressionUsedTwice5Runtime.kt"); + } + + @TestMetadata("complexExpressionUsedTwice6Runtime.kt") + public void testComplexExpressionUsedTwice6Runtime() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/argumentSideEffects/complexExpressionUsedTwice6Runtime.kt"); + } + + @TestMetadata("propertyConstantInitializer.kt") + public void testPropertyConstantInitializer() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/argumentSideEffects/propertyConstantInitializer.kt"); + } + + @TestMetadata("propertyInitializer.kt") + public void testPropertyInitializer() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/argumentSideEffects/propertyInitializer.kt"); + } + + @TestMetadata("simpleExpressionNotUsed.kt") + public void testSimpleExpressionNotUsed() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/argumentSideEffects/simpleExpressionNotUsed.kt"); + } + + @TestMetadata("simpleExpressionUsedTwice.kt") + public void testSimpleExpressionUsedTwice() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/argumentSideEffects/simpleExpressionUsedTwice.kt"); + } + + @TestMetadata("stringLiteralUsedTwice.kt") + public void testStringLiteralUsedTwice() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/argumentSideEffects/stringLiteralUsedTwice.kt"); + } + + @TestMetadata("stringTemplateUsedTwice.kt") + public void testStringTemplateUsedTwice() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/argumentSideEffects/stringTemplateUsedTwice.kt"); + } + + @TestMetadata("stringTemplateUsedTwice2.kt") + public void testStringTemplateUsedTwice2() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/argumentSideEffects/stringTemplateUsedTwice2.kt"); + } + + @TestMetadata("withLiteralAndReference.kt") + public void testWithLiteralAndReference() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/argumentSideEffects/withLiteralAndReference.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/classUsages") + public abstract static class ClassUsages extends AbstractHighLevelQuickFixTest { + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/classUsages") + public static class Uncategorized extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("annotation1.kt") + public void testAnnotation1() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/classUsages/annotation1.kt"); + } + + @TestMetadata("annotation2.kt") + public void testAnnotation2() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/classUsages/annotation2.kt"); + } + + @TestMetadata("annotation3.kt") + public void testAnnotation3() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/classUsages/annotation3.kt"); + } + + @TestMetadata("annotation4.kt") + public void testAnnotation4() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/classUsages/annotation4.kt"); + } + + @TestMetadata("annotationKeepNamedArgs.kt") + public void testAnnotationKeepNamedArgs() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/classUsages/annotationKeepNamedArgs.kt"); + } + + @TestMetadata("annotationWithFileUseSiteTarget1.kt") + public void testAnnotationWithFileUseSiteTarget1() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/classUsages/annotationWithFileUseSiteTarget1.kt"); + } + + @TestMetadata("annotationWithFileUseSiteTarget2.kt") + public void testAnnotationWithFileUseSiteTarget2() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/classUsages/annotationWithFileUseSiteTarget2.kt"); + } + + @TestMetadata("annotationWithFileUseSiteTarget3.kt") + public void testAnnotationWithFileUseSiteTarget3() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/classUsages/annotationWithFileUseSiteTarget3.kt"); + } + + @TestMetadata("annotationWithGetUseSiteTarget1.kt") + public void testAnnotationWithGetUseSiteTarget1() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/classUsages/annotationWithGetUseSiteTarget1.kt"); + } + + @TestMetadata("annotationWithGetUseSiteTarget2.kt") + public void testAnnotationWithGetUseSiteTarget2() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/classUsages/annotationWithGetUseSiteTarget2.kt"); + } + + @TestMetadata("annotationWithGetUseSiteTarget3.kt") + public void testAnnotationWithGetUseSiteTarget3() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/classUsages/annotationWithGetUseSiteTarget3.kt"); + } + + @TestMetadata("constructorUsage1.kt") + public void testConstructorUsage1() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/classUsages/constructorUsage1.kt"); + } + + @TestMetadata("constructorUsage2.kt") + public void testConstructorUsage2() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/classUsages/constructorUsage2.kt"); + } + + @TestMetadata("constructorUsage3.kt") + public void testConstructorUsage3() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/classUsages/constructorUsage3.kt"); + } + + @TestMetadata("constructorUsage4.kt") + public void testConstructorUsage4() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/classUsages/constructorUsage4.kt"); + } + + @TestMetadata("constructorUsage5.kt") + public void testConstructorUsage5() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/classUsages/constructorUsage5.kt"); + } + + @TestMetadata("constructorUsage6.kt") + public void testConstructorUsage6() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/classUsages/constructorUsage6.kt"); + } + + @TestMetadata("constructorUsage7.kt") + public void testConstructorUsage7() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/classUsages/constructorUsage7.kt"); + } + + @TestMetadata("constructorUsageWithTypeArgument.kt") + public void testConstructorUsageWithTypeArgument() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/classUsages/constructorUsageWithTypeArgument.kt"); + } + + @TestMetadata("constructorUsageWithTypeArgument2.kt") + public void testConstructorUsageWithTypeArgument2() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/classUsages/constructorUsageWithTypeArgument2.kt"); + } + + @TestMetadata("constructorUsageWithTypeArgument3.kt") + public void testConstructorUsageWithTypeArgument3() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/classUsages/constructorUsageWithTypeArgument3.kt"); + } + + @TestMetadata("constructorUsageWithTypeArgument4.kt") + public void testConstructorUsageWithTypeArgument4() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/classUsages/constructorUsageWithTypeArgument4.kt"); + } + + @TestMetadata("constructorUsageWithTypeArgument5.kt") + public void testConstructorUsageWithTypeArgument5() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/classUsages/constructorUsageWithTypeArgument5.kt"); + } + + @TestMetadata("constructorUsageWithTypeArgument6.kt") + public void testConstructorUsageWithTypeArgument6() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/classUsages/constructorUsageWithTypeArgument6.kt"); + } + + @TestMetadata("constructorUsageWithTypeArgument7.kt") + public void testConstructorUsageWithTypeArgument7() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/classUsages/constructorUsageWithTypeArgument7.kt"); + } + + @TestMetadata("constructorUsageWithTypeArgumentWithoutSpecifyType.kt") + public void testConstructorUsageWithTypeArgumentWithoutSpecifyType() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/classUsages/constructorUsageWithTypeArgumentWithoutSpecifyType.kt"); + } + + @TestMetadata("imports.kt") + public void testImports() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/classUsages/imports.kt"); + } + + @TestMetadata("inAliasSimple.kt") + public void testInAliasSimple() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/classUsages/inAliasSimple.kt"); + } + + @TestMetadata("inAliasWithOwnReplaceForConstructorForAliasArguments.kt") + public void testInAliasWithOwnReplaceForConstructorForAliasArguments() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/classUsages/inAliasWithOwnReplaceForConstructorForAliasArguments.kt"); + } + + @TestMetadata("inAliasWithOwnReplaceForConstructorUnused.kt") + public void testInAliasWithOwnReplaceForConstructorUnused() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/classUsages/inAliasWithOwnReplaceForConstructorUnused.kt"); + } + + @TestMetadata("inAliasWithOwnReplaceForConstructorUsed.kt") + public void testInAliasWithOwnReplaceForConstructorUsed() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/classUsages/inAliasWithOwnReplaceForConstructorUsed.kt"); + } + + @TestMetadata("inAliasWithOwnReplaceForSecondaryConstructorUnused.kt") + public void testInAliasWithOwnReplaceForSecondaryConstructorUnused() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/classUsages/inAliasWithOwnReplaceForSecondaryConstructorUnused.kt"); + } + + @TestMetadata("inAliasWithOwnReplaceForSecondaryConstructorUsed.kt") + public void testInAliasWithOwnReplaceForSecondaryConstructorUsed() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/classUsages/inAliasWithOwnReplaceForSecondaryConstructorUsed.kt"); + } + + @TestMetadata("inTypeArgument.kt") + public void testInTypeArgument() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/classUsages/inTypeArgument.kt"); + } + + @TestMetadata("innerType.kt") + public void testInnerType() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/classUsages/innerType.kt"); + } + + @TestMetadata("lambdaReplacement.kt") + public void testLambdaReplacement() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/classUsages/lambdaReplacement.kt"); + } + + @TestMetadata("nestedClassToNestedClass.kt") + public void testNestedClassToNestedClass() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/classUsages/nestedClassToNestedClass.kt"); + } + + @TestMetadata("noAnnotationConstructorUsage.kt") + public void testNoAnnotationConstructorUsage() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/classUsages/noAnnotationConstructorUsage.kt"); + } + + @TestMetadata("noMatchTypeArgument.kt") + public void testNoMatchTypeArgument() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/classUsages/noMatchTypeArgument.kt"); + } + + @TestMetadata("noMatchTypeArgument2.kt") + public void testNoMatchTypeArgument2() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/classUsages/noMatchTypeArgument2.kt"); + } + + @TestMetadata("qualifiedClassName.kt") + public void testQualifiedClassName() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/classUsages/qualifiedClassName.kt"); + } + + @TestMetadata("qualifiedClassNameInPattern.kt") + public void testQualifiedClassNameInPattern() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/classUsages/qualifiedClassNameInPattern.kt"); + } + + @TestMetadata("secondaryConstructor.kt") + public void testSecondaryConstructor() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/classUsages/secondaryConstructor.kt"); + } + + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/classUsages/simple.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/classUsages/wholeProject") + public static class WholeProject extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("inheritance.kt") + public void testInheritance() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/classUsages/wholeProject/inheritance.kt"); + } + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/functionLiteralArguments") + public abstract static class FunctionLiteralArguments extends AbstractHighLevelQuickFixTest { + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/functionLiteralArguments") + public static class Uncategorized extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("cannotKeepOutside.kt") + public void testCannotKeepOutside() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/functionLiteralArguments/cannotKeepOutside.kt"); + } + + @TestMetadata("keepInside.kt") + public void testKeepInside() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/functionLiteralArguments/keepInside.kt"); + } + + @TestMetadata("keepOutside.kt") + public void testKeepOutside() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/functionLiteralArguments/keepOutside.kt"); + } + + @TestMetadata("keepOutsideWithGeneric.kt") + public void testKeepOutsideWithGeneric() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/functionLiteralArguments/keepOutsideWithGeneric.kt"); + } + + @TestMetadata("keepOutsideWithNamedArgument.kt") + public void testKeepOutsideWithNamedArgument() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/functionLiteralArguments/keepOutsideWithNamedArgument.kt"); + } + + @TestMetadata("suspendBlock.kt") + public void testSuspendBlock() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/functionLiteralArguments/suspendBlock.kt"); + } + + @TestMetadata("suspendBlockImplicitInvoke.kt") + public void testSuspendBlockImplicitInvoke() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/functionLiteralArguments/suspendBlockImplicitInvoke.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/functionLiteralArguments/wholeProject") + public static class WholeProject extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("explicitLambdaParameter.kt") + public void testExplicitLambdaParameter() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/functionLiteralArguments/wholeProject/explicitLambdaParameter.kt"); + } + + @TestMetadata("explicitLambdaParameterWithoutType.kt") + public void testExplicitLambdaParameterWithoutType() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/functionLiteralArguments/wholeProject/explicitLambdaParameterWithoutType.kt"); + } + + @TestMetadata("implicitLambdaParameter.kt") + public void testImplicitLambdaParameter() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/functionLiteralArguments/wholeProject/implicitLambdaParameter.kt"); + } + + @TestMetadata("implicitLambdaParameterWithPlatformType.kt") + public void testImplicitLambdaParameterWithPlatformType() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/functionLiteralArguments/wholeProject/implicitLambdaParameterWithPlatformType.kt"); + } + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/keepComments") + public static class KeepComments extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("addArguments.kt") + public void testAddArguments() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/keepComments/addArguments.kt"); + } + + @TestMetadata("commentBeforeArgument.kt") + public void testCommentBeforeArgument() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/keepComments/commentBeforeArgument.kt"); + } + + @TestMetadata("dropArgument.kt") + public void testDropArgument() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/keepComments/dropArgument.kt"); + } + + @TestMetadata("multipleArguments.kt") + public void testMultipleArguments() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/keepComments/multipleArguments.kt"); + } + + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/keepComments/simple.kt"); + } + + @TestMetadata("usedTwice.kt") + public void testUsedTwice() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/keepComments/usedTwice.kt"); + } + + @TestMetadata("variableForArgument.kt") + public void testVariableForArgument() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/keepComments/variableForArgument.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/keepLineBreaks") + public static class KeepLineBreaks extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("addArgument.kt") + public void testAddArgument() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/keepLineBreaks/addArgument.kt"); + } + + @TestMetadata("lineBreakAfterReceiverRuntime.kt") + public void testLineBreakAfterReceiverRuntime() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/keepLineBreaks/lineBreakAfterReceiverRuntime.kt"); + } + + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/keepLineBreaks/simple.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/operatorCalls") + public static class OperatorCalls extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("get.kt") + public void testGet() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/operatorCalls/get.kt"); + } + + @TestMetadata("implicitInvoke.kt") + public void testImplicitInvoke() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/operatorCalls/implicitInvoke.kt"); + } + + @TestMetadata("in.kt") + public void testIn() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/operatorCalls/in.kt"); + } + + @TestMetadata("invoke.kt") + public void testInvoke() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/operatorCalls/invoke.kt"); + } + + @TestMetadata("invoke2.kt") + public void testInvoke2() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/operatorCalls/invoke2.kt"); + } + + @TestMetadata("invoke3.kt") + public void testInvoke3() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/operatorCalls/invoke3.kt"); + } + + @TestMetadata("invoke4.kt") + public void testInvoke4() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/operatorCalls/invoke4.kt"); + } + + @TestMetadata("plusAssign.kt") + public void testPlusAssign() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/operatorCalls/plusAssign.kt"); + } + + @TestMetadata("set.kt") + public void testSet() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/operatorCalls/set.kt"); + } + + @TestMetadata("unaryPlus.kt") + public void testUnaryPlus() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/operatorCalls/unaryPlus.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/optionalParameters") + public static class OptionalParameters extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("dropAll.kt") + public void testDropAll() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/optionalParameters/dropAll.kt"); + } + + @TestMetadata("functionalLiteralArgument.kt") + public void testFunctionalLiteralArgument() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/optionalParameters/functionalLiteralArgument.kt"); + } + + @TestMetadata("namedArgument.kt") + public void testNamedArgument() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/optionalParameters/namedArgument.kt"); + } + + @TestMetadata("optionalParameterAndLambda.kt") + public void testOptionalParameterAndLambda() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/optionalParameters/optionalParameterAndLambda.kt"); + } + + @TestMetadata("optionalParameterAndLambdaComplex.kt") + public void testOptionalParameterAndLambdaComplex() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/optionalParameters/optionalParameterAndLambdaComplex.kt"); + } + + @TestMetadata("optionalParameters1.kt") + public void testOptionalParameters1() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/optionalParameters/optionalParameters1.kt"); + } + + @TestMetadata("optionalParameters2.kt") + public void testOptionalParameters2() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/optionalParameters/optionalParameters2.kt"); + } + + @TestMetadata("optionalParameters3.kt") + public void testOptionalParameters3() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/optionalParameters/optionalParameters3.kt"); + } + + @TestMetadata("optionalParameters4.kt") + public void testOptionalParameters4() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/optionalParameters/optionalParameters4.kt"); + } + + @TestMetadata("optionalParameters5.kt") + public void testOptionalParameters5() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/optionalParameters/optionalParameters5.kt"); + } + + @TestMetadata("optionalParameters7.kt") + public void testOptionalParameters7() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/optionalParameters/optionalParameters7.kt"); + } + + @TestMetadata("optionalParameters9.kt") + public void testOptionalParameters9() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/optionalParameters/optionalParameters9.kt"); + } + + @TestMetadata("overridingMethod.kt") + public void testOverridingMethod() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/optionalParameters/overridingMethod.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/properties") + public static class Properties extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("callInAssignmentToProperty.kt") + public void testCallInAssignmentToProperty() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/properties/callInAssignmentToProperty.kt"); + } + + @TestMetadata("callToCustomProperty.kt") + public void testCallToCustomProperty() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/properties/callToCustomProperty.kt"); + } + + @TestMetadata("callToProperty.kt") + public void testCallToProperty() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/properties/callToProperty.kt"); + } + + @TestMetadata("extensionPropertyToProperty.kt") + public void testExtensionPropertyToProperty() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/properties/extensionPropertyToProperty.kt"); + } + + @TestMetadata("extensionPropertyWriteToProperty.kt") + public void testExtensionPropertyWriteToProperty() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/properties/extensionPropertyWriteToProperty.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/publishedApi") + public static class PublishedApi extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("existingStub.kt") + public void testExistingStub() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/publishedApi/existingStub.kt"); + } + + @TestMetadata("existingStubForVar.kt") + public void testExistingStubForVar() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/publishedApi/existingStubForVar.kt"); + } + + @TestMetadata("extension.kt") + public void testExtension() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/publishedApi/extension.kt"); + } + + @TestMetadata("extensionVar.kt") + public void testExtensionVar() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/publishedApi/extensionVar.kt"); + } + + @TestMetadata("generic.kt") + public void testGeneric() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/publishedApi/generic.kt"); + } + + @TestMetadata("genericDerived.kt") + public void testGenericDerived() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/publishedApi/genericDerived.kt"); + } + + @TestMetadata("genericFunction.kt") + public void testGenericFunction() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/publishedApi/genericFunction.kt"); + } + + @TestMetadata("infix.kt") + public void testInfix() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/publishedApi/infix.kt"); + } + + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/publishedApi/simple.kt"); + } + + @TestMetadata("simpleVal.kt") + public void testSimpleVal() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/publishedApi/simpleVal.kt"); + } + + @TestMetadata("simpleVar.kt") + public void testSimpleVar() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/publishedApi/simpleVar.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/safeCall") + public static class SafeCall extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("changeThisSafeCall.kt") + public void testChangeThisSafeCall() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/safeCall/changeThisSafeCall.kt"); + } + + @TestMetadata("changeThisSafeCallWithValue1Runtime.kt") + public void testChangeThisSafeCallWithValue1Runtime() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/safeCall/changeThisSafeCallWithValue1Runtime.kt"); + } + + @TestMetadata("changeThisSafeCallWithValue2Runtime.kt") + public void testChangeThisSafeCallWithValue2Runtime() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/safeCall/changeThisSafeCallWithValue2Runtime.kt"); + } + + @TestMetadata("changeThisSafeCallWithValue3Runtime.kt") + public void testChangeThisSafeCallWithValue3Runtime() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/safeCall/changeThisSafeCallWithValue3Runtime.kt"); + } + + @TestMetadata("changeThisSafeCallWithValue4Runtime.kt") + public void testChangeThisSafeCallWithValue4Runtime() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/safeCall/changeThisSafeCallWithValue4Runtime.kt"); + } + + @TestMetadata("changeThisSafeCallWithValueRuntime.kt") + public void testChangeThisSafeCallWithValueRuntime() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/safeCall/changeThisSafeCallWithValueRuntime.kt"); + } + + @TestMetadata("dropReceiverSafeCall.kt") + public void testDropReceiverSafeCall() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/safeCall/dropReceiverSafeCall.kt"); + } + + @TestMetadata("safeCall.kt") + public void testSafeCall() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/safeCall/safeCall.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/typeAliases") + public static class TypeAliases extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("companionObjectAliased.kt") + public void testCompanionObjectAliased() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/typeAliases/companionObjectAliased.kt"); + } + + @TestMetadata("compoundWithDeprecatedArgumentsAndConstructor.kt") + public void testCompoundWithDeprecatedArgumentsAndConstructor() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/typeAliases/compoundWithDeprecatedArgumentsAndConstructor.kt"); + } + + @TestMetadata("conflictOnTypeAndAlias.kt") + public void testConflictOnTypeAndAlias() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/typeAliases/conflictOnTypeAndAlias.kt"); + } + + @TestMetadata("constructorUsage.kt") + public void testConstructorUsage() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/typeAliases/constructorUsage.kt"); + } + + @TestMetadata("constructorUsageWithConflict.kt") + public void testConstructorUsageWithConflict() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/typeAliases/constructorUsageWithConflict.kt"); + } + + @TestMetadata("constructorUsageWithConflict1.kt") + public void testConstructorUsageWithConflict1() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/typeAliases/constructorUsageWithConflict1.kt"); + } + + @TestMetadata("objectAliased.kt") + public void testObjectAliased() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/typeAliases/objectAliased.kt"); + } + + @TestMetadata("objectAliasedWithPropertyReference.kt") + public void testObjectAliasedWithPropertyReference() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/typeAliases/objectAliasedWithPropertyReference.kt"); + } + + @TestMetadata("onlyAliasDeprecated.kt") + public void testOnlyAliasDeprecated() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/typeAliases/onlyAliasDeprecated.kt"); + } + + @TestMetadata("stdlibAliased.kt") + public void testStdlibAliased() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/typeAliases/stdlibAliased.kt"); + } + + @TestMetadata("transitiveFromClass.kt") + public void testTransitiveFromClass() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/typeAliases/transitiveFromClass.kt"); + } + + @TestMetadata("transitiveLong.kt") + public void testTransitiveLong() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/typeAliases/transitiveLong.kt"); + } + + @TestMetadata("typeAliasWithAllGenericParams.kt") + public void testTypeAliasWithAllGenericParams() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/typeAliases/typeAliasWithAllGenericParams.kt"); + } + + @TestMetadata("withTypeArgument.kt") + public void testWithTypeArgument() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/typeAliases/withTypeArgument.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/typeArguments") + public abstract static class TypeArguments extends AbstractHighLevelQuickFixTest { + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/typeArguments") + public static class Uncategorized extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("classConstructor.kt") + public void testClassConstructor() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/typeArguments/classConstructor.kt"); + } + + @TestMetadata("classLiteral.kt") + public void testClassLiteral() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/typeArguments/classLiteral.kt"); + } + + @TestMetadata("classLiteral2.kt") + public void testClassLiteral2() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/typeArguments/classLiteral2.kt"); + } + + @TestMetadata("emptyVarargRuntime.kt") + public void testEmptyVarargRuntime() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/typeArguments/emptyVarargRuntime.kt"); + } + + @TestMetadata("explicitInPatternImplicitInUsage.kt") + public void testExplicitInPatternImplicitInUsage() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/typeArguments/explicitInPatternImplicitInUsage.kt"); + } + + @TestMetadata("explicitTypeArg.kt") + public void testExplicitTypeArg() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/typeArguments/explicitTypeArg.kt"); + } + + @TestMetadata("explicitTypeArg2.kt") + public void testExplicitTypeArg2() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/typeArguments/explicitTypeArg2.kt"); + } + + @TestMetadata("functionReference.kt") + public void testFunctionReference() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/typeArguments/functionReference.kt"); + } + + @TestMetadata("functionReference2.kt") + public void testFunctionReference2() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/typeArguments/functionReference2.kt"); + } + + @TestMetadata("functionReference3.kt") + public void testFunctionReference3() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/typeArguments/functionReference3.kt"); + } + + @TestMetadata("functionReference4.kt") + public void testFunctionReference4() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/typeArguments/functionReference4.kt"); + } + + @TestMetadata("functionReference5.kt") + public void testFunctionReference5() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/typeArguments/functionReference5.kt"); + } + + @TestMetadata("implicitToExplicit.kt") + public void testImplicitToExplicit() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/typeArguments/implicitToExplicit.kt"); + } + + @TestMetadata("keepInUserCodeRuntime.kt") + public void testKeepInUserCodeRuntime() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/typeArguments/keepInUserCodeRuntime.kt"); + } + + @TestMetadata("keepOriginalIfQualified.kt") + public void testKeepOriginalIfQualified() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/typeArguments/keepOriginalIfQualified.kt"); + } + + @TestMetadata("kt36225.kt") + public void testKt36225() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/typeArguments/kt36225.kt"); + } + + @TestMetadata("ktij-14750.kt") + public void testKtij_14750() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/typeArguments/ktij-14750.kt"); + } + + @TestMetadata("noImplicitTypeArgImportRuntime.kt") + public void testNoImplicitTypeArgImportRuntime() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/typeArguments/noImplicitTypeArgImportRuntime.kt"); + } + + @TestMetadata("noImplicitTypeArgInClassWithTypeParam.kt") + public void testNoImplicitTypeArgInClassWithTypeParam() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/typeArguments/noImplicitTypeArgInClassWithTypeParam.kt"); + } + + @TestMetadata("noImplicitTypeArgInFunWithTypeParam.kt") + public void testNoImplicitTypeArgInFunWithTypeParam() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/typeArguments/noImplicitTypeArgInFunWithTypeParam.kt"); + } + + @TestMetadata("nonEmptyVarargRuntime.kt") + public void testNonEmptyVarargRuntime() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/typeArguments/nonEmptyVarargRuntime.kt"); + } + + @TestMetadata("propertyReference.kt") + public void testPropertyReference() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/typeArguments/propertyReference.kt"); + } + + @TestMetadata("propertyReference2.kt") + public void testPropertyReference2() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/typeArguments/propertyReference2.kt"); + } + + @TestMetadata("propertyReference3.kt") + public void testPropertyReference3() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/typeArguments/propertyReference3.kt"); + } + + @TestMetadata("typeReference.kt") + public void testTypeReference() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/typeArguments/typeReference.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/typeArguments/wholeProject") + public static class WholeProject extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("classConstructor.kt") + public void testClassConstructor() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/typeArguments/wholeProject/classConstructor.kt"); + } + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage") + public static class Uncategorized extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("addImplicitReceiverNested.kt") + public void testAddImplicitReceiverNested() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/addImplicitReceiverNested.kt"); + } + + @TestMetadata("ambiguousCall.kt") + public void testAmbiguousCall() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/ambiguousCall.kt"); + } + + @TestMetadata("annotationWithErrorReplacement.kt") + public void testAnnotationWithErrorReplacement() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/annotationWithErrorReplacement.kt"); + } + + @TestMetadata("avoidCastingContext.kt") + public void testAvoidCastingContext() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/avoidCastingContext.kt"); + } + + @TestMetadata("callChainBug.kt") + public void testCallChainBug() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/callChainBug.kt"); + } + + @TestMetadata("callWithError.kt") + public void testCallWithError() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/callWithError.kt"); + } + + @TestMetadata("changeThis1.kt") + public void testChangeThis1() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/changeThis1.kt"); + } + + @TestMetadata("changeThis2.kt") + public void testChangeThis2() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/changeThis2.kt"); + } + + @TestMetadata("changeThisToOuterThis.kt") + public void testChangeThisToOuterThis() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/changeThisToOuterThis.kt"); + } + + @TestMetadata("classLiteralAndTypeArgsRuntime.kt") + public void testClassLiteralAndTypeArgsRuntime() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/classLiteralAndTypeArgsRuntime.kt"); + } + + @TestMetadata("deprecatedSinceKotlinAndReplaceWith.kt") + public void testDeprecatedSinceKotlinAndReplaceWith() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/deprecatedSinceKotlinAndReplaceWith.kt"); + } + + @TestMetadata("deprecationLevel.kt") + public void testDeprecationLevel() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/deprecationLevel.kt"); + } + + @TestMetadata("doNotShortenUserReferences.kt") + public void testDoNotShortenUserReferences() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/doNotShortenUserReferences.kt"); + } + + @TestMetadata("doNotShortenUsersExplicitThis.kt") + public void testDoNotShortenUsersExplicitThis() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/doNotShortenUsersExplicitThis.kt"); + } + + @TestMetadata("dropReceiver.kt") + public void testDropReceiver() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/dropReceiver.kt"); + } + + @TestMetadata("enum.kt") + public void testEnum() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/enum.kt"); + } + + @TestMetadata("extensionForGenericClass.kt") + public void testExtensionForGenericClass() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/extensionForGenericClass.kt"); + } + + @TestMetadata("extensionFunCallInLambdaWithReceiver.kt") + public void testExtensionFunCallInLambdaWithReceiver() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/extensionFunCallInLambdaWithReceiver.kt"); + } + + @TestMetadata("extensionReceiverWithVarianceType.kt") + public void testExtensionReceiverWithVarianceType() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/extensionReceiverWithVarianceType.kt"); + } + + @TestMetadata("implicitCompanionObjectThis.kt") + public void testImplicitCompanionObjectThis() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/implicitCompanionObjectThis.kt"); + } + + @TestMetadata("implicitQualifiedThisRuntime.kt") + public void testImplicitQualifiedThisRuntime() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/implicitQualifiedThisRuntime.kt"); + } + + @TestMetadata("importedObjectFunction.kt") + public void testImportedObjectFunction() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/importedObjectFunction.kt"); + } + + @TestMetadata("importedObjectFunctionAddReceiver.kt") + public void testImportedObjectFunctionAddReceiver() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/importedObjectFunctionAddReceiver.kt"); + } + + @TestMetadata("importedObjectProperty.kt") + public void testImportedObjectProperty() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/importedObjectProperty.kt"); + } + + @TestMetadata("incorrectArgs.kt") + public void testIncorrectArgs() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/incorrectArgs.kt"); + } + + @TestMetadata("incorrectReplacement.kt") + public void testIncorrectReplacement() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/incorrectReplacement.kt"); + } + + @TestMetadata("infixCall.kt") + public void testInfixCall() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/infixCall.kt"); + } + + @TestMetadata("infixCallToNonInfixCall.kt") + public void testInfixCallToNonInfixCall() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/infixCallToNonInfixCall.kt"); + } + + @TestMetadata("keepArgumentNamed.kt") + public void testKeepArgumentNamed() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/keepArgumentNamed.kt"); + } + + @TestMetadata("keepInfixCall.kt") + public void testKeepInfixCall() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/keepInfixCall.kt"); + } + + @TestMetadata("kt35015.kt") + public void testKt35015() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/kt35015.kt"); + } + + @TestMetadata("localFun.kt") + public void testLocalFun() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/localFun.kt"); + } + + @TestMetadata("mailformedExpression.kt") + public void testMailformedExpression() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/mailformedExpression.kt"); + } + + @TestMetadata("memberFunction.kt") + public void testMemberFunction() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/memberFunction.kt"); + } + + @TestMetadata("memberFunctionImplicitReceiver.kt") + public void testMemberFunctionImplicitReceiver() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/memberFunctionImplicitReceiver.kt"); + } + + @TestMetadata("memberFunctionInGenericClass.kt") + public void testMemberFunctionInGenericClass() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/memberFunctionInGenericClass.kt"); + } + + @TestMetadata("methodToProperty.kt") + public void testMethodToProperty() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/methodToProperty.kt"); + } + + @TestMetadata("noReplacement.kt") + public void testNoReplacement() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/noReplacement.kt"); + } + + @TestMetadata("objects.kt") + public void testObjects() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/objects.kt"); + } + + @TestMetadata("objectsInQualified.kt") + public void testObjectsInQualified() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/objectsInQualified.kt"); + } + + @TestMetadata("operatorCall.kt") + public void testOperatorCall() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/operatorCall.kt"); + } + + @TestMetadata("operatorCall2.kt") + public void testOperatorCall2() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/operatorCall2.kt"); + } + + @TestMetadata("parameters.kt") + public void testParameters() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/parameters.kt"); + } + + @TestMetadata("propertyAssignment.kt") + public void testPropertyAssignment() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/propertyAssignment.kt"); + } + + @TestMetadata("propertyAssignmentDefaultSetter.kt") + public void testPropertyAssignmentDefaultSetter() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/propertyAssignmentDefaultSetter.kt"); + } + + @TestMetadata("propertyAssignmentNoReceiver.kt") + public void testPropertyAssignmentNoReceiver() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/propertyAssignmentNoReceiver.kt"); + } + + @TestMetadata("propertyAssignmentNoSetter.kt") + public void testPropertyAssignmentNoSetter() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/propertyAssignmentNoSetter.kt"); + } + + @TestMetadata("propertyModification.kt") + public void testPropertyModification() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/propertyModification.kt"); + } + + @TestMetadata("propertyToMethod.kt") + public void testPropertyToMethod() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/propertyToMethod.kt"); + } + + @TestMetadata("propertyToSyntheticExtension.kt") + public void testPropertyToSyntheticExtension() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/propertyToSyntheticExtension.kt"); + } + + @TestMetadata("qualifiedReference.kt") + public void testQualifiedReference() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/qualifiedReference.kt"); + } + + @TestMetadata("replaceCallWithArgument.kt") + public void testReplaceCallWithArgument() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/replaceCallWithArgument.kt"); + } + + @TestMetadata("replaceCallWithReceiver.kt") + public void testReplaceCallWithReceiver() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/replaceCallWithReceiver.kt"); + } + + @TestMetadata("shortenReferences.kt") + public void testShortenReferences() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/shortenReferences.kt"); + } + + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/simple.kt"); + } + + @TestMetadata("stringTemplate.kt") + public void testStringTemplate() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/stringTemplate.kt"); + } + + @TestMetadata("suspendLambda.kt") + public void testSuspendLambda() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/suspendLambda.kt"); + } + + @TestMetadata("toOuterClassMethod.kt") + public void testToOuterClassMethod() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/toOuterClassMethod.kt"); + } + + @TestMetadata("twoValuesCombined.kt") + public void testTwoValuesCombined() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/twoValuesCombined.kt"); + } + + @TestMetadata("usageInDerivedClass.kt") + public void testUsageInDerivedClass() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/usageInDerivedClass.kt"); + } + + @TestMetadata("usageInDerivedClassGeneric.kt") + public void testUsageInDerivedClassGeneric() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/usageInDerivedClassGeneric.kt"); + } + + @TestMetadata("withInnerFunction.kt") + public void testWithInnerFunction() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/withInnerFunction.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/vararg") + public static class Vararg extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("addedNamedArgumentAfterRuntime.kt") + public void testAddedNamedArgumentAfterRuntime() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/vararg/addedNamedArgumentAfterRuntime.kt"); + } + + @TestMetadata("addedPositionalArgumentAfterRuntime.kt") + public void testAddedPositionalArgumentAfterRuntime() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/vararg/addedPositionalArgumentAfterRuntime.kt"); + } + + @TestMetadata("addedSpreadArgumentAfterRuntime.kt") + public void testAddedSpreadArgumentAfterRuntime() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/vararg/addedSpreadArgumentAfterRuntime.kt"); + } + + @TestMetadata("booleanArrayRuntime.kt") + public void testBooleanArrayRuntime() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/vararg/booleanArrayRuntime.kt"); + } + + @TestMetadata("byteArrayRuntime.kt") + public void testByteArrayRuntime() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/vararg/byteArrayRuntime.kt"); + } + + @TestMetadata("doNotShortenUserReferences2Runtime.kt") + public void testDoNotShortenUserReferences2Runtime() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/vararg/doNotShortenUserReferences2Runtime.kt"); + } + + @TestMetadata("doNotShortenUserReferencesRuntime.kt") + public void testDoNotShortenUserReferencesRuntime() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/vararg/doNotShortenUserReferencesRuntime.kt"); + } + + @TestMetadata("doNotSimplifyOriginalCallRuntime.kt") + public void testDoNotSimplifyOriginalCallRuntime() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/vararg/doNotSimplifyOriginalCallRuntime.kt"); + } + + @TestMetadata("doubleArrayRuntime.kt") + public void testDoubleArrayRuntime() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/vararg/doubleArrayRuntime.kt"); + } + + @TestMetadata("floatArrayRuntime.kt") + public void testFloatArrayRuntime() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/vararg/floatArrayRuntime.kt"); + } + + @TestMetadata("longArrayRuntime.kt") + public void testLongArrayRuntime() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/vararg/longArrayRuntime.kt"); + } + + @TestMetadata("multipleSpreadArguments2Runtime.kt") + public void testMultipleSpreadArguments2Runtime() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/vararg/multipleSpreadArguments2Runtime.kt"); + } + + @TestMetadata("multipleSpreadArgumentsRuntime.kt") + public void testMultipleSpreadArgumentsRuntime() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/vararg/multipleSpreadArgumentsRuntime.kt"); + } + + @TestMetadata("noImportRuntime.kt") + public void testNoImportRuntime() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/vararg/noImportRuntime.kt"); + } + + @TestMetadata("shortArrayRuntime.kt") + public void testShortArrayRuntime() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/vararg/shortArrayRuntime.kt"); + } + + @TestMetadata("vararg1Runtime.kt") + public void testVararg1Runtime() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/vararg/vararg1Runtime.kt"); + } + + @TestMetadata("vararg2Runtime.kt") + public void testVararg2Runtime() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/vararg/vararg2Runtime.kt"); + } + + @TestMetadata("vararg3Runtime.kt") + public void testVararg3Runtime() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/vararg/vararg3Runtime.kt"); + } + + @TestMetadata("vararg4.kt") + public void testVararg4() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/vararg/vararg4.kt"); + } + + @TestMetadata("vararg5.kt") + public void testVararg5() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/vararg/vararg5.kt"); + } + + @TestMetadata("vararg6Runtime.kt") + public void testVararg6Runtime() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/vararg/vararg6Runtime.kt"); + } + + @TestMetadata("vararg7.kt") + public void testVararg7() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/vararg/vararg7.kt"); + } + + @TestMetadata("vararg8Runtime.kt") + public void testVararg8Runtime() throws Exception { + runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/vararg/vararg8Runtime.kt"); + } + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/equalityNotApplicable") + public abstract static class EqualityNotApplicable extends AbstractHighLevelQuickFixTest { + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/equalityNotApplicable/charLiteralConversion") + public static class CharLiteralConversion extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("charEqString.kt") + public void testCharEqString() throws Exception { + runTest("../../../idea/tests/testData/quickfix/equalityNotApplicable/charLiteralConversion/charEqString.kt"); + } + + @TestMetadata("charEqString2.kt") + public void testCharEqString2() throws Exception { + runTest("../../../idea/tests/testData/quickfix/equalityNotApplicable/charLiteralConversion/charEqString2.kt"); + } + + @TestMetadata("charEqString3.kt") + public void testCharEqString3() throws Exception { + runTest("../../../idea/tests/testData/quickfix/equalityNotApplicable/charLiteralConversion/charEqString3.kt"); + } + + @TestMetadata("charEqString4.kt") + public void testCharEqString4() throws Exception { + runTest("../../../idea/tests/testData/quickfix/equalityNotApplicable/charLiteralConversion/charEqString4.kt"); + } + + @TestMetadata("charEqStringDoubleQuote.kt") + public void testCharEqStringDoubleQuote() throws Exception { + runTest("../../../idea/tests/testData/quickfix/equalityNotApplicable/charLiteralConversion/charEqStringDoubleQuote.kt"); + } + + @TestMetadata("charEqStringSingleQuote.kt") + public void testCharEqStringSingleQuote() throws Exception { + runTest("../../../idea/tests/testData/quickfix/equalityNotApplicable/charLiteralConversion/charEqStringSingleQuote.kt"); + } + + @TestMetadata("interpolation.kt") + public void testInterpolation() throws Exception { + runTest("../../../idea/tests/testData/quickfix/equalityNotApplicable/charLiteralConversion/interpolation.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/equalityNotApplicable/numberConversion") + public static class NumberConversion extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("left.kt") + public void testLeft() throws Exception { + runTest("../../../idea/tests/testData/quickfix/equalityNotApplicable/numberConversion/left.kt"); + } + + @TestMetadata("nullableLeft.kt") + public void testNullableLeft() throws Exception { + runTest("../../../idea/tests/testData/quickfix/equalityNotApplicable/numberConversion/nullableLeft.kt"); + } + + @TestMetadata("nullableRight.kt") + public void testNullableRight() throws Exception { + runTest("../../../idea/tests/testData/quickfix/equalityNotApplicable/numberConversion/nullableRight.kt"); + } + + @TestMetadata("right.kt") + public void testRight() throws Exception { + runTest("../../../idea/tests/testData/quickfix/equalityNotApplicable/numberConversion/right.kt"); + } + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/explicitlyIgnoreReturnValue") + public static class ExplicitlyIgnoreReturnValue extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("ignoredWithAnnotation.kt") + public void testIgnoredWithAnnotation() throws Exception { + runTest("../../../idea/tests/testData/quickfix/explicitlyIgnoreReturnValue/ignoredWithAnnotation.kt"); + } + + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("../../../idea/tests/testData/quickfix/explicitlyIgnoreReturnValue/simple.kt"); + } + } + @RunWith(JUnit3RunnerWithInners.class) @TestMetadata("../../../idea/tests/testData/quickfix/expressions") public static class Expressions extends AbstractHighLevelQuickFixTest { @@ -1675,8 +8126,8 @@ public abstract class HighLevelQuickFixTestGenerated extends AbstractHighLevelQu } @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/explicitlyIgnoreReturnValue") - public static class ExplicitlyIgnoreReturnValue extends AbstractHighLevelQuickFixTest { + @TestMetadata("../../../idea/tests/testData/quickfix/final") + public static class Final extends AbstractHighLevelQuickFixTest { @java.lang.Override @org.jetbrains.annotations.NotNull public final KotlinPluginMode getPluginMode() { @@ -1687,17 +8138,855 @@ public abstract class HighLevelQuickFixTestGenerated extends AbstractHighLevelQu KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); } - @TestMetadata("ignoredWithAnnotation.kt") - public void testIgnoredWithAnnotation() throws Exception { - runTest("../../../idea/tests/testData/quickfix/explicitlyIgnoreReturnValue/ignoredWithAnnotation.kt"); + @TestMetadata("mustBeInitializedOrBeFinal.kt") + public void testMustBeInitializedOrBeFinal() throws Exception { + runTest("../../../idea/tests/testData/quickfix/final/mustBeInitializedOrBeFinal.kt"); + } + + @TestMetadata("mustBeInitializedOrBeFinalOverride.kt") + public void testMustBeInitializedOrBeFinalOverride() throws Exception { + runTest("../../../idea/tests/testData/quickfix/final/mustBeInitializedOrBeFinalOverride.kt"); + } + + @TestMetadata("mustBeInitializedOrBeFinalWarning.kt") + public void testMustBeInitializedOrBeFinalWarning() throws Exception { + runTest("../../../idea/tests/testData/quickfix/final/mustBeInitializedOrBeFinalWarning.kt"); + } + + @TestMetadata("mustBeInitializedOrFinalOrAbstract.kt") + public void testMustBeInitializedOrFinalOrAbstract() throws Exception { + runTest("../../../idea/tests/testData/quickfix/final/mustBeInitializedOrFinalOrAbstract.kt"); + } + + @TestMetadata("mustBeInitializedOrFinalOrAbstractWarning.kt") + public void testMustBeInitializedOrFinalOrAbstractWarning() throws Exception { + runTest("../../../idea/tests/testData/quickfix/final/mustBeInitializedOrFinalOrAbstractWarning.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/foldTryCatch") + public static class FoldTryCatch extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("conditional.kt") + public void testConditional() throws Exception { + runTest("../../../idea/tests/testData/quickfix/foldTryCatch/conditional.kt"); + } + + @TestMetadata("emptyFinally.kt") + public void testEmptyFinally() throws Exception { + runTest("../../../idea/tests/testData/quickfix/foldTryCatch/emptyFinally.kt"); + } + + @TestMetadata("multipleExceptions.kt") + public void testMultipleExceptions() throws Exception { + runTest("../../../idea/tests/testData/quickfix/foldTryCatch/multipleExceptions.kt"); + } + + @TestMetadata("shadow.kt") + public void testShadow() throws Exception { + runTest("../../../idea/tests/testData/quickfix/foldTryCatch/shadow.kt"); } @TestMetadata("simple.kt") public void testSimple() throws Exception { - runTest("../../../idea/tests/testData/quickfix/explicitlyIgnoreReturnValue/simple.kt"); + runTest("../../../idea/tests/testData/quickfix/foldTryCatch/simple.kt"); } } + + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/implement") + public static class Implement extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("abstract.kt") + public void testAbstract() throws Exception { + runTest("../../../idea/tests/testData/quickfix/implement/abstract.kt"); + } + + @TestMetadata("annotation.kt") + public void testAnnotation() throws Exception { + runTest("../../../idea/tests/testData/quickfix/implement/annotation.kt"); + } + + @TestMetadata("dataClass.kt") + public void testDataClass() throws Exception { + runTest("../../../idea/tests/testData/quickfix/implement/dataClass.kt"); + } + + @TestMetadata("dataClass2.kt") + public void testDataClass2() throws Exception { + runTest("../../../idea/tests/testData/quickfix/implement/dataClass2.kt"); + } + + @TestMetadata("dataClass3.kt") + public void testDataClass3() throws Exception { + runTest("../../../idea/tests/testData/quickfix/implement/dataClass3.kt"); + } + + @TestMetadata("doNotAddExpectForVal.kt") + public void testDoNotAddExpectForVal() throws Exception { + runTest("../../../idea/tests/testData/quickfix/implement/doNotAddExpectForVal.kt"); + } + + @TestMetadata("doNotAddHeader.kt") + public void testDoNotAddHeader() throws Exception { + runTest("../../../idea/tests/testData/quickfix/implement/doNotAddHeader.kt"); + } + + @TestMetadata("enum.kt") + public void testEnum() throws Exception { + runTest("../../../idea/tests/testData/quickfix/implement/enum.kt"); + } + + @TestMetadata("fakeOverride.kt") + public void testFakeOverride() throws Exception { + runTest("../../../idea/tests/testData/quickfix/implement/fakeOverride.kt"); + } + + @TestMetadata("finalClass.kt") + public void testFinalClass() throws Exception { + runTest("../../../idea/tests/testData/quickfix/implement/finalClass.kt"); + } + + @TestMetadata("hasImplementedInPrimaryConstructor.kt") + public void testHasImplementedInPrimaryConstructor() throws Exception { + runTest("../../../idea/tests/testData/quickfix/implement/hasImplementedInPrimaryConstructor.kt"); + } + + @TestMetadata("hasImplementedInPrimaryConstructor2.kt") + public void testHasImplementedInPrimaryConstructor2() throws Exception { + runTest("../../../idea/tests/testData/quickfix/implement/hasImplementedInPrimaryConstructor2.kt"); + } + + @TestMetadata("hasImplementedInPrimaryConstructor3.kt") + public void testHasImplementedInPrimaryConstructor3() throws Exception { + runTest("../../../idea/tests/testData/quickfix/implement/hasImplementedInPrimaryConstructor3.kt"); + } + + @TestMetadata("inCompanion.kt") + public void testInCompanion() throws Exception { + runTest("../../../idea/tests/testData/quickfix/implement/inCompanion.kt"); + } + + @TestMetadata("inInternalCompanion.kt") + public void testInInternalCompanion() throws Exception { + runTest("../../../idea/tests/testData/quickfix/implement/inInternalCompanion.kt"); + } + + @TestMetadata("inPrivateCompanion.kt") + public void testInPrivateCompanion() throws Exception { + runTest("../../../idea/tests/testData/quickfix/implement/inPrivateCompanion.kt"); + } + + @TestMetadata("inProtectedCompanion.kt") + public void testInProtectedCompanion() throws Exception { + runTest("../../../idea/tests/testData/quickfix/implement/inProtectedCompanion.kt"); + } + + @TestMetadata("incorrectRange.kt") + public void testIncorrectRange() throws Exception { + runTest("../../../idea/tests/testData/quickfix/implement/incorrectRange.kt"); + } + + @TestMetadata("inner.kt") + public void testInner() throws Exception { + runTest("../../../idea/tests/testData/quickfix/implement/inner.kt"); + } + + @TestMetadata("interface.kt") + public void testInterface() throws Exception { + runTest("../../../idea/tests/testData/quickfix/implement/interface.kt"); + } + + @TestMetadata("local.kt") + public void testLocal() throws Exception { + runTest("../../../idea/tests/testData/quickfix/implement/local.kt"); + } + + @TestMetadata("manyImplMemberNotImplemented.kt") + public void testManyImplMemberNotImplemented() throws Exception { + runTest("../../../idea/tests/testData/quickfix/implement/manyImplMemberNotImplemented.kt"); + } + + @TestMetadata("manyInterfacesMemberNotImplemented.kt") + public void testManyInterfacesMemberNotImplemented() throws Exception { + runTest("../../../idea/tests/testData/quickfix/implement/manyInterfacesMemberNotImplemented.kt"); + } + + @TestMetadata("nested.kt") + public void testNested() throws Exception { + runTest("../../../idea/tests/testData/quickfix/implement/nested.kt"); + } + + @TestMetadata("nestedPrivateInterface.kt") + public void testNestedPrivateInterface() throws Exception { + runTest("../../../idea/tests/testData/quickfix/implement/nestedPrivateInterface.kt"); + } + + @TestMetadata("noDefaultConstructor.kt") + public void testNoDefaultConstructor() throws Exception { + runTest("../../../idea/tests/testData/quickfix/implement/noDefaultConstructor.kt"); + } + + @TestMetadata("private.kt") + public void testPrivate() throws Exception { + runTest("../../../idea/tests/testData/quickfix/implement/private.kt"); + } + + @TestMetadata("privateConstructor.kt") + public void testPrivateConstructor() throws Exception { + runTest("../../../idea/tests/testData/quickfix/implement/privateConstructor.kt"); + } + + @TestMetadata("privateNested.kt") + public void testPrivateNested() throws Exception { + runTest("../../../idea/tests/testData/quickfix/implement/privateNested.kt"); + } + + @TestMetadata("privateNestedWithConflict.kt") + public void testPrivateNestedWithConflict() throws Exception { + runTest("../../../idea/tests/testData/quickfix/implement/privateNestedWithConflict.kt"); + } + + @TestMetadata("protected.kt") + public void testProtected() throws Exception { + runTest("../../../idea/tests/testData/quickfix/implement/protected.kt"); + } + + @TestMetadata("sealed.kt") + public void testSealed() throws Exception { + runTest("../../../idea/tests/testData/quickfix/implement/sealed.kt"); + } + + @TestMetadata("sealedAfter15.kt") + public void testSealedAfter15() throws Exception { + runTest("../../../idea/tests/testData/quickfix/implement/sealedAfter15.kt"); + } + + @TestMetadata("sealedEmpty.kt") + public void testSealedEmpty() throws Exception { + runTest("../../../idea/tests/testData/quickfix/implement/sealedEmpty.kt"); + } + + @TestMetadata("sealedEmptyAfter15.kt") + public void testSealedEmptyAfter15() throws Exception { + runTest("../../../idea/tests/testData/quickfix/implement/sealedEmptyAfter15.kt"); + } + + @TestMetadata("sealedWithConflict.kt") + public void testSealedWithConflict() throws Exception { + runTest("../../../idea/tests/testData/quickfix/implement/sealedWithConflict.kt"); + } + + @TestMetadata("sealedWithConflictAfter15.kt") + public void testSealedWithConflictAfter15() throws Exception { + runTest("../../../idea/tests/testData/quickfix/implement/sealedWithConflictAfter15.kt"); + } + + @TestMetadata("typeParameter.kt") + public void testTypeParameter() throws Exception { + runTest("../../../idea/tests/testData/quickfix/implement/typeParameter.kt"); + } + + @TestMetadata("typeParameterOut.kt") + public void testTypeParameterOut() throws Exception { + runTest("../../../idea/tests/testData/quickfix/implement/typeParameterOut.kt"); + } + + @TestMetadata("typeParameterWhere.kt") + public void testTypeParameterWhere() throws Exception { + runTest("../../../idea/tests/testData/quickfix/implement/typeParameterWhere.kt"); + } + + @TestMetadata("typeParametersClass.kt") + public void testTypeParametersClass() throws Exception { + runTest("../../../idea/tests/testData/quickfix/implement/typeParametersClass.kt"); + } + } + + + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/increaseVisibility") + public abstract static class IncreaseVisibility extends AbstractHighLevelQuickFixTest { + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/increaseVisibility/invisibleFake") + public static class InvisibleFake extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("methodToInternal.kt") + public void testMethodToInternal() throws Exception { + runTest("../../../idea/tests/testData/quickfix/increaseVisibility/invisibleFake/methodToInternal.kt"); + } + + @TestMetadata("methodToNotProtected.kt") + public void testMethodToNotProtected() throws Exception { + runTest("../../../idea/tests/testData/quickfix/increaseVisibility/invisibleFake/methodToNotProtected.kt"); + } + + @TestMetadata("methodToProtected.kt") + public void testMethodToProtected() throws Exception { + runTest("../../../idea/tests/testData/quickfix/increaseVisibility/invisibleFake/methodToProtected.kt"); + } + + @TestMetadata("methodToProtected2.kt") + public void testMethodToProtected2() throws Exception { + runTest("../../../idea/tests/testData/quickfix/increaseVisibility/invisibleFake/methodToProtected2.kt"); + } + + @TestMetadata("methodToPublic.kt") + public void testMethodToPublic() throws Exception { + runTest("../../../idea/tests/testData/quickfix/increaseVisibility/invisibleFake/methodToPublic.kt"); + } + + @TestMetadata("propertyToInternal.kt") + public void testPropertyToInternal() throws Exception { + runTest("../../../idea/tests/testData/quickfix/increaseVisibility/invisibleFake/propertyToInternal.kt"); + } + + @TestMetadata("propertyToNotProtected.kt") + public void testPropertyToNotProtected() throws Exception { + runTest("../../../idea/tests/testData/quickfix/increaseVisibility/invisibleFake/propertyToNotProtected.kt"); + } + + @TestMetadata("propertyToProtected.kt") + public void testPropertyToProtected() throws Exception { + runTest("../../../idea/tests/testData/quickfix/increaseVisibility/invisibleFake/propertyToProtected.kt"); + } + + @TestMetadata("propertyToProtected2.kt") + public void testPropertyToProtected2() throws Exception { + runTest("../../../idea/tests/testData/quickfix/increaseVisibility/invisibleFake/propertyToProtected2.kt"); + } + + @TestMetadata("propertyToPublic.kt") + public void testPropertyToPublic() throws Exception { + runTest("../../../idea/tests/testData/quickfix/increaseVisibility/invisibleFake/propertyToPublic.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/increaseVisibility") + public static class Uncategorized extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("exposedParameterType.kt") + public void testExposedParameterType() throws Exception { + runTest("../../../idea/tests/testData/quickfix/increaseVisibility/exposedParameterType.kt"); + } + + @TestMetadata("exposedParameterTypePublic.kt") + public void testExposedParameterTypePublic() throws Exception { + runTest("../../../idea/tests/testData/quickfix/increaseVisibility/exposedParameterTypePublic.kt"); + } + + @TestMetadata("exposedPropertyType.kt") + public void testExposedPropertyType() throws Exception { + runTest("../../../idea/tests/testData/quickfix/increaseVisibility/exposedPropertyType.kt"); + } + + @TestMetadata("exposedReceiverType.kt") + public void testExposedReceiverType() throws Exception { + runTest("../../../idea/tests/testData/quickfix/increaseVisibility/exposedReceiverType.kt"); + } + + @TestMetadata("exposedReturnType.kt") + public void testExposedReturnType() throws Exception { + runTest("../../../idea/tests/testData/quickfix/increaseVisibility/exposedReturnType.kt"); + } + + @TestMetadata("exposedSuperClass.kt") + public void testExposedSuperClass() throws Exception { + runTest("../../../idea/tests/testData/quickfix/increaseVisibility/exposedSuperClass.kt"); + } + + @TestMetadata("exposedSuperClassProtectedBase.kt") + public void testExposedSuperClassProtectedBase() throws Exception { + runTest("../../../idea/tests/testData/quickfix/increaseVisibility/exposedSuperClassProtectedBase.kt"); + } + + @TestMetadata("exposedSuperClassProtectedInAnother.kt") + public void testExposedSuperClassProtectedInAnother() throws Exception { + runTest("../../../idea/tests/testData/quickfix/increaseVisibility/exposedSuperClassProtectedInAnother.kt"); + } + + @TestMetadata("exposedSuperClassProtectedInAnotherFromPrivate.kt") + public void testExposedSuperClassProtectedInAnotherFromPrivate() throws Exception { + runTest("../../../idea/tests/testData/quickfix/increaseVisibility/exposedSuperClassProtectedInAnotherFromPrivate.kt"); + } + + @TestMetadata("exposedSuperInterface.kt") + public void testExposedSuperInterface() throws Exception { + runTest("../../../idea/tests/testData/quickfix/increaseVisibility/exposedSuperInterface.kt"); + } + + @TestMetadata("exposedTypeParameterBound.kt") + public void testExposedTypeParameterBound() throws Exception { + runTest("../../../idea/tests/testData/quickfix/increaseVisibility/exposedTypeParameterBound.kt"); + } + + @TestMetadata("exposedTypeParameterBoundNested.kt") + public void testExposedTypeParameterBoundNested() throws Exception { + runTest("../../../idea/tests/testData/quickfix/increaseVisibility/exposedTypeParameterBoundNested.kt"); + } + + @TestMetadata("invalidSealedClassInheritance.kt") + public void testInvalidSealedClassInheritance() throws Exception { + runTest("../../../idea/tests/testData/quickfix/increaseVisibility/invalidSealedClassInheritance.kt"); + } + + @TestMetadata("overriddenProtectedMemberToPublicSingleFile.kt") + public void testOverriddenProtectedMemberToPublicSingleFile() throws Exception { + runTest("../../../idea/tests/testData/quickfix/increaseVisibility/overriddenProtectedMemberToPublicSingleFile.kt"); + } + + @TestMetadata("overriddenProtectedMemberToPublicSingleFile1.kt") + public void testOverriddenProtectedMemberToPublicSingleFile1() throws Exception { + runTest("../../../idea/tests/testData/quickfix/increaseVisibility/overriddenProtectedMemberToPublicSingleFile1.kt"); + } + + @TestMetadata("privateEmptyPrimaryConstructorToPublic.kt") + public void testPrivateEmptyPrimaryConstructorToPublic() throws Exception { + runTest("../../../idea/tests/testData/quickfix/increaseVisibility/privateEmptyPrimaryConstructorToPublic.kt"); + } + + @TestMetadata("privateInFileExposesPrivateInFile.kt") + public void testPrivateInFileExposesPrivateInFile() throws Exception { + runTest("../../../idea/tests/testData/quickfix/increaseVisibility/privateInFileExposesPrivateInFile.kt"); + } + + @TestMetadata("privateMemberToInternalSingleFile.kt") + public void testPrivateMemberToInternalSingleFile() throws Exception { + runTest("../../../idea/tests/testData/quickfix/increaseVisibility/privateMemberToInternalSingleFile.kt"); + } + + @TestMetadata("privateMemberToInternalWithExposed.kt") + public void testPrivateMemberToInternalWithExposed() throws Exception { + runTest("../../../idea/tests/testData/quickfix/increaseVisibility/privateMemberToInternalWithExposed.kt"); + } + + @TestMetadata("privateMemberToPublicSingleFile.kt") + public void testPrivateMemberToPublicSingleFile() throws Exception { + runTest("../../../idea/tests/testData/quickfix/increaseVisibility/privateMemberToPublicSingleFile.kt"); + } + + @TestMetadata("privateSealedClassInheritance.kt") + public void testPrivateSealedClassInheritance() throws Exception { + runTest("../../../idea/tests/testData/quickfix/increaseVisibility/privateSealedClassInheritance.kt"); + } + + @TestMetadata("privateSetterToInternal.kt") + public void testPrivateSetterToInternal() throws Exception { + runTest("../../../idea/tests/testData/quickfix/increaseVisibility/privateSetterToInternal.kt"); + } + + @TestMetadata("privateSetterToPublic.kt") + public void testPrivateSetterToPublic() throws Exception { + runTest("../../../idea/tests/testData/quickfix/increaseVisibility/privateSetterToPublic.kt"); + } + + @TestMetadata("protectedMemberToPublicSingleFile.kt") + public void testProtectedMemberToPublicSingleFile() throws Exception { + runTest("../../../idea/tests/testData/quickfix/increaseVisibility/protectedMemberToPublicSingleFile.kt"); + } + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/initializeWithConstructorParameter") + public static class InitializeWithConstructorParameter extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("constructorWithThisDelegation.kt") + public void testConstructorWithThisDelegation() throws Exception { + runTest("../../../idea/tests/testData/quickfix/initializeWithConstructorParameter/constructorWithThisDelegation.kt"); + } + + @TestMetadata("genericParameterInScope.kt") + public void testGenericParameterInScope() throws Exception { + runTest("../../../idea/tests/testData/quickfix/initializeWithConstructorParameter/genericParameterInScope.kt"); + } + + @TestMetadata("localVar.kt") + public void testLocalVar() throws Exception { + runTest("../../../idea/tests/testData/quickfix/initializeWithConstructorParameter/localVar.kt"); + } + + @TestMetadata("memberPropertyInClassNameClashInPrimaryConstructor.kt") + public void testMemberPropertyInClassNameClashInPrimaryConstructor() throws Exception { + runTest("../../../idea/tests/testData/quickfix/initializeWithConstructorParameter/memberPropertyInClassNameClashInPrimaryConstructor.kt"); + } + + @TestMetadata("memberPropertyInClassNameClashInPrimaryConstructor2.kt") + public void testMemberPropertyInClassNameClashInPrimaryConstructor2() throws Exception { + runTest("../../../idea/tests/testData/quickfix/initializeWithConstructorParameter/memberPropertyInClassNameClashInPrimaryConstructor2.kt"); + } + + @TestMetadata("memberPropertyInClassNameClashInSecondaryConstructor.kt") + public void testMemberPropertyInClassNameClashInSecondaryConstructor() throws Exception { + runTest("../../../idea/tests/testData/quickfix/initializeWithConstructorParameter/memberPropertyInClassNameClashInSecondaryConstructor.kt"); + } + + @TestMetadata("memberPropertyInClassNoConstructors.kt") + public void testMemberPropertyInClassNoConstructors() throws Exception { + runTest("../../../idea/tests/testData/quickfix/initializeWithConstructorParameter/memberPropertyInClassNoConstructors.kt"); + } + + @TestMetadata("memberPropertyInClassPrimaryAndSecondaryConstructors.kt") + public void testMemberPropertyInClassPrimaryAndSecondaryConstructors() throws Exception { + runTest("../../../idea/tests/testData/quickfix/initializeWithConstructorParameter/memberPropertyInClassPrimaryAndSecondaryConstructors.kt"); + } + + @TestMetadata("memberPropertyInClassPrimaryConstructorOnly.kt") + public void testMemberPropertyInClassPrimaryConstructorOnly() throws Exception { + runTest("../../../idea/tests/testData/quickfix/initializeWithConstructorParameter/memberPropertyInClassPrimaryConstructorOnly.kt"); + } + + @TestMetadata("memberPropertyInClassSecondaryConstructorsOnly.kt") + public void testMemberPropertyInClassSecondaryConstructorsOnly() throws Exception { + runTest("../../../idea/tests/testData/quickfix/initializeWithConstructorParameter/memberPropertyInClassSecondaryConstructorsOnly.kt"); + } + + @TestMetadata("memberPropertyInInterface.kt") + public void testMemberPropertyInInterface() throws Exception { + runTest("../../../idea/tests/testData/quickfix/initializeWithConstructorParameter/memberPropertyInInterface.kt"); + } + + @TestMetadata("memberPropertyInObject.kt") + public void testMemberPropertyInObject() throws Exception { + runTest("../../../idea/tests/testData/quickfix/initializeWithConstructorParameter/memberPropertyInObject.kt"); + } + + @TestMetadata("memberPropertyNoAccessorsInClassNoConstructors.kt") + public void testMemberPropertyNoAccessorsInClassNoConstructors() throws Exception { + runTest("../../../idea/tests/testData/quickfix/initializeWithConstructorParameter/memberPropertyNoAccessorsInClassNoConstructors.kt"); + } + + @TestMetadata("memberPropertyNoAccessorsInClassPrimaryAndSecondaryConstructors.kt") + public void testMemberPropertyNoAccessorsInClassPrimaryAndSecondaryConstructors() throws Exception { + runTest("../../../idea/tests/testData/quickfix/initializeWithConstructorParameter/memberPropertyNoAccessorsInClassPrimaryAndSecondaryConstructors.kt"); + } + + @TestMetadata("memberPropertyNoAccessorsInClassPrimaryConstructorOnly.kt") + public void testMemberPropertyNoAccessorsInClassPrimaryConstructorOnly() throws Exception { + runTest("../../../idea/tests/testData/quickfix/initializeWithConstructorParameter/memberPropertyNoAccessorsInClassPrimaryConstructorOnly.kt"); + } + + @TestMetadata("memberPropertyWithDelegateRuntime.kt") + public void testMemberPropertyWithDelegateRuntime() throws Exception { + runTest("../../../idea/tests/testData/quickfix/initializeWithConstructorParameter/memberPropertyWithDelegateRuntime.kt"); + } + + @TestMetadata("multipleConstructors.kt") + public void testMultipleConstructors() throws Exception { + runTest("../../../idea/tests/testData/quickfix/initializeWithConstructorParameter/multipleConstructors.kt"); + } + + @TestMetadata("multipleConstructorsClash.kt") + public void testMultipleConstructorsClash() throws Exception { + runTest("../../../idea/tests/testData/quickfix/initializeWithConstructorParameter/multipleConstructorsClash.kt"); + } + + @TestMetadata("multipleConstructorsClash2.kt") + public void testMultipleConstructorsClash2() throws Exception { + runTest("../../../idea/tests/testData/quickfix/initializeWithConstructorParameter/multipleConstructorsClash2.kt"); + } + + @TestMetadata("namelessProperty.kt") + public void testNamelessProperty() throws Exception { + runTest("../../../idea/tests/testData/quickfix/initializeWithConstructorParameter/namelessProperty.kt"); + } + + @TestMetadata("topLevelProperty.kt") + public void testTopLevelProperty() throws Exception { + runTest("../../../idea/tests/testData/quickfix/initializeWithConstructorParameter/topLevelProperty.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/inlineClass") + public static class InlineClass extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("inlineClassDeprecated.kt") + public void testInlineClassDeprecated() throws Exception { + runTest("../../../idea/tests/testData/quickfix/inlineClass/inlineClassDeprecated.kt"); + } + + @TestMetadata("inlineClassDeprecated_js.kt") + public void testInlineClassDeprecated_js() throws Exception { + runTest("../../../idea/tests/testData/quickfix/inlineClass/inlineClassDeprecated_js.kt"); + } + + @TestMetadata("inlineClassWithGeneric.kt") + public void testInlineClassWithGeneric() throws Exception { + runTest("../../../idea/tests/testData/quickfix/inlineClass/inlineClassWithGeneric.kt"); + } + + @TestMetadata("publicInlineClass.kt") + public void testPublicInlineClass() throws Exception { + runTest("../../../idea/tests/testData/quickfix/inlineClass/publicInlineClass.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/inlineTypeParameterFix") + public static class InlineTypeParameterFix extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("basic.kt") + public void testBasic() throws Exception { + runTest("../../../idea/tests/testData/quickfix/inlineTypeParameterFix/basic.kt"); + } + + @TestMetadata("basicMultipleDef.kt") + public void testBasicMultipleDef() throws Exception { + runTest("../../../idea/tests/testData/quickfix/inlineTypeParameterFix/basicMultipleDef.kt"); + } + + @TestMetadata("function.kt") + public void testFunction() throws Exception { + runTest("../../../idea/tests/testData/quickfix/inlineTypeParameterFix/function.kt"); + } + + @TestMetadata("nullableTypeParam.kt") + public void testNullableTypeParam() throws Exception { + runTest("../../../idea/tests/testData/quickfix/inlineTypeParameterFix/nullableTypeParam.kt"); + } + + @TestMetadata("typeConstraint.kt") + public void testTypeConstraint() throws Exception { + runTest("../../../idea/tests/testData/quickfix/inlineTypeParameterFix/typeConstraint.kt"); + } + + @TestMetadata("typeConstraintMultipleDef.kt") + public void testTypeConstraintMultipleDef() throws Exception { + runTest("../../../idea/tests/testData/quickfix/inlineTypeParameterFix/typeConstraintMultipleDef.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/insertDelegationCall") + public static class InsertDelegationCall extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("cyclicCallDefaultParam.kt") + public void testCyclicCallDefaultParam() throws Exception { + runTest("../../../idea/tests/testData/quickfix/insertDelegationCall/cyclicCallDefaultParam.kt"); + } + + @TestMetadata("nonApplicableInsertSuper.kt") + public void testNonApplicableInsertSuper() throws Exception { + runTest("../../../idea/tests/testData/quickfix/insertDelegationCall/nonApplicableInsertSuper.kt"); + } + + @TestMetadata("nonApplicableInsertThis.kt") + public void testNonApplicableInsertThis() throws Exception { + runTest("../../../idea/tests/testData/quickfix/insertDelegationCall/nonApplicableInsertThis.kt"); + } + + @TestMetadata("nonApplicableOnEmpty.kt") + public void testNonApplicableOnEmpty() throws Exception { + runTest("../../../idea/tests/testData/quickfix/insertDelegationCall/nonApplicableOnEmpty.kt"); + } + + @TestMetadata("nonApplicableWithOneConstructor.kt") + public void testNonApplicableWithOneConstructor() throws Exception { + runTest("../../../idea/tests/testData/quickfix/insertDelegationCall/nonApplicableWithOneConstructor.kt"); + } + + @TestMetadata("primaryRequiredNoSuper.kt") + public void testPrimaryRequiredNoSuper() throws Exception { + runTest("../../../idea/tests/testData/quickfix/insertDelegationCall/primaryRequiredNoSuper.kt"); + } + + @TestMetadata("primaryRequiredParameterless.kt") + public void testPrimaryRequiredParameterless() throws Exception { + runTest("../../../idea/tests/testData/quickfix/insertDelegationCall/primaryRequiredParameterless.kt"); + } + + @TestMetadata("primaryRequiredWithBody.kt") + public void testPrimaryRequiredWithBody() throws Exception { + runTest("../../../idea/tests/testData/quickfix/insertDelegationCall/primaryRequiredWithBody.kt"); + } + + @TestMetadata("primaryRequiredWithParameter.kt") + public void testPrimaryRequiredWithParameter() throws Exception { + runTest("../../../idea/tests/testData/quickfix/insertDelegationCall/primaryRequiredWithParameter.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/isEnumEntry") + public static class IsEnumEntry extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("is.kt") + public void testIs() throws Exception { + runTest("../../../idea/tests/testData/quickfix/isEnumEntry/is.kt"); + } + + @TestMetadata("isWhenCondition.kt") + public void testIsWhenCondition() throws Exception { + runTest("../../../idea/tests/testData/quickfix/isEnumEntry/isWhenCondition.kt"); + } + + @TestMetadata("notIs.kt") + public void testNotIs() throws Exception { + runTest("../../../idea/tests/testData/quickfix/isEnumEntry/notIs.kt"); + } + + @TestMetadata("notIsWhenCondition.kt") + public void testNotIsWhenCondition() throws Exception { + runTest("../../../idea/tests/testData/quickfix/isEnumEntry/notIsWhenCondition.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/javaClassOnCompanion") + public abstract static class JavaClassOnCompanion extends AbstractHighLevelQuickFixTest { + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/javaClassOnCompanion/replaceWithClassJava") + public static class ReplaceWithClassJava extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("hasType.kt") + public void testHasType() throws Exception { + runTest("../../../idea/tests/testData/quickfix/javaClassOnCompanion/replaceWithClassJava/hasType.kt"); + } + + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("../../../idea/tests/testData/quickfix/javaClassOnCompanion/replaceWithClassJava/simple.kt"); + } + + @TestMetadata("withName.kt") + public void testWithName() throws Exception { + runTest("../../../idea/tests/testData/quickfix/javaClassOnCompanion/replaceWithClassJava/withName.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/javaClassOnCompanion/replaceWithCompanionClassJava") + public static class ReplaceWithCompanionClassJava extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("hasType.kt") + public void testHasType() throws Exception { + runTest("../../../idea/tests/testData/quickfix/javaClassOnCompanion/replaceWithCompanionClassJava/hasType.kt"); + } + + @TestMetadata("namedCompanion.kt") + public void testNamedCompanion() throws Exception { + runTest("../../../idea/tests/testData/quickfix/javaClassOnCompanion/replaceWithCompanionClassJava/namedCompanion.kt"); + } + + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("../../../idea/tests/testData/quickfix/javaClassOnCompanion/replaceWithCompanionClassJava/simple.kt"); + } + + @TestMetadata("withName.kt") + public void testWithName() throws Exception { + runTest("../../../idea/tests/testData/quickfix/javaClassOnCompanion/replaceWithCompanionClassJava/withName.kt"); + } + } + } + + + @RunWith(JUnit3RunnerWithInners.class) @TestMetadata("../../../idea/tests/testData/quickfix/lateinit") public static class Lateinit extends AbstractHighLevelQuickFixTest { @@ -1742,6 +9031,32 @@ public abstract class HighLevelQuickFixTestGenerated extends AbstractHighLevelQu } } + + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/libraries") + public static class Libraries extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("junit.kt") + public void testJunit() throws Exception { + runTest("../../../idea/tests/testData/quickfix/libraries/junit.kt"); + } + + @TestMetadata("testNG.kt") + public void testTestNG() throws Exception { + runTest("../../../idea/tests/testData/quickfix/libraries/testNG.kt"); + } + } + @RunWith(JUnit3RunnerWithInners.class) @TestMetadata("../../../idea/tests/testData/quickfix/localVariableWithTypeParameters") public static class LocalVariableWithTypeParameters extends AbstractHighLevelQuickFixTest { @@ -1761,6 +9076,237 @@ public abstract class HighLevelQuickFixTestGenerated extends AbstractHighLevelQu } } + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/makeConstructorParameterProperty") + public static class MakeConstructorParameterProperty extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("inner.kt") + public void testInner() throws Exception { + runTest("../../../idea/tests/testData/quickfix/makeConstructorParameterProperty/inner.kt"); + } + + @TestMetadata("override.kt") + public void testOverride() throws Exception { + runTest("../../../idea/tests/testData/quickfix/makeConstructorParameterProperty/override.kt"); + } + + @TestMetadata("val.kt") + public void testVal() throws Exception { + runTest("../../../idea/tests/testData/quickfix/makeConstructorParameterProperty/val.kt"); + } + + @TestMetadata("var.kt") + public void testVar() throws Exception { + runTest("../../../idea/tests/testData/quickfix/makeConstructorParameterProperty/var.kt"); + } + + @TestMetadata("vararg.kt") + public void testVararg() throws Exception { + runTest("../../../idea/tests/testData/quickfix/makeConstructorParameterProperty/vararg.kt"); + } + } + + + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/makeTypeParameterReified") + public static class MakeTypeParameterReified extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("noTypeParameter.kt") + public void testNoTypeParameter() throws Exception { + runTest("../../../idea/tests/testData/quickfix/makeTypeParameterReified/noTypeParameter.kt"); + } + + @TestMetadata("noTypeParameter2.kt") + public void testNoTypeParameter2() throws Exception { + runTest("../../../idea/tests/testData/quickfix/makeTypeParameterReified/noTypeParameter2.kt"); + } + + @TestMetadata("typeParameter.kt") + public void testTypeParameter() throws Exception { + runTest("../../../idea/tests/testData/quickfix/makeTypeParameterReified/typeParameter.kt"); + } + } + + + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/memberVisibilityCanBePrivate") + public static class MemberVisibilityCanBePrivate extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("constructorParam.kt") + public void testConstructorParam() throws Exception { + runTest("../../../idea/tests/testData/quickfix/memberVisibilityCanBePrivate/constructorParam.kt"); + } + + @TestMetadata("internal.kt") + public void testInternal() throws Exception { + runTest("../../../idea/tests/testData/quickfix/memberVisibilityCanBePrivate/internal.kt"); + } + + @TestMetadata("noModifier.kt") + public void testNoModifier() throws Exception { + runTest("../../../idea/tests/testData/quickfix/memberVisibilityCanBePrivate/noModifier.kt"); + } + + @TestMetadata("protected.kt") + public void testProtected() throws Exception { + runTest("../../../idea/tests/testData/quickfix/memberVisibilityCanBePrivate/protected.kt"); + } + + @TestMetadata("public.kt") + public void testPublic() throws Exception { + runTest("../../../idea/tests/testData/quickfix/memberVisibilityCanBePrivate/public.kt"); + } + + @TestMetadata("sameClassFunctionCall.kt") + public void testSameClassFunctionCall() throws Exception { + runTest("../../../idea/tests/testData/quickfix/memberVisibilityCanBePrivate/sameClassFunctionCall.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/migration/commasInWhenWithoutArgument") + public static class CommasInWhenWithoutArgument extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("commasInConditionWithNoArguments.kt") + public void testCommasInConditionWithNoArguments() throws Exception { + runTest("../../../idea/tests/testData/quickfix/migration/commasInWhenWithoutArgument/commasInConditionWithNoArguments.kt"); + } + + @TestMetadata("commasInConditionWithNoArguments2.kt") + public void testCommasInConditionWithNoArguments2() throws Exception { + runTest("../../../idea/tests/testData/quickfix/migration/commasInWhenWithoutArgument/commasInConditionWithNoArguments2.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/migration/missingConstructorKeyword") + public static class MissingConstructorKeyword extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("basic.kt") + public void testBasic() throws Exception { + runTest("../../../idea/tests/testData/quickfix/migration/missingConstructorKeyword/basic.kt"); + } + + @TestMetadata("noParentheses.kt") + public void testNoParentheses() throws Exception { + runTest("../../../idea/tests/testData/quickfix/migration/missingConstructorKeyword/noParentheses.kt"); + } + + @TestMetadata("noParenthesesWithAnnotation.kt") + public void testNoParenthesesWithAnnotation() throws Exception { + runTest("../../../idea/tests/testData/quickfix/migration/missingConstructorKeyword/noParenthesesWithAnnotation.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/migration/removeNameFromFunctionExpression") + public static class RemoveNameFromFunctionExpression extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("basic.kt") + public void testBasic() throws Exception { + runTest("../../../idea/tests/testData/quickfix/migration/removeNameFromFunctionExpression/basic.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/migration/typeParameterList") + public static class TypeParameterList extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("basic.kt") + public void testBasic() throws Exception { + runTest("../../../idea/tests/testData/quickfix/migration/typeParameterList/basic.kt"); + } + + @TestMetadata("extension.kt") + public void testExtension() throws Exception { + runTest("../../../idea/tests/testData/quickfix/migration/typeParameterList/extension.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/missingConstructorBrackets") + public static class MissingConstructorBrackets extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("basic.kt") + public void testBasic() throws Exception { + runTest("../../../idea/tests/testData/quickfix/missingConstructorBrackets/basic.kt"); + } + } + @RunWith(JUnit3RunnerWithInners.class) @TestMetadata("../../../idea/tests/testData/quickfix/modifiers") public abstract static class Modifiers extends AbstractHighLevelQuickFixTest { @@ -2302,6 +9848,201 @@ public abstract class HighLevelQuickFixTestGenerated extends AbstractHighLevelQu } } + + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/moveReceiverAnnotation") + public static class MoveReceiverAnnotation extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("fun.kt") + public void testFun() throws Exception { + runTest("../../../idea/tests/testData/quickfix/moveReceiverAnnotation/fun.kt"); + } + + @TestMetadata("notExtensionFun.kt") + public void testNotExtensionFun() throws Exception { + runTest("../../../idea/tests/testData/quickfix/moveReceiverAnnotation/notExtensionFun.kt"); + } + + @TestMetadata("notExtensionVal.kt") + public void testNotExtensionVal() throws Exception { + runTest("../../../idea/tests/testData/quickfix/moveReceiverAnnotation/notExtensionVal.kt"); + } + + @TestMetadata("val.kt") + public void testVal() throws Exception { + runTest("../../../idea/tests/testData/quickfix/moveReceiverAnnotation/val.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/moveToConstructorParameters") + public static class MoveToConstructorParameters extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("localVar.kt") + public void testLocalVar() throws Exception { + runTest("../../../idea/tests/testData/quickfix/moveToConstructorParameters/localVar.kt"); + } + + @TestMetadata("memberExtensionProperty.kt") + public void testMemberExtensionProperty() throws Exception { + runTest("../../../idea/tests/testData/quickfix/moveToConstructorParameters/memberExtensionProperty.kt"); + } + + @TestMetadata("memberPropertyInClassNameClash.kt") + public void testMemberPropertyInClassNameClash() throws Exception { + runTest("../../../idea/tests/testData/quickfix/moveToConstructorParameters/memberPropertyInClassNameClash.kt"); + } + + @TestMetadata("memberPropertyInClassNoPrimaryConstructor.kt") + public void testMemberPropertyInClassNoPrimaryConstructor() throws Exception { + runTest("../../../idea/tests/testData/quickfix/moveToConstructorParameters/memberPropertyInClassNoPrimaryConstructor.kt"); + } + + @TestMetadata("memberPropertyInClassWithConstructorDelegatingToSuper.kt") + public void testMemberPropertyInClassWithConstructorDelegatingToSuper() throws Exception { + runTest("../../../idea/tests/testData/quickfix/moveToConstructorParameters/memberPropertyInClassWithConstructorDelegatingToSuper.kt"); + } + + @TestMetadata("memberPropertyInClassWithImplicitlyDelegatingConstructor.kt") + public void testMemberPropertyInClassWithImplicitlyDelegatingConstructor() throws Exception { + runTest("../../../idea/tests/testData/quickfix/moveToConstructorParameters/memberPropertyInClassWithImplicitlyDelegatingConstructor.kt"); + } + + @TestMetadata("memberPropertyInClassWithPrimaryConstructor.kt") + public void testMemberPropertyInClassWithPrimaryConstructor() throws Exception { + runTest("../../../idea/tests/testData/quickfix/moveToConstructorParameters/memberPropertyInClassWithPrimaryConstructor.kt"); + } + + @TestMetadata("memberPropertyInInterface.kt") + public void testMemberPropertyInInterface() throws Exception { + runTest("../../../idea/tests/testData/quickfix/moveToConstructorParameters/memberPropertyInInterface.kt"); + } + + @TestMetadata("memberPropertyInObject.kt") + public void testMemberPropertyInObject() throws Exception { + runTest("../../../idea/tests/testData/quickfix/moveToConstructorParameters/memberPropertyInObject.kt"); + } + + @TestMetadata("memberPropertyWithDelegateRuntime.kt") + public void testMemberPropertyWithDelegateRuntime() throws Exception { + runTest("../../../idea/tests/testData/quickfix/moveToConstructorParameters/memberPropertyWithDelegateRuntime.kt"); + } + + @TestMetadata("propertyWithModifiersAndComments.kt") + public void testPropertyWithModifiersAndComments() throws Exception { + runTest("../../../idea/tests/testData/quickfix/moveToConstructorParameters/propertyWithModifiersAndComments.kt"); + } + + @TestMetadata("topLevelProperty.kt") + public void testTopLevelProperty() throws Exception { + runTest("../../../idea/tests/testData/quickfix/moveToConstructorParameters/topLevelProperty.kt"); + } + } + + + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/moveTypeAliasToTopLevel") + public static class MoveTypeAliasToTopLevel extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("importList.kt") + public void testImportList() throws Exception { + runTest("../../../idea/tests/testData/quickfix/moveTypeAliasToTopLevel/importList.kt"); + } + + @TestMetadata("inClass.kt") + public void testInClass() throws Exception { + runTest("../../../idea/tests/testData/quickfix/moveTypeAliasToTopLevel/inClass.kt"); + } + + @TestMetadata("inClass2.kt") + public void testInClass2() throws Exception { + runTest("../../../idea/tests/testData/quickfix/moveTypeAliasToTopLevel/inClass2.kt"); + } + + @TestMetadata("inFunction.kt") + public void testInFunction() throws Exception { + runTest("../../../idea/tests/testData/quickfix/moveTypeAliasToTopLevel/inFunction.kt"); + } + + @TestMetadata("inFunction2.kt") + public void testInFunction2() throws Exception { + runTest("../../../idea/tests/testData/quickfix/moveTypeAliasToTopLevel/inFunction2.kt"); + } + + @TestMetadata("package.kt") + public void testPackage() throws Exception { + runTest("../../../idea/tests/testData/quickfix/moveTypeAliasToTopLevel/package.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/namedLambdaContextParameter") + public static class NamedLambdaContextParameter extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("noNameAlready.kt") + public void testNoNameAlready() throws Exception { + runTest("../../../idea/tests/testData/quickfix/namedLambdaContextParameter/noNameAlready.kt"); + } + + @TestMetadata("notLambdaContext.kt") + public void testNotLambdaContext() throws Exception { + runTest("../../../idea/tests/testData/quickfix/namedLambdaContextParameter/notLambdaContext.kt"); + } + + @TestMetadata("oneContext.kt") + public void testOneContext() throws Exception { + runTest("../../../idea/tests/testData/quickfix/namedLambdaContextParameter/oneContext.kt"); + } + + @TestMetadata("twoContexts.kt") + public void testTwoContexts() throws Exception { + runTest("../../../idea/tests/testData/quickfix/namedLambdaContextParameter/twoContexts.kt"); + } + + @TestMetadata("withComments.kt") + public void testWithComments() throws Exception { + runTest("../../../idea/tests/testData/quickfix/namedLambdaContextParameter/withComments.kt"); + } + } + @RunWith(JUnit3RunnerWithInners.class) @TestMetadata("../../../idea/tests/testData/quickfix/nullables") public abstract static class Nullables extends AbstractHighLevelQuickFixTest { @@ -2414,6 +10155,10 @@ public abstract class HighLevelQuickFixTestGenerated extends AbstractHighLevelQu } } + + + + @RunWith(JUnit3RunnerWithInners.class) @TestMetadata("../../../idea/tests/testData/quickfix/override") public abstract static class Override extends AbstractHighLevelQuickFixTest { @@ -2979,6 +10724,562 @@ public abstract class HighLevelQuickFixTestGenerated extends AbstractHighLevelQu } } + + + + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/primitiveCastToConversion") + public static class PrimitiveCastToConversion extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("boolean.kt") + public void testBoolean() throws Exception { + runTest("../../../idea/tests/testData/quickfix/primitiveCastToConversion/boolean.kt"); + } + + @TestMetadata("charToShort.kt") + public void testCharToShort() throws Exception { + runTest("../../../idea/tests/testData/quickfix/primitiveCastToConversion/charToShort.kt"); + } + + @TestMetadata("intToByte.kt") + public void testIntToByte() throws Exception { + runTest("../../../idea/tests/testData/quickfix/primitiveCastToConversion/intToByte.kt"); + } + + @TestMetadata("longToFloat.kt") + public void testLongToFloat() throws Exception { + runTest("../../../idea/tests/testData/quickfix/primitiveCastToConversion/longToFloat.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/properties") + public abstract static class Properties extends AbstractHighLevelQuickFixTest { + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/properties/extensionPropertyInitializerToGetter") + public static class ExtensionPropertyInitializerToGetter extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("baseCase.kt") + public void testBaseCase() throws Exception { + runTest("../../../idea/tests/testData/quickfix/properties/extensionPropertyInitializerToGetter/baseCase.kt"); + } + + @TestMetadata("baseCaseVar.kt") + public void testBaseCaseVar() throws Exception { + runTest("../../../idea/tests/testData/quickfix/properties/extensionPropertyInitializerToGetter/baseCaseVar.kt"); + } + + @TestMetadata("baseCaseWithoutTypeAnnotation.kt") + public void testBaseCaseWithoutTypeAnnotation() throws Exception { + runTest("../../../idea/tests/testData/quickfix/properties/extensionPropertyInitializerToGetter/baseCaseWithoutTypeAnnotation.kt"); + } + + @TestMetadata("dontShowQuickfixOnExistingAccessors.kt") + public void testDontShowQuickfixOnExistingAccessors() throws Exception { + runTest("../../../idea/tests/testData/quickfix/properties/extensionPropertyInitializerToGetter/dontShowQuickfixOnExistingAccessors.kt"); + } + + @TestMetadata("insertGetterBeforeExistingSetter.kt") + public void testInsertGetterBeforeExistingSetter() throws Exception { + runTest("../../../idea/tests/testData/quickfix/properties/extensionPropertyInitializerToGetter/insertGetterBeforeExistingSetter.kt"); + } + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/protectedInFinal") + public static class ProtectedInFinal extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("finalizeNotReal.kt") + public void testFinalizeNotReal() throws Exception { + runTest("../../../idea/tests/testData/quickfix/protectedInFinal/finalizeNotReal.kt"); + } + + @TestMetadata("finalizeNotRealImplicitReturnInt.kt") + public void testFinalizeNotRealImplicitReturnInt() throws Exception { + runTest("../../../idea/tests/testData/quickfix/protectedInFinal/finalizeNotRealImplicitReturnInt.kt"); + } + + @TestMetadata("protected.kt") + public void testProtected() throws Exception { + runTest("../../../idea/tests/testData/quickfix/protectedInFinal/protected.kt"); + } + + @TestMetadata("protected2.kt") + public void testProtected2() throws Exception { + runTest("../../../idea/tests/testData/quickfix/protectedInFinal/protected2.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/publicApiImplicitType") + public static class PublicApiImplicitType extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("fixAllProblemsInFile.kt") + public void testFixAllProblemsInFile() throws Exception { + runTest("../../../idea/tests/testData/quickfix/publicApiImplicitType/fixAllProblemsInFile.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/redundantConst") + public static class RedundantConst extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("../../../idea/tests/testData/quickfix/redundantConst/simple.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/redundantFun") + public static class RedundantFun extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("../../../idea/tests/testData/quickfix/redundantFun/simple.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/redundantInline") + public static class RedundantInline extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("function.kt") + public void testFunction() throws Exception { + runTest("../../../idea/tests/testData/quickfix/redundantInline/function.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/redundantLateinit") + public static class RedundantLateinit extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("../../../idea/tests/testData/quickfix/redundantLateinit/simple.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/redundantModalityModifier") + public static class RedundantModalityModifier extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("redundantAbstract.kt") + public void testRedundantAbstract() throws Exception { + runTest("../../../idea/tests/testData/quickfix/redundantModalityModifier/redundantAbstract.kt"); + } + + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("../../../idea/tests/testData/quickfix/redundantModalityModifier/simple.kt"); + } + } + + + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/redundantVisibilityModifier") + public static class RedundantVisibilityModifier extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("getter.kt") + public void testGetter() throws Exception { + runTest("../../../idea/tests/testData/quickfix/redundantVisibilityModifier/getter.kt"); + } + + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("../../../idea/tests/testData/quickfix/redundantVisibilityModifier/simple.kt"); + } + } + + + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/removeArgument") + public static class RemoveArgument extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("constructor.kt") + public void testConstructor() throws Exception { + runTest("../../../idea/tests/testData/quickfix/removeArgument/constructor.kt"); + } + + @TestMetadata("function.kt") + public void testFunction() throws Exception { + runTest("../../../idea/tests/testData/quickfix/removeArgument/function.kt"); + } + + @TestMetadata("lambdaArgument.kt") + public void testLambdaArgument() throws Exception { + runTest("../../../idea/tests/testData/quickfix/removeArgument/lambdaArgument.kt"); + } + + @TestMetadata("matchedArguments.kt") + public void testMatchedArguments() throws Exception { + runTest("../../../idea/tests/testData/quickfix/removeArgument/matchedArguments.kt"); + } + + @TestMetadata("typeMismatch.kt") + public void testTypeMismatch() throws Exception { + runTest("../../../idea/tests/testData/quickfix/removeArgument/typeMismatch.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/removeAtFromAnnotationArgument") + public static class RemoveAtFromAnnotationArgument extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("arrayParam.kt") + public void testArrayParam() throws Exception { + runTest("../../../idea/tests/testData/quickfix/removeAtFromAnnotationArgument/arrayParam.kt"); + } + + @TestMetadata("brokenCode.kt") + public void testBrokenCode() throws Exception { + runTest("../../../idea/tests/testData/quickfix/removeAtFromAnnotationArgument/brokenCode.kt"); + } + + @TestMetadata("namedParam.kt") + public void testNamedParam() throws Exception { + runTest("../../../idea/tests/testData/quickfix/removeAtFromAnnotationArgument/namedParam.kt"); + } + + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("../../../idea/tests/testData/quickfix/removeAtFromAnnotationArgument/simple.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/removeDefaultParameterValue") + public static class RemoveDefaultParameterValue extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("actualFunctionWithDefaultArguments.kt") + public void testActualFunctionWithDefaultArguments() throws Exception { + runTest("../../../idea/tests/testData/quickfix/removeDefaultParameterValue/actualFunctionWithDefaultArguments.kt"); + } + + @TestMetadata("defaultValueNotAllowedInOverride.kt") + public void testDefaultValueNotAllowedInOverride() throws Exception { + runTest("../../../idea/tests/testData/quickfix/removeDefaultParameterValue/defaultValueNotAllowedInOverride.kt"); + } + + @TestMetadata("hasComment.kt") + public void testHasComment() throws Exception { + runTest("../../../idea/tests/testData/quickfix/removeDefaultParameterValue/hasComment.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/removeFinalUpperBound") + public static class RemoveFinalUpperBound extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("basic.kt") + public void testBasic() throws Exception { + runTest("../../../idea/tests/testData/quickfix/removeFinalUpperBound/basic.kt"); + } + + @TestMetadata("function.kt") + public void testFunction() throws Exception { + runTest("../../../idea/tests/testData/quickfix/removeFinalUpperBound/function.kt"); + } + + @TestMetadata("whereClause.kt") + public void testWhereClause() throws Exception { + runTest("../../../idea/tests/testData/quickfix/removeFinalUpperBound/whereClause.kt"); + } + + @TestMetadata("whereClauseMultipleConstraints.kt") + public void testWhereClauseMultipleConstraints() throws Exception { + runTest("../../../idea/tests/testData/quickfix/removeFinalUpperBound/whereClauseMultipleConstraints.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/removeNoConstructor") + public static class RemoveNoConstructor extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("basic.kt") + public void testBasic() throws Exception { + runTest("../../../idea/tests/testData/quickfix/removeNoConstructor/basic.kt"); + } + + @TestMetadata("functionType.kt") + public void testFunctionType() throws Exception { + runTest("../../../idea/tests/testData/quickfix/removeNoConstructor/functionType.kt"); + } + + @TestMetadata("functionType2.kt") + public void testFunctionType2() throws Exception { + runTest("../../../idea/tests/testData/quickfix/removeNoConstructor/functionType2.kt"); + } + + @TestMetadata("suspend.kt") + public void testSuspend() throws Exception { + runTest("../../../idea/tests/testData/quickfix/removeNoConstructor/suspend.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/removeRedundantAssignment") + public static class RemoveRedundantAssignment extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("augmentedAssignment.kt") + public void testAugmentedAssignment() throws Exception { + runTest("../../../idea/tests/testData/quickfix/removeRedundantAssignment/augmentedAssignment.kt"); + } + + @TestMetadata("constant.kt") + public void testConstant() throws Exception { + runTest("../../../idea/tests/testData/quickfix/removeRedundantAssignment/constant.kt"); + } + + @TestMetadata("constantSum.kt") + public void testConstantSum() throws Exception { + runTest("../../../idea/tests/testData/quickfix/removeRedundantAssignment/constantSum.kt"); + } + + @TestMetadata("functionCall.kt") + public void testFunctionCall() throws Exception { + runTest("../../../idea/tests/testData/quickfix/removeRedundantAssignment/functionCall.kt"); + } + + @TestMetadata("infixDecrement.kt") + public void testInfixDecrement() throws Exception { + runTest("../../../idea/tests/testData/quickfix/removeRedundantAssignment/infixDecrement.kt"); + } + + @TestMetadata("is.kt") + public void testIs() throws Exception { + runTest("../../../idea/tests/testData/quickfix/removeRedundantAssignment/is.kt"); + } + + @TestMetadata("lambda.kt") + public void testLambda() throws Exception { + runTest("../../../idea/tests/testData/quickfix/removeRedundantAssignment/lambda.kt"); + } + + @TestMetadata("notRedundant.kt") + public void testNotRedundant() throws Exception { + runTest("../../../idea/tests/testData/quickfix/removeRedundantAssignment/notRedundant.kt"); + } + + @TestMetadata("postfixIncrement.kt") + public void testPostfixIncrement() throws Exception { + runTest("../../../idea/tests/testData/quickfix/removeRedundantAssignment/postfixIncrement.kt"); + } + + @TestMetadata("simpleRef.kt") + public void testSimpleRef() throws Exception { + runTest("../../../idea/tests/testData/quickfix/removeRedundantAssignment/simpleRef.kt"); + } + + @TestMetadata("this.kt") + public void testThis() throws Exception { + runTest("../../../idea/tests/testData/quickfix/removeRedundantAssignment/this.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/removeRedundantInitializer") + public static class RemoveRedundantInitializer extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("brokenFile.kt") + public void testBrokenFile() throws Exception { + runTest("../../../idea/tests/testData/quickfix/removeRedundantInitializer/brokenFile.kt"); + } + + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("../../../idea/tests/testData/quickfix/removeRedundantInitializer/simple.kt"); + } + } + + + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/removeRedundantLabel") + public static class RemoveRedundantLabel extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("../../../idea/tests/testData/quickfix/removeRedundantLabel/simple.kt"); + } + + @TestMetadata("simple2.kt") + public void testSimple2() throws Exception { + runTest("../../../idea/tests/testData/quickfix/removeRedundantLabel/simple2.kt"); + } + + @TestMetadata("simple3.kt") + public void testSimple3() throws Exception { + runTest("../../../idea/tests/testData/quickfix/removeRedundantLabel/simple3.kt"); + } + } + @RunWith(JUnit3RunnerWithInners.class) @TestMetadata("../../../idea/tests/testData/quickfix/removeRedundantSpreadOperator") public static class RemoveRedundantSpreadOperator extends AbstractHighLevelQuickFixTest { @@ -2998,6 +11299,439 @@ public abstract class HighLevelQuickFixTestGenerated extends AbstractHighLevelQu } } + + + + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/removeToStringInStringTemplate") + public static class RemoveToStringInStringTemplate extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("call.kt") + public void testCall() throws Exception { + runTest("../../../idea/tests/testData/quickfix/removeToStringInStringTemplate/call.kt"); + } + + @TestMetadata("name.kt") + public void testName() throws Exception { + runTest("../../../idea/tests/testData/quickfix/removeToStringInStringTemplate/name.kt"); + } + + @TestMetadata("nameWithPostfix.kt") + public void testNameWithPostfix() throws Exception { + runTest("../../../idea/tests/testData/quickfix/removeToStringInStringTemplate/nameWithPostfix.kt"); + } + + @TestMetadata("necessaryBrackets1.kt") + public void testNecessaryBrackets1() throws Exception { + runTest("../../../idea/tests/testData/quickfix/removeToStringInStringTemplate/necessaryBrackets1.kt"); + } + + @TestMetadata("necessaryBrackets2.kt") + public void testNecessaryBrackets2() throws Exception { + runTest("../../../idea/tests/testData/quickfix/removeToStringInStringTemplate/necessaryBrackets2.kt"); + } + + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("../../../idea/tests/testData/quickfix/removeToStringInStringTemplate/simple.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/removeTypeVariance") + public static class RemoveTypeVariance extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("in.kt") + public void testIn() throws Exception { + runTest("../../../idea/tests/testData/quickfix/removeTypeVariance/in.kt"); + } + + @TestMetadata("out.kt") + public void testOut() throws Exception { + runTest("../../../idea/tests/testData/quickfix/removeTypeVariance/out.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/removeUnused") + public static class RemoveUnused extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("companionViaImport3.kt") + public void testCompanionViaImport3() throws Exception { + runTest("../../../idea/tests/testData/quickfix/removeUnused/companionViaImport3.kt"); + } + + @TestMetadata("contextParametersInInterface.kt") + public void testContextParametersInInterface() throws Exception { + runTest("../../../idea/tests/testData/quickfix/removeUnused/contextParametersInInterface.kt"); + } + + @TestMetadata("deledage.kt") + public void testDeledage() throws Exception { + runTest("../../../idea/tests/testData/quickfix/removeUnused/deledage.kt"); + } + + @TestMetadata("implicitlyUsedContextParameters.kt") + public void testImplicitlyUsedContextParameters() throws Exception { + runTest("../../../idea/tests/testData/quickfix/removeUnused/implicitlyUsedContextParameters.kt"); + } + + @TestMetadata("implicitlyUsedContextParameters1.kt") + public void testImplicitlyUsedContextParameters1() throws Exception { + runTest("../../../idea/tests/testData/quickfix/removeUnused/implicitlyUsedContextParameters1.kt"); + } + + @TestMetadata("implicitlyUsedContextParametersInvoke.kt") + public void testImplicitlyUsedContextParametersInvoke() throws Exception { + runTest("../../../idea/tests/testData/quickfix/removeUnused/implicitlyUsedContextParametersInvoke.kt"); + } + + @TestMetadata("importEnumValues.kt") + public void testImportEnumValues() throws Exception { + runTest("../../../idea/tests/testData/quickfix/removeUnused/importEnumValues.kt"); + } + + @TestMetadata("importObjectFun.kt") + public void testImportObjectFun() throws Exception { + runTest("../../../idea/tests/testData/quickfix/removeUnused/importObjectFun.kt"); + } + + @TestMetadata("notTriangle.kt") + public void testNotTriangle() throws Exception { + runTest("../../../idea/tests/testData/quickfix/removeUnused/notTriangle.kt"); + } + + @TestMetadata("secondaryLocalClassConstructor.kt") + public void testSecondaryLocalClassConstructor() throws Exception { + runTest("../../../idea/tests/testData/quickfix/removeUnused/secondaryLocalClassConstructor.kt"); + } + + @TestMetadata("simpleUnusedEnumEntry.kt") + public void testSimpleUnusedEnumEntry() throws Exception { + runTest("../../../idea/tests/testData/quickfix/removeUnused/simpleUnusedEnumEntry.kt"); + } + + @TestMetadata("triangle.kt") + public void testTriangle() throws Exception { + runTest("../../../idea/tests/testData/quickfix/removeUnused/triangle.kt"); + } + + @TestMetadata("triangle2.kt") + public void testTriangle2() throws Exception { + runTest("../../../idea/tests/testData/quickfix/removeUnused/triangle2.kt"); + } + + @TestMetadata("typeAlias2.kt") + public void testTypeAlias2() throws Exception { + runTest("../../../idea/tests/testData/quickfix/removeUnused/typeAlias2.kt"); + } + + @TestMetadata("unusedClass.kt") + public void testUnusedClass() throws Exception { + runTest("../../../idea/tests/testData/quickfix/removeUnused/unusedClass.kt"); + } + + @TestMetadata("unusedConstructor.kt") + public void testUnusedConstructor() throws Exception { + runTest("../../../idea/tests/testData/quickfix/removeUnused/unusedConstructor.kt"); + } + + @TestMetadata("unusedContextParameters.kt") + public void testUnusedContextParameters() throws Exception { + runTest("../../../idea/tests/testData/quickfix/removeUnused/unusedContextParameters.kt"); + } + + @TestMetadata("unusedDelegatedConstructor.kt") + public void testUnusedDelegatedConstructor() throws Exception { + runTest("../../../idea/tests/testData/quickfix/removeUnused/unusedDelegatedConstructor.kt"); + } + + @TestMetadata("unusedDelegatedConstructorSuper.kt") + public void testUnusedDelegatedConstructorSuper() throws Exception { + runTest("../../../idea/tests/testData/quickfix/removeUnused/unusedDelegatedConstructorSuper.kt"); + } + + @TestMetadata("unusedEnumEntry.kt") + public void testUnusedEnumEntry() throws Exception { + runTest("../../../idea/tests/testData/quickfix/removeUnused/unusedEnumEntry.kt"); + } + + @TestMetadata("unusedEnumEntry2.kt") + public void testUnusedEnumEntry2() throws Exception { + runTest("../../../idea/tests/testData/quickfix/removeUnused/unusedEnumEntry2.kt"); + } + + @TestMetadata("unusedEnumEntry3.kt") + public void testUnusedEnumEntry3() throws Exception { + runTest("../../../idea/tests/testData/quickfix/removeUnused/unusedEnumEntry3.kt"); + } + + @TestMetadata("unusedEnumEntry4.kt") + public void testUnusedEnumEntry4() throws Exception { + runTest("../../../idea/tests/testData/quickfix/removeUnused/unusedEnumEntry4.kt"); + } + + @TestMetadata("unusedEnumEntry5.kt") + public void testUnusedEnumEntry5() throws Exception { + runTest("../../../idea/tests/testData/quickfix/removeUnused/unusedEnumEntry5.kt"); + } + + @TestMetadata("unusedFunction.kt") + public void testUnusedFunction() throws Exception { + runTest("../../../idea/tests/testData/quickfix/removeUnused/unusedFunction.kt"); + } + + @TestMetadata("unusedProperty.kt") + public void testUnusedProperty() throws Exception { + runTest("../../../idea/tests/testData/quickfix/removeUnused/unusedProperty.kt"); + } + + @TestMetadata("unusedPropertyAsConstructorParameter.kt") + public void testUnusedPropertyAsConstructorParameter() throws Exception { + runTest("../../../idea/tests/testData/quickfix/removeUnused/unusedPropertyAsConstructorParameter.kt"); + } + + @TestMetadata("unusedPropertyAsConstructorParameter2.kt") + public void testUnusedPropertyAsConstructorParameter2() throws Exception { + runTest("../../../idea/tests/testData/quickfix/removeUnused/unusedPropertyAsConstructorParameter2.kt"); + } + + @TestMetadata("unusedTypeParameter.kt") + public void testUnusedTypeParameter() throws Exception { + runTest("../../../idea/tests/testData/quickfix/removeUnused/unusedTypeParameter.kt"); + } + + @TestMetadata("usedClassAsAlias.kt") + public void testUsedClassAsAlias() throws Exception { + runTest("../../../idea/tests/testData/quickfix/removeUnused/usedClassAsAlias.kt"); + } + + @TestMetadata("usedContextParameters.kt") + public void testUsedContextParameters() throws Exception { + runTest("../../../idea/tests/testData/quickfix/removeUnused/usedContextParameters.kt"); + } + + @TestMetadata("usedFunAsAlias.kt") + public void testUsedFunAsAlias() throws Exception { + runTest("../../../idea/tests/testData/quickfix/removeUnused/usedFunAsAlias.kt"); + } + + @TestMetadata("usedObjectAsAlias.kt") + public void testUsedObjectAsAlias() throws Exception { + runTest("../../../idea/tests/testData/quickfix/removeUnused/usedObjectAsAlias.kt"); + } + + @TestMetadata("usedVarAsAlias.kt") + public void testUsedVarAsAlias() throws Exception { + runTest("../../../idea/tests/testData/quickfix/removeUnused/usedVarAsAlias.kt"); + } + } + + + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/removeUnusedReceiver") + public static class RemoveUnusedReceiver extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("inFunction.kt") + public void testInFunction() throws Exception { + runTest("../../../idea/tests/testData/quickfix/removeUnusedReceiver/inFunction.kt"); + } + + @TestMetadata("inProperty.kt") + public void testInProperty() throws Exception { + runTest("../../../idea/tests/testData/quickfix/removeUnusedReceiver/inProperty.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/removeUseSiteTarget") + public static class RemoveUseSiteTarget extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("setTargetOnGetter.kt") + public void testSetTargetOnGetter() throws Exception { + runTest("../../../idea/tests/testData/quickfix/removeUseSiteTarget/setTargetOnGetter.kt"); + } + + @TestMetadata("useSiteGetDoesntHaveAnyEffect.kt") + public void testUseSiteGetDoesntHaveAnyEffect() throws Exception { + runTest("../../../idea/tests/testData/quickfix/removeUseSiteTarget/useSiteGetDoesntHaveAnyEffect.kt"); + } + + @TestMetadata("useSiteGetOnClass.kt") + public void testUseSiteGetOnClass() throws Exception { + runTest("../../../idea/tests/testData/quickfix/removeUseSiteTarget/useSiteGetOnClass.kt"); + } + + @TestMetadata("whitespaces.kt") + public void testWhitespaces() throws Exception { + runTest("../../../idea/tests/testData/quickfix/removeUseSiteTarget/whitespaces.kt"); + } + } + + + + + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/renameUnresolvedReference") + public static class RenameUnresolvedReference extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("qualifiedFunRef.kt") + public void testQualifiedFunRef() throws Exception { + runTest("../../../idea/tests/testData/quickfix/renameUnresolvedReference/qualifiedFunRef.kt"); + } + + @TestMetadata("qualifiedPropertyRef.kt") + public void testQualifiedPropertyRef() throws Exception { + runTest("../../../idea/tests/testData/quickfix/renameUnresolvedReference/qualifiedPropertyRef.kt"); + } + + @TestMetadata("typeRef.kt") + public void testTypeRef() throws Exception { + runTest("../../../idea/tests/testData/quickfix/renameUnresolvedReference/typeRef.kt"); + } + + @TestMetadata("unqualifiedFunRef.kt") + public void testUnqualifiedFunRef() throws Exception { + runTest("../../../idea/tests/testData/quickfix/renameUnresolvedReference/unqualifiedFunRef.kt"); + } + + @TestMetadata("unqualifiedPropertyRef.kt") + public void testUnqualifiedPropertyRef() throws Exception { + runTest("../../../idea/tests/testData/quickfix/renameUnresolvedReference/unqualifiedPropertyRef.kt"); + } + + @TestMetadata("unqualifiedPropertyRefWithPackageError.kt") + public void testUnqualifiedPropertyRefWithPackageError() throws Exception { + runTest("../../../idea/tests/testData/quickfix/renameUnresolvedReference/unqualifiedPropertyRefWithPackageError.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/reorderParameters") + public static class ReorderParameters extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("callParameterAsFunctionInDefaultValue.kt") + public void testCallParameterAsFunctionInDefaultValue() throws Exception { + runTest("../../../idea/tests/testData/quickfix/reorderParameters/callParameterAsFunctionInDefaultValue.kt"); + } + + @TestMetadata("cycle.kt") + public void testCycle() throws Exception { + runTest("../../../idea/tests/testData/quickfix/reorderParameters/cycle.kt"); + } + + @TestMetadata("graph.kt") + public void testGraph() throws Exception { + runTest("../../../idea/tests/testData/quickfix/reorderParameters/graph.kt"); + } + + @TestMetadata("lambda.kt") + public void testLambda() throws Exception { + runTest("../../../idea/tests/testData/quickfix/reorderParameters/lambda.kt"); + } + + @TestMetadata("nestedFunction.kt") + public void testNestedFunction() throws Exception { + runTest("../../../idea/tests/testData/quickfix/reorderParameters/nestedFunction.kt"); + } + + @TestMetadata("nestedFunction2.kt") + public void testNestedFunction2() throws Exception { + runTest("../../../idea/tests/testData/quickfix/reorderParameters/nestedFunction2.kt"); + } + + @TestMetadata("noDefaultValue.kt") + public void testNoDefaultValue() throws Exception { + runTest("../../../idea/tests/testData/quickfix/reorderParameters/noDefaultValue.kt"); + } + + @TestMetadata("receiver.kt") + public void testReceiver() throws Exception { + runTest("../../../idea/tests/testData/quickfix/reorderParameters/receiver.kt"); + } + + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("../../../idea/tests/testData/quickfix/reorderParameters/simple.kt"); + } + + @TestMetadata("withUnchangedParameter.kt") + public void testWithUnchangedParameter() throws Exception { + runTest("../../../idea/tests/testData/quickfix/reorderParameters/withUnchangedParameter.kt"); + } + + @TestMetadata("withUnchangedParameter2.kt") + public void testWithUnchangedParameter2() throws Exception { + runTest("../../../idea/tests/testData/quickfix/reorderParameters/withUnchangedParameter2.kt"); + } + } + @RunWith(JUnit3RunnerWithInners.class) @TestMetadata("../../../idea/tests/testData/quickfix/replaceAndWithWhenGuard") public static class ReplaceAndWithWhenGuard extends AbstractHighLevelQuickFixTest { @@ -3191,6 +11925,65 @@ public abstract class HighLevelQuickFixTestGenerated extends AbstractHighLevelQu } } + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/replaceJvmFieldWithConst") + public static class ReplaceJvmFieldWithConst extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("class.kt") + public void testClass() throws Exception { + runTest("../../../idea/tests/testData/quickfix/replaceJvmFieldWithConst/class.kt"); + } + + @TestMetadata("companionInInterface.kt") + public void testCompanionInInterface() throws Exception { + runTest("../../../idea/tests/testData/quickfix/replaceJvmFieldWithConst/companionInInterface.kt"); + } + + @TestMetadata("getter.kt") + public void testGetter() throws Exception { + runTest("../../../idea/tests/testData/quickfix/replaceJvmFieldWithConst/getter.kt"); + } + + @TestMetadata("nonConstantInitializer.kt") + public void testNonConstantInitializer() throws Exception { + runTest("../../../idea/tests/testData/quickfix/replaceJvmFieldWithConst/nonConstantInitializer.kt"); + } + + @TestMetadata("nullable.kt") + public void testNullable() throws Exception { + runTest("../../../idea/tests/testData/quickfix/replaceJvmFieldWithConst/nullable.kt"); + } + + @TestMetadata("object.kt") + public void testObject() throws Exception { + runTest("../../../idea/tests/testData/quickfix/replaceJvmFieldWithConst/object.kt"); + } + + @TestMetadata("stringTemplateWithConstants.kt") + public void testStringTemplateWithConstants() throws Exception { + runTest("../../../idea/tests/testData/quickfix/replaceJvmFieldWithConst/stringTemplateWithConstants.kt"); + } + + @TestMetadata("stringTemplateWithVal.kt") + public void testStringTemplateWithVal() throws Exception { + runTest("../../../idea/tests/testData/quickfix/replaceJvmFieldWithConst/stringTemplateWithVal.kt"); + } + + @TestMetadata("toplevel.kt") + public void testToplevel() throws Exception { + runTest("../../../idea/tests/testData/quickfix/replaceJvmFieldWithConst/toplevel.kt"); + } + } + @RunWith(JUnit3RunnerWithInners.class) @TestMetadata("../../../idea/tests/testData/quickfix/replaceWithArrayCallInAnnotation") public static class ReplaceWithArrayCallInAnnotation extends AbstractHighLevelQuickFixTest { @@ -3448,6 +12241,797 @@ public abstract class HighLevelQuickFixTestGenerated extends AbstractHighLevelQu } } + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/restrictedRetentionForExpressionAnnotation") + public abstract static class RestrictedRetentionForExpressionAnnotation extends AbstractHighLevelQuickFixTest { + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/restrictedRetentionForExpressionAnnotation/addSourceRetention") + public static class AddSourceRetention extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("binaryRetention.kt") + public void testBinaryRetention() throws Exception { + runTest("../../../idea/tests/testData/quickfix/restrictedRetentionForExpressionAnnotation/addSourceRetention/binaryRetention.kt"); + } + + @TestMetadata("emptyRetention.kt") + public void testEmptyRetention() throws Exception { + runTest("../../../idea/tests/testData/quickfix/restrictedRetentionForExpressionAnnotation/addSourceRetention/emptyRetention.kt"); + } + + @TestMetadata("emptyRetention2.kt") + public void testEmptyRetention2() throws Exception { + runTest("../../../idea/tests/testData/quickfix/restrictedRetentionForExpressionAnnotation/addSourceRetention/emptyRetention2.kt"); + } + + @TestMetadata("noRetention.kt") + public void testNoRetention() throws Exception { + runTest("../../../idea/tests/testData/quickfix/restrictedRetentionForExpressionAnnotation/addSourceRetention/noRetention.kt"); + } + + @TestMetadata("noRetention2.kt") + public void testNoRetention2() throws Exception { + runTest("../../../idea/tests/testData/quickfix/restrictedRetentionForExpressionAnnotation/addSourceRetention/noRetention2.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/restrictedRetentionForExpressionAnnotation/changeRetentionToSource") + public static class ChangeRetentionToSource extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("binaryRetention.kt") + public void testBinaryRetention() throws Exception { + runTest("../../../idea/tests/testData/quickfix/restrictedRetentionForExpressionAnnotation/changeRetentionToSource/binaryRetention.kt"); + } + + @TestMetadata("emptyRetention.kt") + public void testEmptyRetention() throws Exception { + runTest("../../../idea/tests/testData/quickfix/restrictedRetentionForExpressionAnnotation/changeRetentionToSource/emptyRetention.kt"); + } + + @TestMetadata("emptyRetention2.kt") + public void testEmptyRetention2() throws Exception { + runTest("../../../idea/tests/testData/quickfix/restrictedRetentionForExpressionAnnotation/changeRetentionToSource/emptyRetention2.kt"); + } + + @TestMetadata("emptyRetention3.kt") + public void testEmptyRetention3() throws Exception { + runTest("../../../idea/tests/testData/quickfix/restrictedRetentionForExpressionAnnotation/changeRetentionToSource/emptyRetention3.kt"); + } + + @TestMetadata("noRetention.kt") + public void testNoRetention() throws Exception { + runTest("../../../idea/tests/testData/quickfix/restrictedRetentionForExpressionAnnotation/changeRetentionToSource/noRetention.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/restrictedRetentionForExpressionAnnotation/removeExpressionTarget") + public static class RemoveExpressionTarget extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("binaryRetention.kt") + public void testBinaryRetention() throws Exception { + runTest("../../../idea/tests/testData/quickfix/restrictedRetentionForExpressionAnnotation/removeExpressionTarget/binaryRetention.kt"); + } + + @TestMetadata("emptyRetention.kt") + public void testEmptyRetention() throws Exception { + runTest("../../../idea/tests/testData/quickfix/restrictedRetentionForExpressionAnnotation/removeExpressionTarget/emptyRetention.kt"); + } + + @TestMetadata("emptyRetention2.kt") + public void testEmptyRetention2() throws Exception { + runTest("../../../idea/tests/testData/quickfix/restrictedRetentionForExpressionAnnotation/removeExpressionTarget/emptyRetention2.kt"); + } + + @TestMetadata("multipleTargets.kt") + public void testMultipleTargets() throws Exception { + runTest("../../../idea/tests/testData/quickfix/restrictedRetentionForExpressionAnnotation/removeExpressionTarget/multipleTargets.kt"); + } + + @TestMetadata("multipleTargetsImported.kt") + public void testMultipleTargetsImported() throws Exception { + runTest("../../../idea/tests/testData/quickfix/restrictedRetentionForExpressionAnnotation/removeExpressionTarget/multipleTargetsImported.kt"); + } + + @TestMetadata("noRetention.kt") + public void testNoRetention() throws Exception { + runTest("../../../idea/tests/testData/quickfix/restrictedRetentionForExpressionAnnotation/removeExpressionTarget/noRetention.kt"); + } + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/runBlockingInSuspendFunction") + public static class RunBlockingInSuspendFunction extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("noContextNoReturnsMultipleStatements.kt") + public void testNoContextNoReturnsMultipleStatements() throws Exception { + runTest("../../../idea/tests/testData/quickfix/runBlockingInSuspendFunction/noContextNoReturnsMultipleStatements.kt"); + } + + @TestMetadata("noContextNoReturnsOneStatement.kt") + public void testNoContextNoReturnsOneStatement() throws Exception { + runTest("../../../idea/tests/testData/quickfix/runBlockingInSuspendFunction/noContextNoReturnsOneStatement.kt"); + } + + @TestMetadata("noContextWithReturns.kt") + public void testNoContextWithReturns() throws Exception { + runTest("../../../idea/tests/testData/quickfix/runBlockingInSuspendFunction/noContextWithReturns.kt"); + } + + @TestMetadata("variableInitializer.kt") + public void testVariableInitializer() throws Exception { + runTest("../../../idea/tests/testData/quickfix/runBlockingInSuspendFunction/variableInitializer.kt"); + } + + @TestMetadata("withContextNoReturns.kt") + public void testWithContextNoReturns() throws Exception { + runTest("../../../idea/tests/testData/quickfix/runBlockingInSuspendFunction/withContextNoReturns.kt"); + } + + @TestMetadata("withContextWithReturns.kt") + public void testWithContextWithReturns() throws Exception { + runTest("../../../idea/tests/testData/quickfix/runBlockingInSuspendFunction/withContextWithReturns.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/simplifyComparison") + public static class SimplifyComparison extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("doubleNull.kt") + public void testDoubleNull() throws Exception { + runTest("../../../idea/tests/testData/quickfix/simplifyComparison/doubleNull.kt"); + } + + @TestMetadata("notNull.kt") + public void testNotNull() throws Exception { + runTest("../../../idea/tests/testData/quickfix/simplifyComparison/notNull.kt"); + } + + @TestMetadata("nullOrNotNull.kt") + public void testNullOrNotNull() throws Exception { + runTest("../../../idea/tests/testData/quickfix/simplifyComparison/nullOrNotNull.kt"); + } + + @TestMetadata("somethingAndNotNull.kt") + public void testSomethingAndNotNull() throws Exception { + runTest("../../../idea/tests/testData/quickfix/simplifyComparison/somethingAndNotNull.kt"); + } + + @TestMetadata("withAssertion.kt") + public void testWithAssertion() throws Exception { + runTest("../../../idea/tests/testData/quickfix/simplifyComparison/withAssertion.kt"); + } + + @TestMetadata("withAssertion2.kt") + public void testWithAssertion2() throws Exception { + runTest("../../../idea/tests/testData/quickfix/simplifyComparison/withAssertion2.kt"); + } + + @TestMetadata("withAssertion3.kt") + public void testWithAssertion3() throws Exception { + runTest("../../../idea/tests/testData/quickfix/simplifyComparison/withAssertion3.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/simplifyExpression") + public static class SimplifyExpression extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("constantFalse.kt") + public void testConstantFalse() throws Exception { + runTest("../../../idea/tests/testData/quickfix/simplifyExpression/constantFalse.kt"); + } + + @TestMetadata("constantFalseIfElseIf.kt") + public void testConstantFalseIfElseIf() throws Exception { + runTest("../../../idea/tests/testData/quickfix/simplifyExpression/constantFalseIfElseIf.kt"); + } + + @TestMetadata("constantFalseIfElseIfElse.kt") + public void testConstantFalseIfElseIfElse() throws Exception { + runTest("../../../idea/tests/testData/quickfix/simplifyExpression/constantFalseIfElseIfElse.kt"); + } + + @TestMetadata("constantFalseIfElseIfElseIfFirstBranch.kt") + public void testConstantFalseIfElseIfElseIfFirstBranch() throws Exception { + runTest("../../../idea/tests/testData/quickfix/simplifyExpression/constantFalseIfElseIfElseIfFirstBranch.kt"); + } + + @TestMetadata("constantFalseIfElseIfElseIfSecondBranch.kt") + public void testConstantFalseIfElseIfElseIfSecondBranch() throws Exception { + runTest("../../../idea/tests/testData/quickfix/simplifyExpression/constantFalseIfElseIfElseIfSecondBranch.kt"); + } + + @TestMetadata("constantNull.kt") + public void testConstantNull() throws Exception { + runTest("../../../idea/tests/testData/quickfix/simplifyExpression/constantNull.kt"); + } + + @TestMetadata("constantTrue.kt") + public void testConstantTrue() throws Exception { + runTest("../../../idea/tests/testData/quickfix/simplifyExpression/constantTrue.kt"); + } + + @TestMetadata("constantTrueIfElseIf.kt") + public void testConstantTrueIfElseIf() throws Exception { + runTest("../../../idea/tests/testData/quickfix/simplifyExpression/constantTrueIfElseIf.kt"); + } + + @TestMetadata("constantTrueIfElseIfElseIfFirstCondition.kt") + public void testConstantTrueIfElseIfElseIfFirstCondition() throws Exception { + runTest("../../../idea/tests/testData/quickfix/simplifyExpression/constantTrueIfElseIfElseIfFirstCondition.kt"); + } + + @TestMetadata("constantTrueIfElseIfElseIfSecondCondition.kt") + public void testConstantTrueIfElseIfElseIfSecondCondition() throws Exception { + runTest("../../../idea/tests/testData/quickfix/simplifyExpression/constantTrueIfElseIfElseIfSecondCondition.kt"); + } + + @TestMetadata("constantTrueIfElseIfFirstCondition.kt") + public void testConstantTrueIfElseIfFirstCondition() throws Exception { + runTest("../../../idea/tests/testData/quickfix/simplifyExpression/constantTrueIfElseIfFirstCondition.kt"); + } + + @TestMetadata("constantTrueIfElseIfFirstConditionCommentsMultipleStatements.kt") + public void testConstantTrueIfElseIfFirstConditionCommentsMultipleStatements() throws Exception { + runTest("../../../idea/tests/testData/quickfix/simplifyExpression/constantTrueIfElseIfFirstConditionCommentsMultipleStatements.kt"); + } + + @TestMetadata("constantTrueIfElseIfFirstConditionCommentsSingleStatement.kt") + public void testConstantTrueIfElseIfFirstConditionCommentsSingleStatement() throws Exception { + runTest("../../../idea/tests/testData/quickfix/simplifyExpression/constantTrueIfElseIfFirstConditionCommentsSingleStatement.kt"); + } + + @TestMetadata("constantZeroListIsEmpty.kt") + public void testConstantZeroListIsEmpty() throws Exception { + runTest("../../../idea/tests/testData/quickfix/simplifyExpression/constantZeroListIsEmpty.kt"); + } + + @TestMetadata("constantZeroListOf.kt") + public void testConstantZeroListOf() throws Exception { + runTest("../../../idea/tests/testData/quickfix/simplifyExpression/constantZeroListOf.kt"); + } + + @TestMetadata("notNullSideEffect.kt") + public void testNotNullSideEffect() throws Exception { + runTest("../../../idea/tests/testData/quickfix/simplifyExpression/notNullSideEffect.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/smartCastImpossibleInIfThen") + public static class SmartCastImpossibleInIfThen extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("ifThen.kt") + public void testIfThen() throws Exception { + runTest("../../../idea/tests/testData/quickfix/smartCastImpossibleInIfThen/ifThen.kt"); + } + + @TestMetadata("ifThen2.kt") + public void testIfThen2() throws Exception { + runTest("../../../idea/tests/testData/quickfix/smartCastImpossibleInIfThen/ifThen2.kt"); + } + + @TestMetadata("ifThen3.kt") + public void testIfThen3() throws Exception { + runTest("../../../idea/tests/testData/quickfix/smartCastImpossibleInIfThen/ifThen3.kt"); + } + + @TestMetadata("ifThen4.kt") + public void testIfThen4() throws Exception { + runTest("../../../idea/tests/testData/quickfix/smartCastImpossibleInIfThen/ifThen4.kt"); + } + + @TestMetadata("ifThen5.kt") + public void testIfThen5() throws Exception { + runTest("../../../idea/tests/testData/quickfix/smartCastImpossibleInIfThen/ifThen5.kt"); + } + + @TestMetadata("ifThenElse.kt") + public void testIfThenElse() throws Exception { + runTest("../../../idea/tests/testData/quickfix/smartCastImpossibleInIfThen/ifThenElse.kt"); + } + + @TestMetadata("ifThenElse2.kt") + public void testIfThenElse2() throws Exception { + runTest("../../../idea/tests/testData/quickfix/smartCastImpossibleInIfThen/ifThenElse2.kt"); + } + + @TestMetadata("ifThenElse3.kt") + public void testIfThenElse3() throws Exception { + runTest("../../../idea/tests/testData/quickfix/smartCastImpossibleInIfThen/ifThenElse3.kt"); + } + + @TestMetadata("ifThenElse4.kt") + public void testIfThenElse4() throws Exception { + runTest("../../../idea/tests/testData/quickfix/smartCastImpossibleInIfThen/ifThenElse4.kt"); + } + + @TestMetadata("ifThenElse5.kt") + public void testIfThenElse5() throws Exception { + runTest("../../../idea/tests/testData/quickfix/smartCastImpossibleInIfThen/ifThenElse5.kt"); + } + + @TestMetadata("ifThenElseMultiStatement.kt") + public void testIfThenElseMultiStatement() throws Exception { + runTest("../../../idea/tests/testData/quickfix/smartCastImpossibleInIfThen/ifThenElseMultiStatement.kt"); + } + + @TestMetadata("ifThenMultiStatement.kt") + public void testIfThenMultiStatement() throws Exception { + runTest("../../../idea/tests/testData/quickfix/smartCastImpossibleInIfThen/ifThenMultiStatement.kt"); + } + + @TestMetadata("ifThenNotNullNegateClause.kt") + public void testIfThenNotNullNegateClause() throws Exception { + runTest("../../../idea/tests/testData/quickfix/smartCastImpossibleInIfThen/ifThenNotNullNegateClause.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/specifyAllRemainingArgumentsByName") + public static class SpecifyAllRemainingArgumentsByName extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("class.kt") + public void testClass() throws Exception { + runTest("../../../idea/tests/testData/quickfix/specifyAllRemainingArgumentsByName/class.kt"); + } + + @TestMetadata("conflictingSignatures.kt") + public void testConflictingSignatures() throws Exception { + runTest("../../../idea/tests/testData/quickfix/specifyAllRemainingArgumentsByName/conflictingSignatures.kt"); + } + + @TestMetadata("existingNamedArguments.kt") + public void testExistingNamedArguments() throws Exception { + runTest("../../../idea/tests/testData/quickfix/specifyAllRemainingArgumentsByName/existingNamedArguments.kt"); + } + + @TestMetadata("existingNamedArgumentsWithLambda.kt") + public void testExistingNamedArgumentsWithLambda() throws Exception { + runTest("../../../idea/tests/testData/quickfix/specifyAllRemainingArgumentsByName/existingNamedArgumentsWithLambda.kt"); + } + + @TestMetadata("existingNewline.kt") + public void testExistingNewline() throws Exception { + runTest("../../../idea/tests/testData/quickfix/specifyAllRemainingArgumentsByName/existingNewline.kt"); + } + + @TestMetadata("existingNewlineAndArgument.kt") + public void testExistingNewlineAndArgument() throws Exception { + runTest("../../../idea/tests/testData/quickfix/specifyAllRemainingArgumentsByName/existingNewlineAndArgument.kt"); + } + + @TestMetadata("functionOverloadsWithDefaults.kt") + public void testFunctionOverloadsWithDefaults() throws Exception { + runTest("../../../idea/tests/testData/quickfix/specifyAllRemainingArgumentsByName/functionOverloadsWithDefaults.kt"); + } + + @TestMetadata("incorrectSignature.kt") + public void testIncorrectSignature() throws Exception { + runTest("../../../idea/tests/testData/quickfix/specifyAllRemainingArgumentsByName/incorrectSignature.kt"); + } + + @TestMetadata("javaFunction.kt") + public void testJavaFunction() throws Exception { + runTest("../../../idea/tests/testData/quickfix/specifyAllRemainingArgumentsByName/javaFunction.kt"); + } + + @TestMetadata("multipleArguments.kt") + public void testMultipleArguments() throws Exception { + runTest("../../../idea/tests/testData/quickfix/specifyAllRemainingArgumentsByName/multipleArguments.kt"); + } + + @TestMetadata("multipleOverloads.kt") + public void testMultipleOverloads() throws Exception { + runTest("../../../idea/tests/testData/quickfix/specifyAllRemainingArgumentsByName/multipleOverloads.kt"); + } + + @TestMetadata("nested.kt") + public void testNested() throws Exception { + runTest("../../../idea/tests/testData/quickfix/specifyAllRemainingArgumentsByName/nested.kt"); + } + + @TestMetadata("nestedFullySpecified.kt") + public void testNestedFullySpecified() throws Exception { + runTest("../../../idea/tests/testData/quickfix/specifyAllRemainingArgumentsByName/nestedFullySpecified.kt"); + } + + @TestMetadata("noArguments.kt") + public void testNoArguments() throws Exception { + runTest("../../../idea/tests/testData/quickfix/specifyAllRemainingArgumentsByName/noArguments.kt"); + } + + @TestMetadata("noArgumentsWithReceiver.kt") + public void testNoArgumentsWithReceiver() throws Exception { + runTest("../../../idea/tests/testData/quickfix/specifyAllRemainingArgumentsByName/noArgumentsWithReceiver.kt"); + } + + @TestMetadata("noNameProvided.kt") + public void testNoNameProvided() throws Exception { + runTest("../../../idea/tests/testData/quickfix/specifyAllRemainingArgumentsByName/noNameProvided.kt"); + } + + @TestMetadata("onlyVararg.kt") + public void testOnlyVararg() throws Exception { + runTest("../../../idea/tests/testData/quickfix/specifyAllRemainingArgumentsByName/onlyVararg.kt"); + } + + @TestMetadata("partiallySpecified.kt") + public void testPartiallySpecified() throws Exception { + runTest("../../../idea/tests/testData/quickfix/specifyAllRemainingArgumentsByName/partiallySpecified.kt"); + } + + @TestMetadata("quotedName.kt") + public void testQuotedName() throws Exception { + runTest("../../../idea/tests/testData/quickfix/specifyAllRemainingArgumentsByName/quotedName.kt"); + } + + @TestMetadata("receiverArgument.kt") + public void testReceiverArgument() throws Exception { + runTest("../../../idea/tests/testData/quickfix/specifyAllRemainingArgumentsByName/receiverArgument.kt"); + } + + @TestMetadata("sameLineAsArgument.kt") + public void testSameLineAsArgument() throws Exception { + runTest("../../../idea/tests/testData/quickfix/specifyAllRemainingArgumentsByName/sameLineAsArgument.kt"); + } + + @TestMetadata("simpleFunctionOverload.kt") + public void testSimpleFunctionOverload() throws Exception { + runTest("../../../idea/tests/testData/quickfix/specifyAllRemainingArgumentsByName/simpleFunctionOverload.kt"); + } + + @TestMetadata("singleArgument.kt") + public void testSingleArgument() throws Exception { + runTest("../../../idea/tests/testData/quickfix/specifyAllRemainingArgumentsByName/singleArgument.kt"); + } + + @TestMetadata("trailingComma.kt") + public void testTrailingComma() throws Exception { + runTest("../../../idea/tests/testData/quickfix/specifyAllRemainingArgumentsByName/trailingComma.kt"); + } + + @TestMetadata("vararg.kt") + public void testVararg() throws Exception { + runTest("../../../idea/tests/testData/quickfix/specifyAllRemainingArgumentsByName/vararg.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/specifyOverrideExplicitly") + public static class SpecifyOverrideExplicitly extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("base.kt") + public void testBase() throws Exception { + runTest("../../../idea/tests/testData/quickfix/specifyOverrideExplicitly/base.kt"); + } + + @TestMetadata("global.kt") + public void testGlobal() throws Exception { + runTest("../../../idea/tests/testData/quickfix/specifyOverrideExplicitly/global.kt"); + } + + @TestMetadata("lists.kt") + public void testLists() throws Exception { + runTest("../../../idea/tests/testData/quickfix/specifyOverrideExplicitly/lists.kt"); + } + + @TestMetadata("lists2.kt") + public void testLists2() throws Exception { + runTest("../../../idea/tests/testData/quickfix/specifyOverrideExplicitly/lists2.kt"); + } + + @TestMetadata("notPossible.kt") + public void testNotPossible() throws Exception { + runTest("../../../idea/tests/testData/quickfix/specifyOverrideExplicitly/notPossible.kt"); + } + + @TestMetadata("objectDeclaration.kt") + public void testObjectDeclaration() throws Exception { + runTest("../../../idea/tests/testData/quickfix/specifyOverrideExplicitly/objectDeclaration.kt"); + } + + @TestMetadata("outer.kt") + public void testOuter() throws Exception { + runTest("../../../idea/tests/testData/quickfix/specifyOverrideExplicitly/outer.kt"); + } + + @TestMetadata("property.kt") + public void testProperty() throws Exception { + runTest("../../../idea/tests/testData/quickfix/specifyOverrideExplicitly/property.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/specifyRemainingRequiredArgumentsByName") + public static class SpecifyRemainingRequiredArgumentsByName extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("allArgumentsOptional.kt") + public void testAllArgumentsOptional() throws Exception { + runTest("../../../idea/tests/testData/quickfix/specifyRemainingRequiredArgumentsByName/allArgumentsOptional.kt"); + } + + @TestMetadata("allArgumentsRequired.kt") + public void testAllArgumentsRequired() throws Exception { + runTest("../../../idea/tests/testData/quickfix/specifyRemainingRequiredArgumentsByName/allArgumentsRequired.kt"); + } + + @TestMetadata("conflictingSignatures.kt") + public void testConflictingSignatures() throws Exception { + runTest("../../../idea/tests/testData/quickfix/specifyRemainingRequiredArgumentsByName/conflictingSignatures.kt"); + } + + @TestMetadata("functionOverloadsWithDefaults.kt") + public void testFunctionOverloadsWithDefaults() throws Exception { + runTest("../../../idea/tests/testData/quickfix/specifyRemainingRequiredArgumentsByName/functionOverloadsWithDefaults.kt"); + } + + @TestMetadata("multipleOptionalArguments.kt") + public void testMultipleOptionalArguments() throws Exception { + runTest("../../../idea/tests/testData/quickfix/specifyRemainingRequiredArgumentsByName/multipleOptionalArguments.kt"); + } + + @TestMetadata("simpleFunctionOverload.kt") + public void testSimpleFunctionOverload() throws Exception { + runTest("../../../idea/tests/testData/quickfix/specifyRemainingRequiredArgumentsByName/simpleFunctionOverload.kt"); + } + + @TestMetadata("singleArgument.kt") + public void testSingleArgument() throws Exception { + runTest("../../../idea/tests/testData/quickfix/specifyRemainingRequiredArgumentsByName/singleArgument.kt"); + } + + @TestMetadata("singleArgumentAndVararg.kt") + public void testSingleArgumentAndVararg() throws Exception { + runTest("../../../idea/tests/testData/quickfix/specifyRemainingRequiredArgumentsByName/singleArgumentAndVararg.kt"); + } + + @TestMetadata("singleRequiredArgument.kt") + public void testSingleRequiredArgument() throws Exception { + runTest("../../../idea/tests/testData/quickfix/specifyRemainingRequiredArgumentsByName/singleRequiredArgument.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/specifySuperExplicitly") + public static class SpecifySuperExplicitly extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("abstractSuperCall.kt") + public void testAbstractSuperCall() throws Exception { + runTest("../../../idea/tests/testData/quickfix/specifySuperExplicitly/abstractSuperCall.kt"); + } + + @TestMetadata("abstractSuperCall2.kt") + public void testAbstractSuperCall2() throws Exception { + runTest("../../../idea/tests/testData/quickfix/specifySuperExplicitly/abstractSuperCall2.kt"); + } + + @TestMetadata("abstractSuperCall3.kt") + public void testAbstractSuperCall3() throws Exception { + runTest("../../../idea/tests/testData/quickfix/specifySuperExplicitly/abstractSuperCall3.kt"); + } + + @TestMetadata("abstractSuperCallEquals.kt") + public void testAbstractSuperCallEquals() throws Exception { + runTest("../../../idea/tests/testData/quickfix/specifySuperExplicitly/abstractSuperCallEquals.kt"); + } + + @TestMetadata("abstractSuperCallFromNested.kt") + public void testAbstractSuperCallFromNested() throws Exception { + runTest("../../../idea/tests/testData/quickfix/specifySuperExplicitly/abstractSuperCallFromNested.kt"); + } + + @TestMetadata("abstractSuperCallFromObject.kt") + public void testAbstractSuperCallFromObject() throws Exception { + runTest("../../../idea/tests/testData/quickfix/specifySuperExplicitly/abstractSuperCallFromObject.kt"); + } + + @TestMetadata("abstractSuperCallHashCode.kt") + public void testAbstractSuperCallHashCode() throws Exception { + runTest("../../../idea/tests/testData/quickfix/specifySuperExplicitly/abstractSuperCallHashCode.kt"); + } + + @TestMetadata("abstractSuperCallToString.kt") + public void testAbstractSuperCallToString() throws Exception { + runTest("../../../idea/tests/testData/quickfix/specifySuperExplicitly/abstractSuperCallToString.kt"); + } + + @TestMetadata("abstractSuperCallWithExplicitSuper.kt") + public void testAbstractSuperCallWithExplicitSuper() throws Exception { + runTest("../../../idea/tests/testData/quickfix/specifySuperExplicitly/abstractSuperCallWithExplicitSuper.kt"); + } + + @TestMetadata("abstractSuperCallWithExplicitSuper2.kt") + public void testAbstractSuperCallWithExplicitSuper2() throws Exception { + runTest("../../../idea/tests/testData/quickfix/specifySuperExplicitly/abstractSuperCallWithExplicitSuper2.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/specifySuperType") + public static class SpecifySuperType extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("fullyQualifiedSuperType.kt") + public void testFullyQualifiedSuperType() throws Exception { + runTest("../../../idea/tests/testData/quickfix/specifySuperType/fullyQualifiedSuperType.kt"); + } + + @TestMetadata("fullyQualifiedSuperTypeHasAnnotations.kt") + public void testFullyQualifiedSuperTypeHasAnnotations() throws Exception { + runTest("../../../idea/tests/testData/quickfix/specifySuperType/fullyQualifiedSuperTypeHasAnnotations.kt"); + } + + @TestMetadata("fullyQualifiedSuperTypeHasTypeArguments.kt") + public void testFullyQualifiedSuperTypeHasTypeArguments() throws Exception { + runTest("../../../idea/tests/testData/quickfix/specifySuperType/fullyQualifiedSuperTypeHasTypeArguments.kt"); + } + + @TestMetadata("function.kt") + public void testFunction() throws Exception { + runTest("../../../idea/tests/testData/quickfix/specifySuperType/function.kt"); + } + + @TestMetadata("property.kt") + public void testProperty() throws Exception { + runTest("../../../idea/tests/testData/quickfix/specifySuperType/property.kt"); + } + + @TestMetadata("superExpressionHasLabel.kt") + public void testSuperExpressionHasLabel() throws Exception { + runTest("../../../idea/tests/testData/quickfix/specifySuperType/superExpressionHasLabel.kt"); + } + + @TestMetadata("superTypeHasAnnotations.kt") + public void testSuperTypeHasAnnotations() throws Exception { + runTest("../../../idea/tests/testData/quickfix/specifySuperType/superTypeHasAnnotations.kt"); + } + + @TestMetadata("superTypeHasTypeArguments.kt") + public void testSuperTypeHasTypeArguments() throws Exception { + runTest("../../../idea/tests/testData/quickfix/specifySuperType/superTypeHasTypeArguments.kt"); + } + + @TestMetadata("superTypeIsExtendedByOtherSuperType.kt") + public void testSuperTypeIsExtendedByOtherSuperType() throws Exception { + runTest("../../../idea/tests/testData/quickfix/specifySuperType/superTypeIsExtendedByOtherSuperType.kt"); + } + + @TestMetadata("typeMismatch.kt") + public void testTypeMismatch() throws Exception { + runTest("../../../idea/tests/testData/quickfix/specifySuperType/typeMismatch.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/specifyTypeExplicitly") + public static class SpecifyTypeExplicitly extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("approximatedLocalTypeWillBecomeNullable.kt") + public void testApproximatedLocalTypeWillBecomeNullable() throws Exception { + runTest("../../../idea/tests/testData/quickfix/specifyTypeExplicitly/approximatedLocalTypeWillBecomeNullable.kt"); + } + } + @RunWith(JUnit3RunnerWithInners.class) @TestMetadata("../../../idea/tests/testData/quickfix/specifyVisibilityInExplicitApiMode") public static class SpecifyVisibilityInExplicitApiMode extends AbstractHighLevelQuickFixTest { @@ -3511,6 +13095,224 @@ public abstract class HighLevelQuickFixTestGenerated extends AbstractHighLevelQu } } + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/supertypeInitialization") + public static class SupertypeInitialization extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("addImport.kt") + public void testAddImport() throws Exception { + runTest("../../../idea/tests/testData/quickfix/supertypeInitialization/addImport.kt"); + } + + @TestMetadata("addParameters.kt") + public void testAddParameters() throws Exception { + runTest("../../../idea/tests/testData/quickfix/supertypeInitialization/addParameters.kt"); + } + + @TestMetadata("addParenthesis.kt") + public void testAddParenthesis() throws Exception { + runTest("../../../idea/tests/testData/quickfix/supertypeInitialization/addParenthesis.kt"); + } + + @TestMetadata("addParenthesisDefaultParameters.kt") + public void testAddParenthesisDefaultParameters() throws Exception { + runTest("../../../idea/tests/testData/quickfix/supertypeInitialization/addParenthesisDefaultParameters.kt"); + } + + @TestMetadata("addParenthesisEmptyConstructor.kt") + public void testAddParenthesisEmptyConstructor() throws Exception { + runTest("../../../idea/tests/testData/quickfix/supertypeInitialization/addParenthesisEmptyConstructor.kt"); + } + + @TestMetadata("addParenthesisExpectClass.kt") + public void testAddParenthesisExpectClass() throws Exception { + runTest("../../../idea/tests/testData/quickfix/supertypeInitialization/addParenthesisExpectClass.kt"); + } + + @TestMetadata("addParenthesisForInvalidSealedClass.kt") + public void testAddParenthesisForInvalidSealedClass() throws Exception { + runTest("../../../idea/tests/testData/quickfix/supertypeInitialization/addParenthesisForInvalidSealedClass.kt"); + } + + @TestMetadata("addParenthesisForLocalClass.kt") + public void testAddParenthesisForLocalClass() throws Exception { + runTest("../../../idea/tests/testData/quickfix/supertypeInitialization/addParenthesisForLocalClass.kt"); + } + + @TestMetadata("addParenthesisForObjectExpression.kt") + public void testAddParenthesisForObjectExpression() throws Exception { + runTest("../../../idea/tests/testData/quickfix/supertypeInitialization/addParenthesisForObjectExpression.kt"); + } + + @TestMetadata("addParenthesisForSealedClass.kt") + public void testAddParenthesisForSealedClass() throws Exception { + runTest("../../../idea/tests/testData/quickfix/supertypeInitialization/addParenthesisForSealedClass.kt"); + } + + @TestMetadata("addParenthesisForSealedClass2.kt") + public void testAddParenthesisForSealedClass2() throws Exception { + runTest("../../../idea/tests/testData/quickfix/supertypeInitialization/addParenthesisForSealedClass2.kt"); + } + + @TestMetadata("annotation.kt") + public void testAnnotation() throws Exception { + runTest("../../../idea/tests/testData/quickfix/supertypeInitialization/annotation.kt"); + } + + @TestMetadata("baseConstructorError.kt") + public void testBaseConstructorError() throws Exception { + runTest("../../../idea/tests/testData/quickfix/supertypeInitialization/baseConstructorError.kt"); + } + + @TestMetadata("createConstructor.kt") + public void testCreateConstructor() throws Exception { + runTest("../../../idea/tests/testData/quickfix/supertypeInitialization/createConstructor.kt"); + } + + @TestMetadata("data.kt") + public void testData() throws Exception { + runTest("../../../idea/tests/testData/quickfix/supertypeInitialization/data.kt"); + } + + @TestMetadata("displayLongSignatures1.kt") + public void testDisplayLongSignatures1() throws Exception { + runTest("../../../idea/tests/testData/quickfix/supertypeInitialization/displayLongSignatures1.kt"); + } + + @TestMetadata("displayLongSignatures2.kt") + public void testDisplayLongSignatures2() throws Exception { + runTest("../../../idea/tests/testData/quickfix/supertypeInitialization/displayLongSignatures2.kt"); + } + + @TestMetadata("enum.kt") + public void testEnum() throws Exception { + runTest("../../../idea/tests/testData/quickfix/supertypeInitialization/enum.kt"); + } + + @TestMetadata("genericClass.kt") + public void testGenericClass() throws Exception { + runTest("../../../idea/tests/testData/quickfix/supertypeInitialization/genericClass.kt"); + } + + @TestMetadata("incompleteConstructor.kt") + public void testIncompleteConstructor() throws Exception { + runTest("../../../idea/tests/testData/quickfix/supertypeInitialization/incompleteConstructor.kt"); + } + + @TestMetadata("inline.kt") + public void testInline() throws Exception { + runTest("../../../idea/tests/testData/quickfix/supertypeInitialization/inline.kt"); + } + + @TestMetadata("keywordName.kt") + public void testKeywordName() throws Exception { + runTest("../../../idea/tests/testData/quickfix/supertypeInitialization/keywordName.kt"); + } + + @TestMetadata("multipleConstructors.kt") + public void testMultipleConstructors() throws Exception { + runTest("../../../idea/tests/testData/quickfix/supertypeInitialization/multipleConstructors.kt"); + } + + @TestMetadata("noAccessibleConstructors.kt") + public void testNoAccessibleConstructors() throws Exception { + runTest("../../../idea/tests/testData/quickfix/supertypeInitialization/noAccessibleConstructors.kt"); + } + + @TestMetadata("noParameters.kt") + public void testNoParameters() throws Exception { + runTest("../../../idea/tests/testData/quickfix/supertypeInitialization/noParameters.kt"); + } + + @TestMetadata("primaryConstructorInaccessible.kt") + public void testPrimaryConstructorInaccessible() throws Exception { + runTest("../../../idea/tests/testData/quickfix/supertypeInitialization/primaryConstructorInaccessible.kt"); + } + + @TestMetadata("someParametersAlreadyExist.kt") + public void testSomeParametersAlreadyExist() throws Exception { + runTest("../../../idea/tests/testData/quickfix/supertypeInitialization/someParametersAlreadyExist.kt"); + } + + @TestMetadata("someParametersAlreadyExistNoTypeConflicts.kt") + public void testSomeParametersAlreadyExistNoTypeConflicts() throws Exception { + runTest("../../../idea/tests/testData/quickfix/supertypeInitialization/someParametersAlreadyExistNoTypeConflicts.kt"); + } + + @TestMetadata("value.kt") + public void testValue() throws Exception { + runTest("../../../idea/tests/testData/quickfix/supertypeInitialization/value.kt"); + } + + @TestMetadata("vararg1.kt") + public void testVararg1() throws Exception { + runTest("../../../idea/tests/testData/quickfix/supertypeInitialization/vararg1.kt"); + } + + @TestMetadata("vararg2.kt") + public void testVararg2() throws Exception { + runTest("../../../idea/tests/testData/quickfix/supertypeInitialization/vararg2.kt"); + } + + @TestMetadata("vararg3.kt") + public void testVararg3() throws Exception { + runTest("../../../idea/tests/testData/quickfix/supertypeInitialization/vararg3.kt"); + } + + @TestMetadata("vararg4.kt") + public void testVararg4() throws Exception { + runTest("../../../idea/tests/testData/quickfix/supertypeInitialization/vararg4.kt"); + } + + @TestMetadata("vararg5.kt") + public void testVararg5() throws Exception { + runTest("../../../idea/tests/testData/quickfix/supertypeInitialization/vararg5.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/superTypeIsExtensionType") + public static class SuperTypeIsExtensionType extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("typeWith1Argument.kt") + public void testTypeWith1Argument() throws Exception { + runTest("../../../idea/tests/testData/quickfix/superTypeIsExtensionType/typeWith1Argument.kt"); + } + + @TestMetadata("typeWithAnnotations.kt") + public void testTypeWithAnnotations() throws Exception { + runTest("../../../idea/tests/testData/quickfix/superTypeIsExtensionType/typeWithAnnotations.kt"); + } + + @TestMetadata("typeWithNoArgument.kt") + public void testTypeWithNoArgument() throws Exception { + runTest("../../../idea/tests/testData/quickfix/superTypeIsExtensionType/typeWithNoArgument.kt"); + } + + @TestMetadata("typeWithTypeArgument.kt") + public void testTypeWithTypeArgument() throws Exception { + runTest("../../../idea/tests/testData/quickfix/superTypeIsExtensionType/typeWithTypeArgument.kt"); + } + } + @RunWith(JUnit3RunnerWithInners.class) @TestMetadata("../../../idea/tests/testData/quickfix/surroundWithArrayOfForNamedArgumentsToVarargs") public static class SurroundWithArrayOfForNamedArgumentsToVarargs extends AbstractHighLevelQuickFixTest { @@ -3571,227 +13373,8 @@ public abstract class HighLevelQuickFixTestGenerated extends AbstractHighLevelQu } @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/when") - public static class When extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("addElseBranchBooleanWarning.kt") - public void testAddElseBranchBooleanWarning() throws Exception { - runTest("../../../idea/tests/testData/quickfix/when/addElseBranchBooleanWarning.kt"); - } - - @TestMetadata("addElseBranchEnumStatement.kt") - public void testAddElseBranchEnumStatement() throws Exception { - runTest("../../../idea/tests/testData/quickfix/when/addElseBranchEnumStatement.kt"); - } - - @TestMetadata("addElseBranchSealed.kt") - public void testAddElseBranchSealed() throws Exception { - runTest("../../../idea/tests/testData/quickfix/when/addElseBranchSealed.kt"); - } - - @TestMetadata("addElseBranchSealedWarning.kt") - public void testAddElseBranchSealedWarning() throws Exception { - runTest("../../../idea/tests/testData/quickfix/when/addElseBranchSealedWarning.kt"); - } - - @TestMetadata("addRemainingBranchesBlankLine.kt") - public void testAddRemainingBranchesBlankLine() throws Exception { - runTest("../../../idea/tests/testData/quickfix/when/addRemainingBranchesBlankLine.kt"); - } - - @TestMetadata("addRemainingBranchesBlankLineWithComment.kt") - public void testAddRemainingBranchesBlankLineWithComment() throws Exception { - runTest("../../../idea/tests/testData/quickfix/when/addRemainingBranchesBlankLineWithComment.kt"); - } - - @TestMetadata("addRemainingBranchesBoolean.kt") - public void testAddRemainingBranchesBoolean() throws Exception { - runTest("../../../idea/tests/testData/quickfix/when/addRemainingBranchesBoolean.kt"); - } - - @TestMetadata("addRemainingBranchesEnum.kt") - public void testAddRemainingBranchesEnum() throws Exception { - runTest("../../../idea/tests/testData/quickfix/when/addRemainingBranchesEnum.kt"); - } - - @TestMetadata("addRemainingBranchesEnumBackTicks.kt") - public void testAddRemainingBranchesEnumBackTicks() throws Exception { - runTest("../../../idea/tests/testData/quickfix/when/addRemainingBranchesEnumBackTicks.kt"); - } - - @TestMetadata("addRemainingBranchesEnumImport1.kt") - public void testAddRemainingBranchesEnumImport1() throws Exception { - runTest("../../../idea/tests/testData/quickfix/when/addRemainingBranchesEnumImport1.kt"); - } - - @TestMetadata("addRemainingBranchesEnumImport2.kt") - public void testAddRemainingBranchesEnumImport2() throws Exception { - runTest("../../../idea/tests/testData/quickfix/when/addRemainingBranchesEnumImport2.kt"); - } - - @TestMetadata("addRemainingBranchesEnumImport3.kt") - public void testAddRemainingBranchesEnumImport3() throws Exception { - runTest("../../../idea/tests/testData/quickfix/when/addRemainingBranchesEnumImport3.kt"); - } - - @TestMetadata("addRemainingBranchesEnumImport4.kt") - public void testAddRemainingBranchesEnumImport4() throws Exception { - runTest("../../../idea/tests/testData/quickfix/when/addRemainingBranchesEnumImport4.kt"); - } - - @TestMetadata("addRemainingBranchesEnumStatement.kt") - public void testAddRemainingBranchesEnumStatement() throws Exception { - runTest("../../../idea/tests/testData/quickfix/when/addRemainingBranchesEnumStatement.kt"); - } - - @TestMetadata("addRemainingBranchesGeneric.kt") - public void testAddRemainingBranchesGeneric() throws Exception { - runTest("../../../idea/tests/testData/quickfix/when/addRemainingBranchesGeneric.kt"); - } - - @TestMetadata("addRemainingBranchesGeneric2.kt") - public void testAddRemainingBranchesGeneric2() throws Exception { - runTest("../../../idea/tests/testData/quickfix/when/addRemainingBranchesGeneric2.kt"); - } - - @TestMetadata("addRemainingBranchesInNonDefaultPackage.kt") - public void testAddRemainingBranchesInNonDefaultPackage() throws Exception { - runTest("../../../idea/tests/testData/quickfix/when/addRemainingBranchesInNonDefaultPackage.kt"); - } - - @TestMetadata("addRemainingBranchesMissingLeftBracket.kt") - public void testAddRemainingBranchesMissingLeftBracket() throws Exception { - runTest("../../../idea/tests/testData/quickfix/when/addRemainingBranchesMissingLeftBracket.kt"); - } - - @TestMetadata("addRemainingBranchesMissingRightBracket.kt") - public void testAddRemainingBranchesMissingRightBracket() throws Exception { - runTest("../../../idea/tests/testData/quickfix/when/addRemainingBranchesMissingRightBracket.kt"); - } - - @TestMetadata("addRemainingBranchesMissingRightParenthesis.kt") - public void testAddRemainingBranchesMissingRightParenthesis() throws Exception { - runTest("../../../idea/tests/testData/quickfix/when/addRemainingBranchesMissingRightParenthesis.kt"); - } - - @TestMetadata("addRemainingBranchesSealed.kt") - public void testAddRemainingBranchesSealed() throws Exception { - runTest("../../../idea/tests/testData/quickfix/when/addRemainingBranchesSealed.kt"); - } - - @TestMetadata("addRemainingBranchesSealedBackTicks.kt") - public void testAddRemainingBranchesSealedBackTicks() throws Exception { - runTest("../../../idea/tests/testData/quickfix/when/addRemainingBranchesSealedBackTicks.kt"); - } - - @TestMetadata("addRemainingBranchesSealedStatement.kt") - public void testAddRemainingBranchesSealedStatement() throws Exception { - runTest("../../../idea/tests/testData/quickfix/when/addRemainingBranchesSealedStatement.kt"); - } - - @TestMetadata("addRemainingBranchesSealedWarning.kt") - public void testAddRemainingBranchesSealedWarning() throws Exception { - runTest("../../../idea/tests/testData/quickfix/when/addRemainingBranchesSealedWarning.kt"); - } - - @TestMetadata("breakInWhen.kt") - public void testBreakInWhen() throws Exception { - runTest("../../../idea/tests/testData/quickfix/when/breakInWhen.kt"); - } - - @TestMetadata("breakInWhenInLabeled.kt") - public void testBreakInWhenInLabeled() throws Exception { - runTest("../../../idea/tests/testData/quickfix/when/breakInWhenInLabeled.kt"); - } - - @TestMetadata("commasInConditionWithNoArguments.kt") - public void testCommasInConditionWithNoArguments() throws Exception { - runTest("../../../idea/tests/testData/quickfix/when/commasInConditionWithNoArguments.kt"); - } - - @TestMetadata("commasInConditionWithNoArguments2.kt") - public void testCommasInConditionWithNoArguments2() throws Exception { - runTest("../../../idea/tests/testData/quickfix/when/commasInConditionWithNoArguments2.kt"); - } - - @TestMetadata("continueInWhen.kt") - public void testContinueInWhen() throws Exception { - runTest("../../../idea/tests/testData/quickfix/when/continueInWhen.kt"); - } - - @TestMetadata("continueInWhenInLabeled.kt") - public void testContinueInWhenInLabeled() throws Exception { - runTest("../../../idea/tests/testData/quickfix/when/continueInWhenInLabeled.kt"); - } - - @TestMetadata("continueInWhenWithLabel.kt") - public void testContinueInWhenWithLabel() throws Exception { - runTest("../../../idea/tests/testData/quickfix/when/continueInWhenWithLabel.kt"); - } - - @TestMetadata("elseNotLastInWhen.kt") - public void testElseNotLastInWhen() throws Exception { - runTest("../../../idea/tests/testData/quickfix/when/elseNotLastInWhen.kt"); - } - - @TestMetadata("localSealedClassInheritorExhaustive.kt") - public void testLocalSealedClassInheritorExhaustive() throws Exception { - runTest("../../../idea/tests/testData/quickfix/when/localSealedClassInheritorExhaustive.kt"); - } - - @TestMetadata("noElseInWhenWithBranches.kt") - public void testNoElseInWhenWithBranches() throws Exception { - runTest("../../../idea/tests/testData/quickfix/when/noElseInWhenWithBranches.kt"); - } - - @TestMetadata("noElseInWhenWithoutBranches.kt") - public void testNoElseInWhenWithoutBranches() throws Exception { - runTest("../../../idea/tests/testData/quickfix/when/noElseInWhenWithoutBranches.kt"); - } - - @TestMetadata("notRedundantBranch.kt") - public void testNotRedundantBranch() throws Exception { - runTest("../../../idea/tests/testData/quickfix/when/notRedundantBranch.kt"); - } - - @TestMetadata("removeRedundantBranch.kt") - public void testRemoveRedundantBranch() throws Exception { - runTest("../../../idea/tests/testData/quickfix/when/removeRedundantBranch.kt"); - } - - @TestMetadata("removeRedundantCondition.kt") - public void testRemoveRedundantCondition() throws Exception { - runTest("../../../idea/tests/testData/quickfix/when/removeRedundantCondition.kt"); - } - - @TestMetadata("removeRedundantElse.kt") - public void testRemoveRedundantElse() throws Exception { - runTest("../../../idea/tests/testData/quickfix/when/removeRedundantElse.kt"); - } - - @TestMetadata("removeRedundantElseForSealedClasses.kt") - public void testRemoveRedundantElseForSealedClasses() throws Exception { - runTest("../../../idea/tests/testData/quickfix/when/removeRedundantElseForSealedClasses.kt"); - } - - @TestMetadata("twoElseBranchesInWhen.kt") - public void testTwoElseBranchesInWhen() throws Exception { - runTest("../../../idea/tests/testData/quickfix/when/twoElseBranchesInWhen.kt"); - } - } - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/wrapWithSafeLetCall") - public static class WrapWithSafeLetCall extends AbstractHighLevelQuickFixTest { + @TestMetadata("../../../idea/tests/testData/quickfix/surroundWithNullCheck") + public static class SurroundWithNullCheck extends AbstractHighLevelQuickFixTest { @java.lang.Override @org.jetbrains.annotations.NotNull public final KotlinPluginMode getPluginMode() { @@ -3804,172 +13387,479 @@ public abstract class HighLevelQuickFixTestGenerated extends AbstractHighLevelQu @TestMetadata("argumentNullable.kt") public void testArgumentNullable() throws Exception { - runTest("../../../idea/tests/testData/quickfix/wrapWithSafeLetCall/argumentNullable.kt"); + runTest("../../../idea/tests/testData/quickfix/surroundWithNullCheck/argumentNullable.kt"); } - @TestMetadata("callWithLambdaArgument.kt") - public void testCallWithLambdaArgument() throws Exception { - runTest("../../../idea/tests/testData/quickfix/wrapWithSafeLetCall/callWithLambdaArgument.kt"); - } - - @TestMetadata("chainedCallTypeMismatch.kt") - public void testChainedCallTypeMismatch() throws Exception { - runTest("../../../idea/tests/testData/quickfix/wrapWithSafeLetCall/chainedCallTypeMismatch.kt"); - } - - @TestMetadata("chainedCallTypeMismatch2.kt") - public void testChainedCallTypeMismatch2() throws Exception { - runTest("../../../idea/tests/testData/quickfix/wrapWithSafeLetCall/chainedCallTypeMismatch2.kt"); + @TestMetadata("assignment.kt") + public void testAssignment() throws Exception { + runTest("../../../idea/tests/testData/quickfix/surroundWithNullCheck/assignment.kt"); } @TestMetadata("chainedUnsafeCall.kt") public void testChainedUnsafeCall() throws Exception { - runTest("../../../idea/tests/testData/quickfix/wrapWithSafeLetCall/chainedUnsafeCall.kt"); - } - - @TestMetadata("elvisArgument.kt") - public void testElvisArgument() throws Exception { - runTest("../../../idea/tests/testData/quickfix/wrapWithSafeLetCall/elvisArgument.kt"); + runTest("../../../idea/tests/testData/quickfix/surroundWithNullCheck/chainedUnsafeCall.kt"); } @TestMetadata("expressionUnsafeCall.kt") public void testExpressionUnsafeCall() throws Exception { - runTest("../../../idea/tests/testData/quickfix/wrapWithSafeLetCall/expressionUnsafeCall.kt"); + runTest("../../../idea/tests/testData/quickfix/surroundWithNullCheck/expressionUnsafeCall.kt"); } - @TestMetadata("extensionMethod.kt") - public void testExtensionMethod() throws Exception { - runTest("../../../idea/tests/testData/quickfix/wrapWithSafeLetCall/extensionMethod.kt"); + @TestMetadata("in.kt") + public void testIn() throws Exception { + runTest("../../../idea/tests/testData/quickfix/surroundWithNullCheck/in.kt"); } - @TestMetadata("extentionFunctionCall.kt") - public void testExtentionFunctionCall() throws Exception { - runTest("../../../idea/tests/testData/quickfix/wrapWithSafeLetCall/extentionFunctionCall.kt"); + @TestMetadata("inLambda.kt") + public void testInLambda() throws Exception { + runTest("../../../idea/tests/testData/quickfix/surroundWithNullCheck/inLambda.kt"); } - @TestMetadata("extentionFunctionCall2.kt") - public void testExtentionFunctionCall2() throws Exception { - runTest("../../../idea/tests/testData/quickfix/wrapWithSafeLetCall/extentionFunctionCall2.kt"); + @TestMetadata("inLambda2.kt") + public void testInLambda2() throws Exception { + runTest("../../../idea/tests/testData/quickfix/surroundWithNullCheck/inLambda2.kt"); } - @TestMetadata("inOperator.kt") - public void testInOperator() throws Exception { - runTest("../../../idea/tests/testData/quickfix/wrapWithSafeLetCall/inOperator.kt"); + @TestMetadata("inLambda3.kt") + public void testInLambda3() throws Exception { + runTest("../../../idea/tests/testData/quickfix/surroundWithNullCheck/inLambda3.kt"); } - @TestMetadata("insideLet.kt") - public void testInsideLet() throws Exception { - runTest("../../../idea/tests/testData/quickfix/wrapWithSafeLetCall/insideLet.kt"); + @TestMetadata("infixUnsafeCall.kt") + public void testInfixUnsafeCall() throws Exception { + runTest("../../../idea/tests/testData/quickfix/surroundWithNullCheck/infixUnsafeCall.kt"); } @TestMetadata("invokeFuncUnsafe.kt") public void testInvokeFuncUnsafe() throws Exception { - runTest("../../../idea/tests/testData/quickfix/wrapWithSafeLetCall/invokeFuncUnsafe.kt"); - } - - @TestMetadata("invokeFunctionType.kt") - public void testInvokeFunctionType() throws Exception { - runTest("../../../idea/tests/testData/quickfix/wrapWithSafeLetCall/invokeFunctionType.kt"); - } - - @TestMetadata("invokeFunctionType2.kt") - public void testInvokeFunctionType2() throws Exception { - runTest("../../../idea/tests/testData/quickfix/wrapWithSafeLetCall/invokeFunctionType2.kt"); - } - - @TestMetadata("invokeOperator.kt") - public void testInvokeOperator() throws Exception { - runTest("../../../idea/tests/testData/quickfix/wrapWithSafeLetCall/invokeOperator.kt"); - } - - @TestMetadata("invokeOperator2.kt") - public void testInvokeOperator2() throws Exception { - runTest("../../../idea/tests/testData/quickfix/wrapWithSafeLetCall/invokeOperator2.kt"); + runTest("../../../idea/tests/testData/quickfix/surroundWithNullCheck/invokeFuncUnsafe.kt"); } @TestMetadata("invokeUnsafe.kt") public void testInvokeUnsafe() throws Exception { - runTest("../../../idea/tests/testData/quickfix/wrapWithSafeLetCall/invokeUnsafe.kt"); + runTest("../../../idea/tests/testData/quickfix/surroundWithNullCheck/invokeUnsafe.kt"); } - @TestMetadata("nameAlreadyInScope.kt") - public void testNameAlreadyInScope() throws Exception { - runTest("../../../idea/tests/testData/quickfix/wrapWithSafeLetCall/nameAlreadyInScope.kt"); + @TestMetadata("iteratorUnsafe.kt") + public void testIteratorUnsafe() throws Exception { + runTest("../../../idea/tests/testData/quickfix/surroundWithNullCheck/iteratorUnsafe.kt"); } - @TestMetadata("nullableBinaryExpression.kt") - public void testNullableBinaryExpression() throws Exception { - runTest("../../../idea/tests/testData/quickfix/wrapWithSafeLetCall/nullableBinaryExpression.kt"); + @TestMetadata("nullableInCondition.kt") + public void testNullableInCondition() throws Exception { + runTest("../../../idea/tests/testData/quickfix/surroundWithNullCheck/nullableInCondition.kt"); } - @TestMetadata("nullableReceiver.kt") - public void testNullableReceiver() throws Exception { - runTest("../../../idea/tests/testData/quickfix/wrapWithSafeLetCall/nullableReceiver.kt"); + @TestMetadata("objectNestedQualifiers.kt") + public void testObjectNestedQualifiers() throws Exception { + runTest("../../../idea/tests/testData/quickfix/surroundWithNullCheck/objectNestedQualifiers.kt"); } @TestMetadata("objectQualifier.kt") public void testObjectQualifier() throws Exception { - runTest("../../../idea/tests/testData/quickfix/wrapWithSafeLetCall/objectQualifier.kt"); + runTest("../../../idea/tests/testData/quickfix/surroundWithNullCheck/objectQualifier.kt"); } - @TestMetadata("refactorNullableFunctionTypeProperty1.kt") - public void testRefactorNullableFunctionTypeProperty1() throws Exception { - runTest("../../../idea/tests/testData/quickfix/wrapWithSafeLetCall/refactorNullableFunctionTypeProperty1.kt"); + @TestMetadata("simpleUnsafeCall.kt") + public void testSimpleUnsafeCall() throws Exception { + runTest("../../../idea/tests/testData/quickfix/surroundWithNullCheck/simpleUnsafeCall.kt"); } - @TestMetadata("refactorNullableFunctionTypeProperty2.kt") - public void testRefactorNullableFunctionTypeProperty2() throws Exception { - runTest("../../../idea/tests/testData/quickfix/wrapWithSafeLetCall/refactorNullableFunctionTypeProperty2.kt"); + @TestMetadata("unsafeCallInBinary.kt") + public void testUnsafeCallInBinary() throws Exception { + runTest("../../../idea/tests/testData/quickfix/surroundWithNullCheck/unsafeCallInBinary.kt"); } - @TestMetadata("unsafe.kt") - public void testUnsafe() throws Exception { - runTest("../../../idea/tests/testData/quickfix/wrapWithSafeLetCall/unsafe.kt"); + @TestMetadata("unsafeCallInDeclaration.kt") + public void testUnsafeCallInDeclaration() throws Exception { + runTest("../../../idea/tests/testData/quickfix/surroundWithNullCheck/unsafeCallInDeclaration.kt"); } - @TestMetadata("unsafe2.kt") - public void testUnsafe2() throws Exception { - runTest("../../../idea/tests/testData/quickfix/wrapWithSafeLetCall/unsafe2.kt"); + @TestMetadata("unsafeCallInGetter.kt") + public void testUnsafeCallInGetter() throws Exception { + runTest("../../../idea/tests/testData/quickfix/surroundWithNullCheck/unsafeCallInGetter.kt"); } - @TestMetadata("unsafeForNullableParameter.kt") - public void testUnsafeForNullableParameter() throws Exception { - runTest("../../../idea/tests/testData/quickfix/wrapWithSafeLetCall/unsafeForNullableParameter.kt"); + @TestMetadata("unsafeCallInsideAnonymous.kt") + public void testUnsafeCallInsideAnonymous() throws Exception { + runTest("../../../idea/tests/testData/quickfix/surroundWithNullCheck/unsafeCallInsideAnonymous.kt"); + } + + @TestMetadata("unsafeCallInsideIf.kt") + public void testUnsafeCallInsideIf() throws Exception { + runTest("../../../idea/tests/testData/quickfix/surroundWithNullCheck/unsafeCallInsideIf.kt"); + } + + @TestMetadata("unsafeCallInsideWhen.kt") + public void testUnsafeCallInsideWhen() throws Exception { + runTest("../../../idea/tests/testData/quickfix/surroundWithNullCheck/unsafeCallInsideWhen.kt"); + } + + @TestMetadata("unsafeCallInsideWhile.kt") + public void testUnsafeCallInsideWhile() throws Exception { + runTest("../../../idea/tests/testData/quickfix/surroundWithNullCheck/unsafeCallInsideWhile.kt"); + } + + @TestMetadata("unstableTopLevelValueWithGetter.kt") + public void testUnstableTopLevelValueWithGetter() throws Exception { + runTest("../../../idea/tests/testData/quickfix/surroundWithNullCheck/unstableTopLevelValueWithGetter.kt"); + } + + @TestMetadata("unstableTopLevelVariable.kt") + public void testUnstableTopLevelVariable() throws Exception { + runTest("../../../idea/tests/testData/quickfix/surroundWithNullCheck/unstableTopLevelVariable.kt"); } @TestMetadata("unstableValue.kt") public void testUnstableValue() throws Exception { - runTest("../../../idea/tests/testData/quickfix/wrapWithSafeLetCall/unstableValue.kt"); + runTest("../../../idea/tests/testData/quickfix/surroundWithNullCheck/unstableValue.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/suspiciousCollectionReassignment") + public abstract static class SuspiciousCollectionReassignment extends AbstractHighLevelQuickFixTest { + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/suspiciousCollectionReassignment/changeTypeToMutable") + public static class ChangeTypeToMutable extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("hasType.kt") + public void testHasType() throws Exception { + runTest("../../../idea/tests/testData/quickfix/suspiciousCollectionReassignment/changeTypeToMutable/hasType.kt"); + } + + @TestMetadata("hasType2.kt") + public void testHasType2() throws Exception { + runTest("../../../idea/tests/testData/quickfix/suspiciousCollectionReassignment/changeTypeToMutable/hasType2.kt"); + } + + @TestMetadata("mutableListOf.kt") + public void testMutableListOf() throws Exception { + runTest("../../../idea/tests/testData/quickfix/suspiciousCollectionReassignment/changeTypeToMutable/mutableListOf.kt"); + } + + @TestMetadata("mutableMapOf.kt") + public void testMutableMapOf() throws Exception { + runTest("../../../idea/tests/testData/quickfix/suspiciousCollectionReassignment/changeTypeToMutable/mutableMapOf.kt"); + } + + @TestMetadata("mutableSetOf.kt") + public void testMutableSetOf() throws Exception { + runTest("../../../idea/tests/testData/quickfix/suspiciousCollectionReassignment/changeTypeToMutable/mutableSetOf.kt"); + } + + @TestMetadata("noInitializer.kt") + public void testNoInitializer() throws Exception { + runTest("../../../idea/tests/testData/quickfix/suspiciousCollectionReassignment/changeTypeToMutable/noInitializer.kt"); + } + + @TestMetadata("notLocal.kt") + public void testNotLocal() throws Exception { + runTest("../../../idea/tests/testData/quickfix/suspiciousCollectionReassignment/changeTypeToMutable/notLocal.kt"); + } + + @TestMetadata("toMutableList.kt") + public void testToMutableList() throws Exception { + runTest("../../../idea/tests/testData/quickfix/suspiciousCollectionReassignment/changeTypeToMutable/toMutableList.kt"); + } + + @TestMetadata("toMutableList2.kt") + public void testToMutableList2() throws Exception { + runTest("../../../idea/tests/testData/quickfix/suspiciousCollectionReassignment/changeTypeToMutable/toMutableList2.kt"); + } + + @TestMetadata("toMutableMap.kt") + public void testToMutableMap() throws Exception { + runTest("../../../idea/tests/testData/quickfix/suspiciousCollectionReassignment/changeTypeToMutable/toMutableMap.kt"); + } + + @TestMetadata("toMutableSet.kt") + public void testToMutableSet() throws Exception { + runTest("../../../idea/tests/testData/quickfix/suspiciousCollectionReassignment/changeTypeToMutable/toMutableSet.kt"); + } } - @TestMetadata("wrapAllNonNullablePositions1.kt") - public void testWrapAllNonNullablePositions1() throws Exception { - runTest("../../../idea/tests/testData/quickfix/wrapWithSafeLetCall/wrapAllNonNullablePositions1.kt"); + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/suspiciousCollectionReassignment/joinWithInitializer") + public static class JoinWithInitializer extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("noInitializer.kt") + public void testNoInitializer() throws Exception { + runTest("../../../idea/tests/testData/quickfix/suspiciousCollectionReassignment/joinWithInitializer/noInitializer.kt"); + } + + @TestMetadata("notLocal.kt") + public void testNotLocal() throws Exception { + runTest("../../../idea/tests/testData/quickfix/suspiciousCollectionReassignment/joinWithInitializer/notLocal.kt"); + } + + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("../../../idea/tests/testData/quickfix/suspiciousCollectionReassignment/joinWithInitializer/simple.kt"); + } + + @TestMetadata("used.kt") + public void testUsed() throws Exception { + runTest("../../../idea/tests/testData/quickfix/suspiciousCollectionReassignment/joinWithInitializer/used.kt"); + } } - @TestMetadata("wrapAllNonNullablePositions2.kt") - public void testWrapAllNonNullablePositions2() throws Exception { - runTest("../../../idea/tests/testData/quickfix/wrapWithSafeLetCall/wrapAllNonNullablePositions2.kt"); + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/suspiciousCollectionReassignment/replaceWithAssignment") + public static class ReplaceWithAssignment extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("differentType.kt") + public void testDifferentType() throws Exception { + runTest("../../../idea/tests/testData/quickfix/suspiciousCollectionReassignment/replaceWithAssignment/differentType.kt"); + } + + @TestMetadata("emptyList.kt") + public void testEmptyList() throws Exception { + runTest("../../../idea/tests/testData/quickfix/suspiciousCollectionReassignment/replaceWithAssignment/emptyList.kt"); + } + + @TestMetadata("emptyListOf.kt") + public void testEmptyListOf() throws Exception { + runTest("../../../idea/tests/testData/quickfix/suspiciousCollectionReassignment/replaceWithAssignment/emptyListOf.kt"); + } + + @TestMetadata("emptyMap.kt") + public void testEmptyMap() throws Exception { + runTest("../../../idea/tests/testData/quickfix/suspiciousCollectionReassignment/replaceWithAssignment/emptyMap.kt"); + } + + @TestMetadata("emptyMapOf.kt") + public void testEmptyMapOf() throws Exception { + runTest("../../../idea/tests/testData/quickfix/suspiciousCollectionReassignment/replaceWithAssignment/emptyMapOf.kt"); + } + + @TestMetadata("emptySet.kt") + public void testEmptySet() throws Exception { + runTest("../../../idea/tests/testData/quickfix/suspiciousCollectionReassignment/replaceWithAssignment/emptySet.kt"); + } + + @TestMetadata("emptySetOf.kt") + public void testEmptySetOf() throws Exception { + runTest("../../../idea/tests/testData/quickfix/suspiciousCollectionReassignment/replaceWithAssignment/emptySetOf.kt"); + } + + @TestMetadata("listOf.kt") + public void testListOf() throws Exception { + runTest("../../../idea/tests/testData/quickfix/suspiciousCollectionReassignment/replaceWithAssignment/listOf.kt"); + } + + @TestMetadata("mapOf.kt") + public void testMapOf() throws Exception { + runTest("../../../idea/tests/testData/quickfix/suspiciousCollectionReassignment/replaceWithAssignment/mapOf.kt"); + } + + @TestMetadata("minusEq.kt") + public void testMinusEq() throws Exception { + runTest("../../../idea/tests/testData/quickfix/suspiciousCollectionReassignment/replaceWithAssignment/minusEq.kt"); + } + + @TestMetadata("noInitializer.kt") + public void testNoInitializer() throws Exception { + runTest("../../../idea/tests/testData/quickfix/suspiciousCollectionReassignment/replaceWithAssignment/noInitializer.kt"); + } + + @TestMetadata("notEmpty.kt") + public void testNotEmpty() throws Exception { + runTest("../../../idea/tests/testData/quickfix/suspiciousCollectionReassignment/replaceWithAssignment/notEmpty.kt"); + } + + @TestMetadata("notLocal.kt") + public void testNotLocal() throws Exception { + runTest("../../../idea/tests/testData/quickfix/suspiciousCollectionReassignment/replaceWithAssignment/notLocal.kt"); + } + + @TestMetadata("setOf.kt") + public void testSetOf() throws Exception { + runTest("../../../idea/tests/testData/quickfix/suspiciousCollectionReassignment/replaceWithAssignment/setOf.kt"); + } + + @TestMetadata("used.kt") + public void testUsed() throws Exception { + runTest("../../../idea/tests/testData/quickfix/suspiciousCollectionReassignment/replaceWithAssignment/used.kt"); + } } - @TestMetadata("wrapAllNonNullablePositions3.kt") - public void testWrapAllNonNullablePositions3() throws Exception { - runTest("../../../idea/tests/testData/quickfix/wrapWithSafeLetCall/wrapAllNonNullablePositions3.kt"); + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/suspiciousCollectionReassignment/replaceWithFilter") + public static class ReplaceWithFilter extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("map.kt") + public void testMap() throws Exception { + runTest("../../../idea/tests/testData/quickfix/suspiciousCollectionReassignment/replaceWithFilter/map.kt"); + } + + @TestMetadata("minusEq.kt") + public void testMinusEq() throws Exception { + runTest("../../../idea/tests/testData/quickfix/suspiciousCollectionReassignment/replaceWithFilter/minusEq.kt"); + } + + @TestMetadata("notIterable.kt") + public void testNotIterable() throws Exception { + runTest("../../../idea/tests/testData/quickfix/suspiciousCollectionReassignment/replaceWithFilter/notIterable.kt"); + } + + @TestMetadata("plusEq.kt") + public void testPlusEq() throws Exception { + runTest("../../../idea/tests/testData/quickfix/suspiciousCollectionReassignment/replaceWithFilter/plusEq.kt"); + } } - @TestMetadata("wrapAllNonNullablePositions4.kt") - public void testWrapAllNonNullablePositions4() throws Exception { - runTest("../../../idea/tests/testData/quickfix/wrapWithSafeLetCall/wrapAllNonNullablePositions4.kt"); + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/suspiciousCollectionReassignment/replaceWithOrdinaryAssignment") + public static class ReplaceWithOrdinaryAssignment extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("../../../idea/tests/testData/quickfix/suspiciousCollectionReassignment/replaceWithOrdinaryAssignment/simple.kt"); + } + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/tooLongCharLiteralToString") + public static class TooLongCharLiteralToString extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; } - @TestMetadata("wrapAllNonNullablePositions5.kt") - public void testWrapAllNonNullablePositions5() throws Exception { - runTest("../../../idea/tests/testData/quickfix/wrapWithSafeLetCall/wrapAllNonNullablePositions5.kt"); + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); } - @TestMetadata("wrapAllNonNullablePositions6.kt") - public void testWrapAllNonNullablePositions6() throws Exception { - runTest("../../../idea/tests/testData/quickfix/wrapWithSafeLetCall/wrapAllNonNullablePositions6.kt"); + @TestMetadata("backslash.kt") + public void testBackslash() throws Exception { + runTest("../../../idea/tests/testData/quickfix/tooLongCharLiteralToString/backslash.kt"); + } + + @TestMetadata("backslashShouldNotBeEscaped.kt") + public void testBackslashShouldNotBeEscaped() throws Exception { + runTest("../../../idea/tests/testData/quickfix/tooLongCharLiteralToString/backslashShouldNotBeEscaped.kt"); + } + + @TestMetadata("dollarShouldNotBeEscaped.kt") + public void testDollarShouldNotBeEscaped() throws Exception { + runTest("../../../idea/tests/testData/quickfix/tooLongCharLiteralToString/dollarShouldNotBeEscaped.kt"); + } + + @TestMetadata("doubleQuotesShouldBeEscaped.kt") + public void testDoubleQuotesShouldBeEscaped() throws Exception { + runTest("../../../idea/tests/testData/quickfix/tooLongCharLiteralToString/doubleQuotesShouldBeEscaped.kt"); + } + + @TestMetadata("ecapedDoubleQuotesShouldNotBeEscaped.kt") + public void testEcapedDoubleQuotesShouldNotBeEscaped() throws Exception { + runTest("../../../idea/tests/testData/quickfix/tooLongCharLiteralToString/ecapedDoubleQuotesShouldNotBeEscaped.kt"); + } + + @TestMetadata("startWithBackslash.kt") + public void testStartWithBackslash() throws Exception { + runTest("../../../idea/tests/testData/quickfix/tooLongCharLiteralToString/startWithBackslash.kt"); + } + + @TestMetadata("startWithBackslashInString.kt") + public void testStartWithBackslashInString() throws Exception { + runTest("../../../idea/tests/testData/quickfix/tooLongCharLiteralToString/startWithBackslashInString.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/toString") + public static class ToString extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("callArgument.kt") + public void testCallArgument() throws Exception { + runTest("../../../idea/tests/testData/quickfix/toString/callArgument.kt"); + } + + @TestMetadata("notNullableExpectedNullable.kt") + public void testNotNullableExpectedNullable() throws Exception { + runTest("../../../idea/tests/testData/quickfix/toString/notNullableExpectedNullable.kt"); + } + + @TestMetadata("nullableExpectedNotNullable.kt") + public void testNullableExpectedNotNullable() throws Exception { + runTest("../../../idea/tests/testData/quickfix/toString/nullableExpectedNotNullable.kt"); + } + + @TestMetadata("nullableExpectedNullable.kt") + public void testNullableExpectedNullable() throws Exception { + runTest("../../../idea/tests/testData/quickfix/toString/nullableExpectedNullable.kt"); + } + + @TestMetadata("propertyInitializer.kt") + public void testPropertyInitializer() throws Exception { + runTest("../../../idea/tests/testData/quickfix/toString/propertyInitializer.kt"); + } + + @TestMetadata("returnStatement.kt") + public void testReturnStatement() throws Exception { + runTest("../../../idea/tests/testData/quickfix/toString/returnStatement.kt"); + } + + @TestMetadata("variableAssignment.kt") + public void testVariableAssignment() throws Exception { + runTest("../../../idea/tests/testData/quickfix/toString/variableAssignment.kt"); } } @@ -4107,6 +13997,84 @@ public abstract class HighLevelQuickFixTestGenerated extends AbstractHighLevelQu } } + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/typeImports") + public static class TypeImports extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("hasThisImport.kt") + public void testHasThisImport() throws Exception { + runTest("../../../idea/tests/testData/quickfix/typeImports/hasThisImport.kt"); + } + + @TestMetadata("noImportFromTheSameFile.kt") + public void testNoImportFromTheSameFile() throws Exception { + runTest("../../../idea/tests/testData/quickfix/typeImports/noImportFromTheSameFile.kt"); + } + + @TestMetadata("noImportJavaLang.kt") + public void testNoImportJavaLang() throws Exception { + runTest("../../../idea/tests/testData/quickfix/typeImports/noImportJavaLang.kt"); + } + + @TestMetadata("noImportJetStandard.kt") + public void testNoImportJetStandard() throws Exception { + runTest("../../../idea/tests/testData/quickfix/typeImports/noImportJetStandard.kt"); + } + + @TestMetadata("toImport1.kt") + public void testToImport1() throws Exception { + runTest("../../../idea/tests/testData/quickfix/typeImports/toImport1.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/typeInferenceExpectedTypeMismatch") + public static class TypeInferenceExpectedTypeMismatch extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("argument.kt") + public void testArgument() throws Exception { + runTest("../../../idea/tests/testData/quickfix/typeInferenceExpectedTypeMismatch/argument.kt"); + } + + @TestMetadata("assignment.kt") + public void testAssignment() throws Exception { + runTest("../../../idea/tests/testData/quickfix/typeInferenceExpectedTypeMismatch/assignment.kt"); + } + + @TestMetadata("initializer.kt") + public void testInitializer() throws Exception { + runTest("../../../idea/tests/testData/quickfix/typeInferenceExpectedTypeMismatch/initializer.kt"); + } + + @TestMetadata("notKClass.kt") + public void testNotKClass() throws Exception { + runTest("../../../idea/tests/testData/quickfix/typeInferenceExpectedTypeMismatch/notKClass.kt"); + } + + @TestMetadata("return.kt") + public void testReturn() throws Exception { + runTest("../../../idea/tests/testData/quickfix/typeInferenceExpectedTypeMismatch/return.kt"); + } + } + @RunWith(JUnit3RunnerWithInners.class) @TestMetadata("../../../idea/tests/testData/quickfix/typeMismatch") public abstract static class TypeMismatch extends AbstractHighLevelQuickFixTest { @@ -5933,10231 +15901,6 @@ public abstract class HighLevelQuickFixTestGenerated extends AbstractHighLevelQu } } - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/toString") - public static class ToString extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("callArgument.kt") - public void testCallArgument() throws Exception { - runTest("../../../idea/tests/testData/quickfix/toString/callArgument.kt"); - } - - @TestMetadata("notNullableExpectedNullable.kt") - public void testNotNullableExpectedNullable() throws Exception { - runTest("../../../idea/tests/testData/quickfix/toString/notNullableExpectedNullable.kt"); - } - - @TestMetadata("nullableExpectedNotNullable.kt") - public void testNullableExpectedNotNullable() throws Exception { - runTest("../../../idea/tests/testData/quickfix/toString/nullableExpectedNotNullable.kt"); - } - - @TestMetadata("nullableExpectedNullable.kt") - public void testNullableExpectedNullable() throws Exception { - runTest("../../../idea/tests/testData/quickfix/toString/nullableExpectedNullable.kt"); - } - - @TestMetadata("propertyInitializer.kt") - public void testPropertyInitializer() throws Exception { - runTest("../../../idea/tests/testData/quickfix/toString/propertyInitializer.kt"); - } - - @TestMetadata("returnStatement.kt") - public void testReturnStatement() throws Exception { - runTest("../../../idea/tests/testData/quickfix/toString/returnStatement.kt"); - } - - @TestMetadata("variableAssignment.kt") - public void testVariableAssignment() throws Exception { - runTest("../../../idea/tests/testData/quickfix/toString/variableAssignment.kt"); - } - } - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/specifySuperType") - public static class SpecifySuperType extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("fullyQualifiedSuperType.kt") - public void testFullyQualifiedSuperType() throws Exception { - runTest("../../../idea/tests/testData/quickfix/specifySuperType/fullyQualifiedSuperType.kt"); - } - - @TestMetadata("fullyQualifiedSuperTypeHasAnnotations.kt") - public void testFullyQualifiedSuperTypeHasAnnotations() throws Exception { - runTest("../../../idea/tests/testData/quickfix/specifySuperType/fullyQualifiedSuperTypeHasAnnotations.kt"); - } - - @TestMetadata("fullyQualifiedSuperTypeHasTypeArguments.kt") - public void testFullyQualifiedSuperTypeHasTypeArguments() throws Exception { - runTest("../../../idea/tests/testData/quickfix/specifySuperType/fullyQualifiedSuperTypeHasTypeArguments.kt"); - } - - @TestMetadata("function.kt") - public void testFunction() throws Exception { - runTest("../../../idea/tests/testData/quickfix/specifySuperType/function.kt"); - } - - @TestMetadata("property.kt") - public void testProperty() throws Exception { - runTest("../../../idea/tests/testData/quickfix/specifySuperType/property.kt"); - } - - @TestMetadata("superExpressionHasLabel.kt") - public void testSuperExpressionHasLabel() throws Exception { - runTest("../../../idea/tests/testData/quickfix/specifySuperType/superExpressionHasLabel.kt"); - } - - @TestMetadata("superTypeHasAnnotations.kt") - public void testSuperTypeHasAnnotations() throws Exception { - runTest("../../../idea/tests/testData/quickfix/specifySuperType/superTypeHasAnnotations.kt"); - } - - @TestMetadata("superTypeHasTypeArguments.kt") - public void testSuperTypeHasTypeArguments() throws Exception { - runTest("../../../idea/tests/testData/quickfix/specifySuperType/superTypeHasTypeArguments.kt"); - } - - @TestMetadata("superTypeIsExtendedByOtherSuperType.kt") - public void testSuperTypeIsExtendedByOtherSuperType() throws Exception { - runTest("../../../idea/tests/testData/quickfix/specifySuperType/superTypeIsExtendedByOtherSuperType.kt"); - } - - @TestMetadata("typeMismatch.kt") - public void testTypeMismatch() throws Exception { - runTest("../../../idea/tests/testData/quickfix/specifySuperType/typeMismatch.kt"); - } - } - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/convertToBlockBody") - public static class ConvertToBlockBody extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("simple.kt") - public void testSimple() throws Exception { - runTest("../../../idea/tests/testData/quickfix/convertToBlockBody/simple.kt"); - } - } - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/supertypeInitialization") - public static class SupertypeInitialization extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("addImport.kt") - public void testAddImport() throws Exception { - runTest("../../../idea/tests/testData/quickfix/supertypeInitialization/addImport.kt"); - } - - @TestMetadata("addParameters.kt") - public void testAddParameters() throws Exception { - runTest("../../../idea/tests/testData/quickfix/supertypeInitialization/addParameters.kt"); - } - - @TestMetadata("addParenthesis.kt") - public void testAddParenthesis() throws Exception { - runTest("../../../idea/tests/testData/quickfix/supertypeInitialization/addParenthesis.kt"); - } - - @TestMetadata("addParenthesisDefaultParameters.kt") - public void testAddParenthesisDefaultParameters() throws Exception { - runTest("../../../idea/tests/testData/quickfix/supertypeInitialization/addParenthesisDefaultParameters.kt"); - } - - @TestMetadata("addParenthesisEmptyConstructor.kt") - public void testAddParenthesisEmptyConstructor() throws Exception { - runTest("../../../idea/tests/testData/quickfix/supertypeInitialization/addParenthesisEmptyConstructor.kt"); - } - - @TestMetadata("addParenthesisExpectClass.kt") - public void testAddParenthesisExpectClass() throws Exception { - runTest("../../../idea/tests/testData/quickfix/supertypeInitialization/addParenthesisExpectClass.kt"); - } - - @TestMetadata("addParenthesisForInvalidSealedClass.kt") - public void testAddParenthesisForInvalidSealedClass() throws Exception { - runTest("../../../idea/tests/testData/quickfix/supertypeInitialization/addParenthesisForInvalidSealedClass.kt"); - } - - @TestMetadata("addParenthesisForLocalClass.kt") - public void testAddParenthesisForLocalClass() throws Exception { - runTest("../../../idea/tests/testData/quickfix/supertypeInitialization/addParenthesisForLocalClass.kt"); - } - - @TestMetadata("addParenthesisForObjectExpression.kt") - public void testAddParenthesisForObjectExpression() throws Exception { - runTest("../../../idea/tests/testData/quickfix/supertypeInitialization/addParenthesisForObjectExpression.kt"); - } - - @TestMetadata("addParenthesisForSealedClass.kt") - public void testAddParenthesisForSealedClass() throws Exception { - runTest("../../../idea/tests/testData/quickfix/supertypeInitialization/addParenthesisForSealedClass.kt"); - } - - @TestMetadata("addParenthesisForSealedClass2.kt") - public void testAddParenthesisForSealedClass2() throws Exception { - runTest("../../../idea/tests/testData/quickfix/supertypeInitialization/addParenthesisForSealedClass2.kt"); - } - - @TestMetadata("annotation.kt") - public void testAnnotation() throws Exception { - runTest("../../../idea/tests/testData/quickfix/supertypeInitialization/annotation.kt"); - } - - @TestMetadata("baseConstructorError.kt") - public void testBaseConstructorError() throws Exception { - runTest("../../../idea/tests/testData/quickfix/supertypeInitialization/baseConstructorError.kt"); - } - - @TestMetadata("createConstructor.kt") - public void testCreateConstructor() throws Exception { - runTest("../../../idea/tests/testData/quickfix/supertypeInitialization/createConstructor.kt"); - } - - @TestMetadata("data.kt") - public void testData() throws Exception { - runTest("../../../idea/tests/testData/quickfix/supertypeInitialization/data.kt"); - } - - @TestMetadata("displayLongSignatures1.kt") - public void testDisplayLongSignatures1() throws Exception { - runTest("../../../idea/tests/testData/quickfix/supertypeInitialization/displayLongSignatures1.kt"); - } - - @TestMetadata("displayLongSignatures2.kt") - public void testDisplayLongSignatures2() throws Exception { - runTest("../../../idea/tests/testData/quickfix/supertypeInitialization/displayLongSignatures2.kt"); - } - - @TestMetadata("enum.kt") - public void testEnum() throws Exception { - runTest("../../../idea/tests/testData/quickfix/supertypeInitialization/enum.kt"); - } - - @TestMetadata("genericClass.kt") - public void testGenericClass() throws Exception { - runTest("../../../idea/tests/testData/quickfix/supertypeInitialization/genericClass.kt"); - } - - @TestMetadata("incompleteConstructor.kt") - public void testIncompleteConstructor() throws Exception { - runTest("../../../idea/tests/testData/quickfix/supertypeInitialization/incompleteConstructor.kt"); - } - - @TestMetadata("inline.kt") - public void testInline() throws Exception { - runTest("../../../idea/tests/testData/quickfix/supertypeInitialization/inline.kt"); - } - - @TestMetadata("keywordName.kt") - public void testKeywordName() throws Exception { - runTest("../../../idea/tests/testData/quickfix/supertypeInitialization/keywordName.kt"); - } - - @TestMetadata("multipleConstructors.kt") - public void testMultipleConstructors() throws Exception { - runTest("../../../idea/tests/testData/quickfix/supertypeInitialization/multipleConstructors.kt"); - } - - @TestMetadata("noAccessibleConstructors.kt") - public void testNoAccessibleConstructors() throws Exception { - runTest("../../../idea/tests/testData/quickfix/supertypeInitialization/noAccessibleConstructors.kt"); - } - - @TestMetadata("noParameters.kt") - public void testNoParameters() throws Exception { - runTest("../../../idea/tests/testData/quickfix/supertypeInitialization/noParameters.kt"); - } - - @TestMetadata("primaryConstructorInaccessible.kt") - public void testPrimaryConstructorInaccessible() throws Exception { - runTest("../../../idea/tests/testData/quickfix/supertypeInitialization/primaryConstructorInaccessible.kt"); - } - - @TestMetadata("someParametersAlreadyExist.kt") - public void testSomeParametersAlreadyExist() throws Exception { - runTest("../../../idea/tests/testData/quickfix/supertypeInitialization/someParametersAlreadyExist.kt"); - } - - @TestMetadata("someParametersAlreadyExistNoTypeConflicts.kt") - public void testSomeParametersAlreadyExistNoTypeConflicts() throws Exception { - runTest("../../../idea/tests/testData/quickfix/supertypeInitialization/someParametersAlreadyExistNoTypeConflicts.kt"); - } - - @TestMetadata("value.kt") - public void testValue() throws Exception { - runTest("../../../idea/tests/testData/quickfix/supertypeInitialization/value.kt"); - } - - @TestMetadata("vararg1.kt") - public void testVararg1() throws Exception { - runTest("../../../idea/tests/testData/quickfix/supertypeInitialization/vararg1.kt"); - } - - @TestMetadata("vararg2.kt") - public void testVararg2() throws Exception { - runTest("../../../idea/tests/testData/quickfix/supertypeInitialization/vararg2.kt"); - } - - @TestMetadata("vararg3.kt") - public void testVararg3() throws Exception { - runTest("../../../idea/tests/testData/quickfix/supertypeInitialization/vararg3.kt"); - } - - @TestMetadata("vararg4.kt") - public void testVararg4() throws Exception { - runTest("../../../idea/tests/testData/quickfix/supertypeInitialization/vararg4.kt"); - } - - @TestMetadata("vararg5.kt") - public void testVararg5() throws Exception { - runTest("../../../idea/tests/testData/quickfix/supertypeInitialization/vararg5.kt"); - } - } - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/dataClassConstructorVsCopyVisibility") - public static class DataClassConstructorVsCopyVisibility extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("AddConsistentCopyVisibilityAnnotation.kt") - public void testAddConsistentCopyVisibilityAnnotation() throws Exception { - runTest("../../../idea/tests/testData/quickfix/dataClassConstructorVsCopyVisibility/AddConsistentCopyVisibilityAnnotation.kt"); - } - - @TestMetadata("DataClassConsistentCopyAndExposedCopyAreIncompatibleAnnotations.kt") - public void testDataClassConsistentCopyAndExposedCopyAreIncompatibleAnnotations() throws Exception { - runTest("../../../idea/tests/testData/quickfix/dataClassConstructorVsCopyVisibility/DataClassConsistentCopyAndExposedCopyAreIncompatibleAnnotations.kt"); - } - - @TestMetadata("DataClassConsistentCopyWrongAnnotationTarget.kt") - public void testDataClassConsistentCopyWrongAnnotationTarget() throws Exception { - runTest("../../../idea/tests/testData/quickfix/dataClassConstructorVsCopyVisibility/DataClassConsistentCopyWrongAnnotationTarget.kt"); - } - - @TestMetadata("RemoveRedundantConsistentCopyVisibilityAnnotation.kt") - public void testRemoveRedundantConsistentCopyVisibilityAnnotation() throws Exception { - runTest("../../../idea/tests/testData/quickfix/dataClassConstructorVsCopyVisibility/RemoveRedundantConsistentCopyVisibilityAnnotation.kt"); - } - } - - - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/addAnnotationUseSiteTarget") - public static class AddAnnotationUseSiteTarget extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("allTargetVal.kt") - public void testAllTargetVal() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addAnnotationUseSiteTarget/allTargetVal.kt"); - } - - @TestMetadata("allTargetVar.kt") - public void testAllTargetVar() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addAnnotationUseSiteTarget/allTargetVar.kt"); - } - - @TestMetadata("delegate.kt") - public void testDelegate() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addAnnotationUseSiteTarget/delegate.kt"); - } - - @TestMetadata("get.kt") - public void testGet() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addAnnotationUseSiteTarget/get.kt"); - } - - @TestMetadata("notApplicable.kt") - public void testNotApplicable() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addAnnotationUseSiteTarget/notApplicable.kt"); - } - } - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/addAnnotationUseSiteTargetForConstructorParameter") - public static class AddAnnotationUseSiteTargetForConstructorParameter extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("allTargetInapplicableNoProperty.kt") - public void testAllTargetInapplicableNoProperty() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addAnnotationUseSiteTargetForConstructorParameter/allTargetInapplicableNoProperty.kt"); - } - - @TestMetadata("allTargetVal.kt") - public void testAllTargetVal() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addAnnotationUseSiteTargetForConstructorParameter/allTargetVal.kt"); - } - - @TestMetadata("allTargetVar.kt") - public void testAllTargetVar() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addAnnotationUseSiteTargetForConstructorParameter/allTargetVar.kt"); - } - - @TestMetadata("constructorParameterAndFieldChange.kt") - public void testConstructorParameterAndFieldChange() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addAnnotationUseSiteTargetForConstructorParameter/constructorParameterAndFieldChange.kt"); - } - - @TestMetadata("constructorParameterAndFieldKeep.kt") - public void testConstructorParameterAndFieldKeep() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addAnnotationUseSiteTargetForConstructorParameter/constructorParameterAndFieldKeep.kt"); - } - - @TestMetadata("constructorParameterAndPropertyChange.kt") - public void testConstructorParameterAndPropertyChange() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addAnnotationUseSiteTargetForConstructorParameter/constructorParameterAndPropertyChange.kt"); - } - - @TestMetadata("constructorParameterAndPropertyKeep.kt") - public void testConstructorParameterAndPropertyKeep() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addAnnotationUseSiteTargetForConstructorParameter/constructorParameterAndPropertyKeep.kt"); - } - - @TestMetadata("inapplicableNoProperty.kt") - public void testInapplicableNoProperty() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addAnnotationUseSiteTargetForConstructorParameter/inapplicableNoProperty.kt"); - } - - @TestMetadata("threeTargetsChangeToField.kt") - public void testThreeTargetsChangeToField() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addAnnotationUseSiteTargetForConstructorParameter/threeTargetsChangeToField.kt"); - } - - @TestMetadata("threeTargetsChangeToProperty.kt") - public void testThreeTargetsChangeToProperty() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addAnnotationUseSiteTargetForConstructorParameter/threeTargetsChangeToProperty.kt"); - } - - @TestMetadata("threeTargetsKeep.kt") - public void testThreeTargetsKeep() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addAnnotationUseSiteTargetForConstructorParameter/threeTargetsKeep.kt"); - } - } - - - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/addConstructorParameterFromSuperTypeCall") - public static class AddConstructorParameterFromSuperTypeCall extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("backticks.kt") - public void testBackticks() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addConstructorParameterFromSuperTypeCall/backticks.kt"); - } - - @TestMetadata("basic.kt") - public void testBasic() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addConstructorParameterFromSuperTypeCall/basic.kt"); - } - - @TestMetadata("basic2.kt") - public void testBasic2() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addConstructorParameterFromSuperTypeCall/basic2.kt"); - } - - @TestMetadata("basic3.kt") - public void testBasic3() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addConstructorParameterFromSuperTypeCall/basic3.kt"); - } - - @TestMetadata("basic4.kt") - public void testBasic4() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addConstructorParameterFromSuperTypeCall/basic4.kt"); - } - - @TestMetadata("enumEntry.kt") - public void testEnumEntry() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addConstructorParameterFromSuperTypeCall/enumEntry.kt"); - } - - @TestMetadata("fewerArguments.kt") - public void testFewerArguments() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addConstructorParameterFromSuperTypeCall/fewerArguments.kt"); - } - - @TestMetadata("generics.kt") - public void testGenerics() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addConstructorParameterFromSuperTypeCall/generics.kt"); - } - - @TestMetadata("hasDifferentNameParameter.kt") - public void testHasDifferentNameParameter() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addConstructorParameterFromSuperTypeCall/hasDifferentNameParameter.kt"); - } - - @TestMetadata("hasSameNameParameter.kt") - public void testHasSameNameParameter() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addConstructorParameterFromSuperTypeCall/hasSameNameParameter.kt"); - } - - @TestMetadata("typeParameter.kt") - public void testTypeParameter() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addConstructorParameterFromSuperTypeCall/typeParameter.kt"); - } - } - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/addConversionCall") - public static class AddConversionCall extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("toByte.kt") - public void testToByte() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addConversionCall/toByte.kt"); - } - - @TestMetadata("toByteExtraParenthesis.kt") - public void testToByteExtraParenthesis() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addConversionCall/toByteExtraParenthesis.kt"); - } - - @TestMetadata("toShort.kt") - public void testToShort() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addConversionCall/toShort.kt"); - } - } - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/addCrossinline") - public static class AddCrossinline extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("basic.kt") - public void testBasic() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addCrossinline/basic.kt"); - } - - @TestMetadata("suspend.kt") - public void testSuspend() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addCrossinline/suspend.kt"); - } - } - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/addDataModifier") - public static class AddDataModifier extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("abstract.kt") - public void testAbstract() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addDataModifier/abstract.kt"); - } - - @TestMetadata("inner.kt") - public void testInner() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addDataModifier/inner.kt"); - } - - @TestMetadata("invisibleParameter.kt") - public void testInvisibleParameter() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addDataModifier/invisibleParameter.kt"); - } - - @TestMetadata("invisibleParameter2.kt") - public void testInvisibleParameter2() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addDataModifier/invisibleParameter2.kt"); - } - - @TestMetadata("noParameter.kt") - public void testNoParameter() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addDataModifier/noParameter.kt"); - } - - @TestMetadata("notVarVal.kt") - public void testNotVarVal() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addDataModifier/notVarVal.kt"); - } - - @TestMetadata("open.kt") - public void testOpen() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addDataModifier/open.kt"); - } - - @TestMetadata("sealed.kt") - public void testSealed() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addDataModifier/sealed.kt"); - } - - @TestMetadata("test1.kt") - public void testTest1() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addDataModifier/test1.kt"); - } - - @TestMetadata("test2.kt") - public void testTest2() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addDataModifier/test2.kt"); - } - - @TestMetadata("test3.kt") - public void testTest3() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addDataModifier/test3.kt"); - } - - @TestMetadata("test4.kt") - public void testTest4() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addDataModifier/test4.kt"); - } - - @TestMetadata("test5.kt") - public void testTest5() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addDataModifier/test5.kt"); - } - - @TestMetadata("test6.kt") - public void testTest6() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addDataModifier/test6.kt"); - } - - @TestMetadata("test7.kt") - public void testTest7() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addDataModifier/test7.kt"); - } - - @TestMetadata("vararg.kt") - public void testVararg() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addDataModifier/vararg.kt"); - } - } - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/addDefaultConstructor") - public static class AddDefaultConstructor extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("expect.kt") - public void testExpect() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addDefaultConstructor/expect.kt"); - } - - @TestMetadata("expectAnnotation.kt") - public void testExpectAnnotation() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addDefaultConstructor/expectAnnotation.kt"); - } - - @TestMetadata("expectAnnotation2.kt") - public void testExpectAnnotation2() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addDefaultConstructor/expectAnnotation2.kt"); - } - - @TestMetadata("expectAnnotation3.kt") - public void testExpectAnnotation3() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addDefaultConstructor/expectAnnotation3.kt"); - } - - @TestMetadata("expectAnnotationWithUnresolvedParams.kt") - public void testExpectAnnotationWithUnresolvedParams() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addDefaultConstructor/expectAnnotationWithUnresolvedParams.kt"); - } - - @TestMetadata("expectInterface.kt") - public void testExpectInterface() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addDefaultConstructor/expectInterface.kt"); - } - - @TestMetadata("expectWithUnresolvedParams.kt") - public void testExpectWithUnresolvedParams() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addDefaultConstructor/expectWithUnresolvedParams.kt"); - } - - @TestMetadata("interface.kt") - public void testInterface() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addDefaultConstructor/interface.kt"); - } - } - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/addElseBranchToIf") - public static class AddElseBranchToIf extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("error.kt") - public void testError() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addElseBranchToIf/error.kt"); - } - - @TestMetadata("errorWithBlock.kt") - public void testErrorWithBlock() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addElseBranchToIf/errorWithBlock.kt"); - } - - @TestMetadata("inElvis.kt") - public void testInElvis() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addElseBranchToIf/inElvis.kt"); - } - - @TestMetadata("inElvisBlock.kt") - public void testInElvisBlock() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addElseBranchToIf/inElvisBlock.kt"); - } - - @TestMetadata("inElvisWithoutThen.kt") - public void testInElvisWithoutThen() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addElseBranchToIf/inElvisWithoutThen.kt"); - } - - @TestMetadata("withoutCloseParenthesisInCondition.kt") - public void testWithoutCloseParenthesisInCondition() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addElseBranchToIf/withoutCloseParenthesisInCondition.kt"); - } - - @TestMetadata("withoutCondition.kt") - public void testWithoutCondition() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addElseBranchToIf/withoutCondition.kt"); - } - } - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/addEmptyArgumentList") - public static class AddEmptyArgumentList extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("suspend.kt") - public void testSuspend() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addEmptyArgumentList/suspend.kt"); - } - } - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/addEqEqTrue") - public static class AddEqEqTrue extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("argument.kt") - public void testArgument() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addEqEqTrue/argument.kt"); - } - - @TestMetadata("assignment.kt") - public void testAssignment() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addEqEqTrue/assignment.kt"); - } - - @TestMetadata("condition.kt") - public void testCondition() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addEqEqTrue/condition.kt"); - } - - @TestMetadata("initializer.kt") - public void testInitializer() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addEqEqTrue/initializer.kt"); - } - - @TestMetadata("notBoolean.kt") - public void testNotBoolean() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addEqEqTrue/notBoolean.kt"); - } - - @TestMetadata("notBoolean2.kt") - public void testNotBoolean2() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addEqEqTrue/notBoolean2.kt"); - } - - @TestMetadata("return.kt") - public void testReturn() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addEqEqTrue/return.kt"); - } - } - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/addFunModifier") - public static class AddFunModifier extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("asFirstArgument.kt") - public void testAsFirstArgument() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addFunModifier/asFirstArgument.kt"); - } - - @TestMetadata("asLastArgument.kt") - public void testAsLastArgument() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addFunModifier/asLastArgument.kt"); - } - - @TestMetadata("hasArguments.kt") - public void testHasArguments() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addFunModifier/hasArguments.kt"); - } - - @TestMetadata("hasNoArguments.kt") - public void testHasNoArguments() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addFunModifier/hasNoArguments.kt"); - } - - @TestMetadata("multipleLambdaArgumentsAreNotMovedOutsideParentheses.kt") - public void testMultipleLambdaArgumentsAreNotMovedOutsideParentheses() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addFunModifier/multipleLambdaArgumentsAreNotMovedOutsideParentheses.kt"); - } - - @TestMetadata("namedLambdaArgumentIsNotMovedOutsideParentheses.kt") - public void testNamedLambdaArgumentIsNotMovedOutsideParentheses() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addFunModifier/namedLambdaArgumentIsNotMovedOutsideParentheses.kt"); - } - - @TestMetadata("nonSource.kt") - public void testNonSource() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addFunModifier/nonSource.kt"); - } - - @TestMetadata("notSam.kt") - public void testNotSam() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addFunModifier/notSam.kt"); - } - - @TestMetadata("notSam2.kt") - public void testNotSam2() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addFunModifier/notSam2.kt"); - } - - @TestMetadata("notSam3.kt") - public void testNotSam3() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addFunModifier/notSam3.kt"); - } - - @TestMetadata("simple.kt") - public void testSimple() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addFunModifier/simple.kt"); - } - } - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/addGenericUpperBound") - public static class AddGenericUpperBound extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("basic.kt") - public void testBasic() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addGenericUpperBound/basic.kt"); - } - - @TestMetadata("boundAlreadyExists.kt") - public void testBoundAlreadyExists() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addGenericUpperBound/boundAlreadyExists.kt"); - } - - @TestMetadata("inferenceTwoParams.kt") - public void testInferenceTwoParams() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addGenericUpperBound/inferenceTwoParams.kt"); - } - - @TestMetadata("paramAsBound.kt") - public void testParamAsBound() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addGenericUpperBound/paramAsBound.kt"); - } - - @TestMetadata("withinDeclaration.kt") - public void testWithinDeclaration() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addGenericUpperBound/withinDeclaration.kt"); - } - } - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/addInline") - public static class AddInline extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("basic.kt") - public void testBasic() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addInline/basic.kt"); - } - - @TestMetadata("local.kt") - public void testLocal() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addInline/local.kt"); - } - } - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/addInlineToReifiedFunctionFix") - public static class AddInlineToReifiedFunctionFix extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("basic.kt") - public void testBasic() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addInlineToReifiedFunctionFix/basic.kt"); - } - } - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/addIsToWhenCondition") - public static class AddIsToWhenCondition extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("class.kt") - public void testClass() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addIsToWhenCondition/class.kt"); - } - } - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/addJvmInline") - public static class AddJvmInline extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("genericParameter.kt") - public void testGenericParameter() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addJvmInline/genericParameter.kt"); - } - - @TestMetadata("valueClass.kt") - public void testValueClass() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addJvmInline/valueClass.kt"); - } - } - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/addJvmStaticAnnotation") - public static class AddJvmStaticAnnotation extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("function.kt") - public void testFunction() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addJvmStaticAnnotation/function.kt"); - } - - @TestMetadata("property.kt") - public void testProperty() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addJvmStaticAnnotation/property.kt"); - } - } - - - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/addNoinline") - public static class AddNoinline extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("basic.kt") - public void testBasic() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addNoinline/basic.kt"); - } - - @TestMetadata("extensionCalls.kt") - public void testExtensionCalls() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addNoinline/extensionCalls.kt"); - } - - @TestMetadata("suspend.kt") - public void testSuspend() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addNoinline/suspend.kt"); - } - - @TestMetadata("withCrossinline.kt") - public void testWithCrossinline() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addNoinline/withCrossinline.kt"); - } - } - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/addReifiedToTypeParameterOfFunctionFix") - public static class AddReifiedToTypeParameterOfFunctionFix extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("doubleColonClass.kt") - public void testDoubleColonClass() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addReifiedToTypeParameterOfFunctionFix/doubleColonClass.kt"); - } - - @TestMetadata("secondTypeParameter.kt") - public void testSecondTypeParameter() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addReifiedToTypeParameterOfFunctionFix/secondTypeParameter.kt"); - } - - @TestMetadata("toTypedArray.kt") - public void testToTypedArray() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addReifiedToTypeParameterOfFunctionFix/toTypedArray.kt"); - } - } - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/addReturnExpression") - public static class AddReturnExpression extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("emptyBody.kt") - public void testEmptyBody() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addReturnExpression/emptyBody.kt"); - } - - @TestMetadata("noRightBrace.kt") - public void testNoRightBrace() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addReturnExpression/noRightBrace.kt"); - } - - @TestMetadata("simple.kt") - public void testSimple() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addReturnExpression/simple.kt"); - } - } - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/addReturnToLastExpressionInFunction") - public static class AddReturnToLastExpressionInFunction extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("notSubtype.kt") - public void testNotSubtype() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addReturnToLastExpressionInFunction/notSubtype.kt"); - } - - @TestMetadata("nothing.kt") - public void testNothing() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addReturnToLastExpressionInFunction/nothing.kt"); - } - - @TestMetadata("simpleBoolean.kt") - public void testSimpleBoolean() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addReturnToLastExpressionInFunction/simpleBoolean.kt"); - } - - @TestMetadata("subtype.kt") - public void testSubtype() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addReturnToLastExpressionInFunction/subtype.kt"); - } - - @TestMetadata("typeError.kt") - public void testTypeError() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addReturnToLastExpressionInFunction/typeError.kt"); - } - - @TestMetadata("typeError2.kt") - public void testTypeError2() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addReturnToLastExpressionInFunction/typeError2.kt"); - } - } - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/addReturnToUnusedLastExpressionInFunction") - public static class AddReturnToUnusedLastExpressionInFunction extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("notSubtype.kt") - public void testNotSubtype() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addReturnToUnusedLastExpressionInFunction/notSubtype.kt"); - } - - @TestMetadata("nothing.kt") - public void testNothing() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addReturnToUnusedLastExpressionInFunction/nothing.kt"); - } - - @TestMetadata("simpleBoolean.kt") - public void testSimpleBoolean() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addReturnToUnusedLastExpressionInFunction/simpleBoolean.kt"); - } - - @TestMetadata("subtype.kt") - public void testSubtype() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addReturnToUnusedLastExpressionInFunction/subtype.kt"); - } - - @TestMetadata("typeError.kt") - public void testTypeError() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addReturnToUnusedLastExpressionInFunction/typeError.kt"); - } - - @TestMetadata("typeError2.kt") - public void testTypeError2() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addReturnToUnusedLastExpressionInFunction/typeError2.kt"); - } - } - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/addRunBeforeLambda") - public static class AddRunBeforeLambda extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("basic.kt") - public void testBasic() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addRunBeforeLambda/basic.kt"); - } - } - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/addSemicolonBeforeLambdaExpression") - public static class AddSemicolonBeforeLambdaExpression extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("basic.kt") - public void testBasic() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addSemicolonBeforeLambdaExpression/basic.kt"); - } - - @TestMetadata("chainedDotsEnd.kt") - public void testChainedDotsEnd() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addSemicolonBeforeLambdaExpression/chainedDotsEnd.kt"); - } - - @TestMetadata("chainedDotsStart.kt") - public void testChainedDotsStart() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addSemicolonBeforeLambdaExpression/chainedDotsStart.kt"); - } - - @TestMetadata("chainedDotsStartEnd.kt") - public void testChainedDotsStartEnd() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addSemicolonBeforeLambdaExpression/chainedDotsStartEnd.kt"); - } - - @TestMetadata("complex.kt") - public void testComplex() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addSemicolonBeforeLambdaExpression/complex.kt"); - } - - @TestMetadata("dotExpressionAndCallExpression.kt") - public void testDotExpressionAndCallExpression() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addSemicolonBeforeLambdaExpression/dotExpressionAndCallExpression.kt"); - } - - @TestMetadata("multipleCallsEnd.kt") - public void testMultipleCallsEnd() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addSemicolonBeforeLambdaExpression/multipleCallsEnd.kt"); - } - - @TestMetadata("multipleCallsStart.kt") - public void testMultipleCallsStart() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addSemicolonBeforeLambdaExpression/multipleCallsStart.kt"); - } - - @TestMetadata("multipleCallsStartEnd.kt") - public void testMultipleCallsStartEnd() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addSemicolonBeforeLambdaExpression/multipleCallsStartEnd.kt"); - } - - @TestMetadata("multipleLambdas.kt") - public void testMultipleLambdas() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addSemicolonBeforeLambdaExpression/multipleLambdas.kt"); - } - - @TestMetadata("onlyDotBefore.kt") - public void testOnlyDotBefore() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addSemicolonBeforeLambdaExpression/onlyDotBefore.kt"); - } - - @TestMetadata("twoLambdasTwoInvokes.kt") - public void testTwoLambdasTwoInvokes() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addSemicolonBeforeLambdaExpression/twoLambdasTwoInvokes.kt"); - } - - @TestMetadata("withComments.kt") - public void testWithComments() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addSemicolonBeforeLambdaExpression/withComments.kt"); - } - } - - - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/addStarProjections") - public abstract static class AddStarProjections extends AbstractHighLevelQuickFixTest { - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/addStarProjections/cast") - public static class Cast extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("changeFunctionalToStarProjection.kt") - public void testChangeFunctionalToStarProjection() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addStarProjections/cast/changeFunctionalToStarProjection.kt"); - } - - @TestMetadata("changeToStarProjection.kt") - public void testChangeToStarProjection() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addStarProjections/cast/changeToStarProjection.kt"); - } - - @TestMetadata("changeToStarProjectionNullable.kt") - public void testChangeToStarProjectionNullable() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addStarProjections/cast/changeToStarProjectionNullable.kt"); - } - - @TestMetadata("extensionReceiver.kt") - public void testExtensionReceiver() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addStarProjections/cast/extensionReceiver.kt"); - } - - @TestMetadata("extensionReceiver2.kt") - public void testExtensionReceiver2() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addStarProjections/cast/extensionReceiver2.kt"); - } - - @TestMetadata("extensionReceiver3.kt") - public void testExtensionReceiver3() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addStarProjections/cast/extensionReceiver3.kt"); - } - - @TestMetadata("extensionReceiver4.kt") - public void testExtensionReceiver4() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addStarProjections/cast/extensionReceiver4.kt"); - } - - @TestMetadata("extensionReceiver5.kt") - public void testExtensionReceiver5() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addStarProjections/cast/extensionReceiver5.kt"); - } - - @TestMetadata("genericTypeParameter.kt") - public void testGenericTypeParameter() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addStarProjections/cast/genericTypeParameter.kt"); - } - - @TestMetadata("genericTypeParameter2.kt") - public void testGenericTypeParameter2() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addStarProjections/cast/genericTypeParameter2.kt"); - } - - @TestMetadata("genericTypeParameter3.kt") - public void testGenericTypeParameter3() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addStarProjections/cast/genericTypeParameter3.kt"); - } - - @TestMetadata("genericTypeParameter4.kt") - public void testGenericTypeParameter4() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addStarProjections/cast/genericTypeParameter4.kt"); - } - - @TestMetadata("genericTypeParameter5.kt") - public void testGenericTypeParameter5() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addStarProjections/cast/genericTypeParameter5.kt"); - } - - @TestMetadata("genericTypeParameter6.kt") - public void testGenericTypeParameter6() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addStarProjections/cast/genericTypeParameter6.kt"); - } - - @TestMetadata("genericTypeParameter7.kt") - public void testGenericTypeParameter7() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addStarProjections/cast/genericTypeParameter7.kt"); - } - - @TestMetadata("uncheckedCastOnTypeParameter.kt") - public void testUncheckedCastOnTypeParameter() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addStarProjections/cast/uncheckedCastOnTypeParameter.kt"); - } - - @TestMetadata("valueArgument.kt") - public void testValueArgument() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addStarProjections/cast/valueArgument.kt"); - } - - @TestMetadata("valueArgument2.kt") - public void testValueArgument2() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addStarProjections/cast/valueArgument2.kt"); - } - - @TestMetadata("valueArgument3.kt") - public void testValueArgument3() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addStarProjections/cast/valueArgument3.kt"); - } - - @TestMetadata("valueArgument4.kt") - public void testValueArgument4() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addStarProjections/cast/valueArgument4.kt"); - } - - @TestMetadata("valueArgument5.kt") - public void testValueArgument5() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addStarProjections/cast/valueArgument5.kt"); - } - - @TestMetadata("valueArgument6.kt") - public void testValueArgument6() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addStarProjections/cast/valueArgument6.kt"); - } - } - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/addStarProjections/checkType") - public static class CheckType extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("array.kt") - public void testArray() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addStarProjections/checkType/array.kt"); - } - - @TestMetadata("arrayInWhen.kt") - public void testArrayInWhen() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addStarProjections/checkType/arrayInWhen.kt"); - } - - @TestMetadata("changeToStarProjectionMultipleParameters.kt") - public void testChangeToStarProjectionMultipleParameters() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addStarProjections/checkType/changeToStarProjectionMultipleParameters.kt"); - } - - @TestMetadata("changeToStarProjectionNullable.kt") - public void testChangeToStarProjectionNullable() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addStarProjections/checkType/changeToStarProjectionNullable.kt"); - } - - @TestMetadata("changeToStarProjectionSingleParameter.kt") - public void testChangeToStarProjectionSingleParameter() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addStarProjections/checkType/changeToStarProjectionSingleParameter.kt"); - } - } - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/addStarProjections/inner") - public static class Inner extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("inner1.kt") - public void testInner1() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addStarProjections/inner/inner1.kt"); - } - - @TestMetadata("inner2.kt") - public void testInner2() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addStarProjections/inner/inner2.kt"); - } - - @TestMetadata("inner3.kt") - public void testInner3() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addStarProjections/inner/inner3.kt"); - } - - @TestMetadata("inner4.kt") - public void testInner4() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addStarProjections/inner/inner4.kt"); - } - - @TestMetadata("inner5.kt") - public void testInner5() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addStarProjections/inner/inner5.kt"); - } - - @TestMetadata("inner6.kt") - public void testInner6() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addStarProjections/inner/inner6.kt"); - } - - @TestMetadata("inner7.kt") - public void testInner7() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addStarProjections/inner/inner7.kt"); - } - - @TestMetadata("inner8.kt") - public void testInner8() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addStarProjections/inner/inner8.kt"); - } - } - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/addStarProjections") - public static class Uncategorized extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("qualifiedArrayList.kt") - public void testQualifiedArrayList() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addStarProjections/qualifiedArrayList.kt"); - } - - @TestMetadata("qualifiedList.kt") - public void testQualifiedList() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addStarProjections/qualifiedList.kt"); - } - - @TestMetadata("qualifiedMap.kt") - public void testQualifiedMap() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addStarProjections/qualifiedMap.kt"); - } - - @TestMetadata("unqualifiedList.kt") - public void testUnqualifiedList() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addStarProjections/unqualifiedList.kt"); - } - - @TestMetadata("unqualifiedMap.kt") - public void testUnqualifiedMap() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addStarProjections/unqualifiedMap.kt"); - } - - @TestMetadata("unqualifiedMapOneArg.kt") - public void testUnqualifiedMapOneArg() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addStarProjections/unqualifiedMapOneArg.kt"); - } - } - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/addStarProjections/when") - public static class When extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("qualifiedArrayList.kt") - public void testQualifiedArrayList() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addStarProjections/when/qualifiedArrayList.kt"); - } - - @TestMetadata("qualifiedList.kt") - public void testQualifiedList() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addStarProjections/when/qualifiedList.kt"); - } - - @TestMetadata("qualifiedMap.kt") - public void testQualifiedMap() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addStarProjections/when/qualifiedMap.kt"); - } - - @TestMetadata("unqualifiedList.kt") - public void testUnqualifiedList() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addStarProjections/when/unqualifiedList.kt"); - } - - @TestMetadata("unqualifiedMap.kt") - public void testUnqualifiedMap() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addStarProjections/when/unqualifiedMap.kt"); - } - - @TestMetadata("unqualifiedMapOneArg.kt") - public void testUnqualifiedMapOneArg() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addStarProjections/when/unqualifiedMapOneArg.kt"); - } - } - } - - - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/addTypeAnnotationToValueParameter") - public static class AddTypeAnnotationToValueParameter extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("annotationWithArrayLiteralDouble.kt") - public void testAnnotationWithArrayLiteralDouble() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addTypeAnnotationToValueParameter/annotationWithArrayLiteralDouble.kt"); - } - - @TestMetadata("annotationWithArrayLiteralInt.kt") - public void testAnnotationWithArrayLiteralInt() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addTypeAnnotationToValueParameter/annotationWithArrayLiteralInt.kt"); - } - - @TestMetadata("annotationWithArrayLiteralString.kt") - public void testAnnotationWithArrayLiteralString() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addTypeAnnotationToValueParameter/annotationWithArrayLiteralString.kt"); - } - - @TestMetadata("annotationWithVarargArrayLiteralDouble.kt") - public void testAnnotationWithVarargArrayLiteralDouble() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addTypeAnnotationToValueParameter/annotationWithVarargArrayLiteralDouble.kt"); - } - - @TestMetadata("annotationWithVarargArrayLiteralInt.kt") - public void testAnnotationWithVarargArrayLiteralInt() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addTypeAnnotationToValueParameter/annotationWithVarargArrayLiteralInt.kt"); - } - - @TestMetadata("annotationWithVarargArrayLiteralString.kt") - public void testAnnotationWithVarargArrayLiteralString() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addTypeAnnotationToValueParameter/annotationWithVarargArrayLiteralString.kt"); - } - - @TestMetadata("annotationWithVarargDoubleArray.kt") - public void testAnnotationWithVarargDoubleArray() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addTypeAnnotationToValueParameter/annotationWithVarargDoubleArray.kt"); - } - - @TestMetadata("annotationWithVarargIntArray.kt") - public void testAnnotationWithVarargIntArray() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addTypeAnnotationToValueParameter/annotationWithVarargIntArray.kt"); - } - - @TestMetadata("noDefaultValue.kt") - public void testNoDefaultValue() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addTypeAnnotationToValueParameter/noDefaultValue.kt"); - } - - @TestMetadata("simple.kt") - public void testSimple() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addTypeAnnotationToValueParameter/simple.kt"); - } - } - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/addUnsafeVarianceAnnotation") - public static class AddUnsafeVarianceAnnotation extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("parameterType.kt") - public void testParameterType() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addUnsafeVarianceAnnotation/parameterType.kt"); - } - - @TestMetadata("returnType.kt") - public void testReturnType() throws Exception { - runTest("../../../idea/tests/testData/quickfix/addUnsafeVarianceAnnotation/returnType.kt"); - } - } - - - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/assignToProperty") - public static class AssignToProperty extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("differentNameProperty.kt") - public void testDifferentNameProperty() throws Exception { - runTest("../../../idea/tests/testData/quickfix/assignToProperty/differentNameProperty.kt"); - } - - @TestMetadata("differentNameProperty2.kt") - public void testDifferentNameProperty2() throws Exception { - runTest("../../../idea/tests/testData/quickfix/assignToProperty/differentNameProperty2.kt"); - } - - @TestMetadata("differentTypeProperty.kt") - public void testDifferentTypeProperty() throws Exception { - runTest("../../../idea/tests/testData/quickfix/assignToProperty/differentTypeProperty.kt"); - } - - @TestMetadata("differentTypeProperty2.kt") - public void testDifferentTypeProperty2() throws Exception { - runTest("../../../idea/tests/testData/quickfix/assignToProperty/differentTypeProperty2.kt"); - } - - @TestMetadata("inSecondaryConstructor.kt") - public void testInSecondaryConstructor() throws Exception { - runTest("../../../idea/tests/testData/quickfix/assignToProperty/inSecondaryConstructor.kt"); - } - - @TestMetadata("noProperty.kt") - public void testNoProperty() throws Exception { - runTest("../../../idea/tests/testData/quickfix/assignToProperty/noProperty.kt"); - } - - @TestMetadata("qualifiedThis.kt") - public void testQualifiedThis() throws Exception { - runTest("../../../idea/tests/testData/quickfix/assignToProperty/qualifiedThis.kt"); - } - - @TestMetadata("sameProperty.kt") - public void testSameProperty() throws Exception { - runTest("../../../idea/tests/testData/quickfix/assignToProperty/sameProperty.kt"); - } - - @TestMetadata("sameProperty2.kt") - public void testSameProperty2() throws Exception { - runTest("../../../idea/tests/testData/quickfix/assignToProperty/sameProperty2.kt"); - } - - @TestMetadata("sameProperty3.kt") - public void testSameProperty3() throws Exception { - runTest("../../../idea/tests/testData/quickfix/assignToProperty/sameProperty3.kt"); - } - - @TestMetadata("valProperty.kt") - public void testValProperty() throws Exception { - runTest("../../../idea/tests/testData/quickfix/assignToProperty/valProperty.kt"); - } - - @TestMetadata("valProperty2.kt") - public void testValProperty2() throws Exception { - runTest("../../../idea/tests/testData/quickfix/assignToProperty/valProperty2.kt"); - } - } - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/callFromPublicInline") - public abstract static class CallFromPublicInline extends AbstractHighLevelQuickFixTest { - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/callFromPublicInline/nonPublic") - public static class NonPublic extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("internalFunction.kt") - public void testInternalFunction() throws Exception { - runTest("../../../idea/tests/testData/quickfix/callFromPublicInline/nonPublic/internalFunction.kt"); - } - - @TestMetadata("internalFunction2.kt") - public void testInternalFunction2() throws Exception { - runTest("../../../idea/tests/testData/quickfix/callFromPublicInline/nonPublic/internalFunction2.kt"); - } - - @TestMetadata("internalFunction3.kt") - public void testInternalFunction3() throws Exception { - runTest("../../../idea/tests/testData/quickfix/callFromPublicInline/nonPublic/internalFunction3.kt"); - } - - @TestMetadata("privateProperty.kt") - public void testPrivateProperty() throws Exception { - runTest("../../../idea/tests/testData/quickfix/callFromPublicInline/nonPublic/privateProperty.kt"); - } - - @TestMetadata("privateProperty2.kt") - public void testPrivateProperty2() throws Exception { - runTest("../../../idea/tests/testData/quickfix/callFromPublicInline/nonPublic/privateProperty2.kt"); - } - - @TestMetadata("privateProperty3.kt") - public void testPrivateProperty3() throws Exception { - runTest("../../../idea/tests/testData/quickfix/callFromPublicInline/nonPublic/privateProperty3.kt"); - } - - @TestMetadata("reifiedTypeParameter.kt") - public void testReifiedTypeParameter() throws Exception { - runTest("../../../idea/tests/testData/quickfix/callFromPublicInline/nonPublic/reifiedTypeParameter.kt"); - } - } - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/callFromPublicInline/protected") - public static class Protected extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("infix.kt") - public void testInfix() throws Exception { - runTest("../../../idea/tests/testData/quickfix/callFromPublicInline/protected/infix.kt"); - } - - @TestMetadata("protectedFunction.kt") - public void testProtectedFunction() throws Exception { - runTest("../../../idea/tests/testData/quickfix/callFromPublicInline/protected/protectedFunction.kt"); - } - - @TestMetadata("protectedFunction2.kt") - public void testProtectedFunction2() throws Exception { - runTest("../../../idea/tests/testData/quickfix/callFromPublicInline/protected/protectedFunction2.kt"); - } - - @TestMetadata("protectedFunction3.kt") - public void testProtectedFunction3() throws Exception { - runTest("../../../idea/tests/testData/quickfix/callFromPublicInline/protected/protectedFunction3.kt"); - } - - @TestMetadata("reifiedTypeParameter.kt") - public void testReifiedTypeParameter() throws Exception { - runTest("../../../idea/tests/testData/quickfix/callFromPublicInline/protected/reifiedTypeParameter.kt"); - } - } - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/callFromPublicInline/super") - public static class Super extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("reifiedTypeParameter.kt") - public void testReifiedTypeParameter() throws Exception { - runTest("../../../idea/tests/testData/quickfix/callFromPublicInline/super/reifiedTypeParameter.kt"); - } - - @TestMetadata("superFunction.kt") - public void testSuperFunction() throws Exception { - runTest("../../../idea/tests/testData/quickfix/callFromPublicInline/super/superFunction.kt"); - } - - @TestMetadata("superFunction2.kt") - public void testSuperFunction2() throws Exception { - runTest("../../../idea/tests/testData/quickfix/callFromPublicInline/super/superFunction2.kt"); - } - - @TestMetadata("superFunction3.kt") - public void testSuperFunction3() throws Exception { - runTest("../../../idea/tests/testData/quickfix/callFromPublicInline/super/superFunction3.kt"); - } - } - } - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/canBeParameter") - public static class CanBeParameter extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("usedInDerivedClass.kt") - public void testUsedInDerivedClass() throws Exception { - runTest("../../../idea/tests/testData/quickfix/canBeParameter/usedInDerivedClass.kt"); - } - - @TestMetadata("usedInProperty.kt") - public void testUsedInProperty() throws Exception { - runTest("../../../idea/tests/testData/quickfix/canBeParameter/usedInProperty.kt"); - } - - @TestMetadata("usedPrivateInInitializer.kt") - public void testUsedPrivateInInitializer() throws Exception { - runTest("../../../idea/tests/testData/quickfix/canBeParameter/usedPrivateInInitializer.kt"); - } - - @TestMetadata("usedVarArg.kt") - public void testUsedVarArg() throws Exception { - runTest("../../../idea/tests/testData/quickfix/canBeParameter/usedVarArg.kt"); - } - } - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/canBePrimaryConstructorProperty") - public static class CanBePrimaryConstructorProperty extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("commentAfter.kt") - public void testCommentAfter() throws Exception { - runTest("../../../idea/tests/testData/quickfix/canBePrimaryConstructorProperty/commentAfter.kt"); - } - - @TestMetadata("commentAhead.kt") - public void testCommentAhead() throws Exception { - runTest("../../../idea/tests/testData/quickfix/canBePrimaryConstructorProperty/commentAhead.kt"); - } - - @TestMetadata("protectedOpenVar.kt") - public void testProtectedOpenVar() throws Exception { - runTest("../../../idea/tests/testData/quickfix/canBePrimaryConstructorProperty/protectedOpenVar.kt"); - } - - @TestMetadata("simple.kt") - public void testSimple() throws Exception { - runTest("../../../idea/tests/testData/quickfix/canBePrimaryConstructorProperty/simple.kt"); - } - - @TestMetadata("vararg.kt") - public void testVararg() throws Exception { - runTest("../../../idea/tests/testData/quickfix/canBePrimaryConstructorProperty/vararg.kt"); - } - } - - - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/changeObjectToClass") - public static class ChangeObjectToClass extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("primaryConstructor.kt") - public void testPrimaryConstructor() throws Exception { - runTest("../../../idea/tests/testData/quickfix/changeObjectToClass/primaryConstructor.kt"); - } - - @TestMetadata("secondaryConstructor.kt") - public void testSecondaryConstructor() throws Exception { - runTest("../../../idea/tests/testData/quickfix/changeObjectToClass/secondaryConstructor.kt"); - } - } - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/changeToLabeledReturn") - public static class ChangeToLabeledReturn extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("constantExpectedTypeMismatch.kt") - public void testConstantExpectedTypeMismatch() throws Exception { - runTest("../../../idea/tests/testData/quickfix/changeToLabeledReturn/constantExpectedTypeMismatch.kt"); - } - - @TestMetadata("multipleInner.kt") - public void testMultipleInner() throws Exception { - runTest("../../../idea/tests/testData/quickfix/changeToLabeledReturn/multipleInner.kt"); - } - - @TestMetadata("multipleOuter.kt") - public void testMultipleOuter() throws Exception { - runTest("../../../idea/tests/testData/quickfix/changeToLabeledReturn/multipleOuter.kt"); - } - - @TestMetadata("noCandidates.kt") - public void testNoCandidates() throws Exception { - runTest("../../../idea/tests/testData/quickfix/changeToLabeledReturn/noCandidates.kt"); - } - - @TestMetadata("normal.kt") - public void testNormal() throws Exception { - runTest("../../../idea/tests/testData/quickfix/changeToLabeledReturn/normal.kt"); - } - - @TestMetadata("nullForNonnullType.kt") - public void testNullForNonnullType() throws Exception { - runTest("../../../idea/tests/testData/quickfix/changeToLabeledReturn/nullForNonnullType.kt"); - } - - @TestMetadata("nullForNonnullType2.kt") - public void testNullForNonnullType2() throws Exception { - runTest("../../../idea/tests/testData/quickfix/changeToLabeledReturn/nullForNonnullType2.kt"); - } - - @TestMetadata("returnNotAllowedInClass.kt") - public void testReturnNotAllowedInClass() throws Exception { - runTest("../../../idea/tests/testData/quickfix/changeToLabeledReturn/returnNotAllowedInClass.kt"); - } - - @TestMetadata("returnNotAllowedInObject.kt") - public void testReturnNotAllowedInObject() throws Exception { - runTest("../../../idea/tests/testData/quickfix/changeToLabeledReturn/returnNotAllowedInObject.kt"); - } - - @TestMetadata("typeMismatch.kt") - public void testTypeMismatch() throws Exception { - runTest("../../../idea/tests/testData/quickfix/changeToLabeledReturn/typeMismatch.kt"); - } - - @TestMetadata("typeMismatch2.kt") - public void testTypeMismatch2() throws Exception { - runTest("../../../idea/tests/testData/quickfix/changeToLabeledReturn/typeMismatch2.kt"); - } - } - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/changeToUseSpreadOperator") - public static class ChangeToUseSpreadOperator extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("differentTypeParameter.kt") - public void testDifferentTypeParameter() throws Exception { - runTest("../../../idea/tests/testData/quickfix/changeToUseSpreadOperator/differentTypeParameter.kt"); - } - - @TestMetadata("differentTypeParameterGeneric.kt") - public void testDifferentTypeParameterGeneric() throws Exception { - runTest("../../../idea/tests/testData/quickfix/changeToUseSpreadOperator/differentTypeParameterGeneric.kt"); - } - - @TestMetadata("mapOf.kt") - public void testMapOf() throws Exception { - runTest("../../../idea/tests/testData/quickfix/changeToUseSpreadOperator/mapOf.kt"); - } - - @TestMetadata("multipleParams.kt") - public void testMultipleParams() throws Exception { - runTest("../../../idea/tests/testData/quickfix/changeToUseSpreadOperator/multipleParams.kt"); - } - - @TestMetadata("nestedGeneric.kt") - public void testNestedGeneric() throws Exception { - runTest("../../../idea/tests/testData/quickfix/changeToUseSpreadOperator/nestedGeneric.kt"); - } - - @TestMetadata("nonArray.kt") - public void testNonArray() throws Exception { - runTest("../../../idea/tests/testData/quickfix/changeToUseSpreadOperator/nonArray.kt"); - } - - @TestMetadata("nonVarArg.kt") - public void testNonVarArg() throws Exception { - runTest("../../../idea/tests/testData/quickfix/changeToUseSpreadOperator/nonVarArg.kt"); - } - - @TestMetadata("normal.kt") - public void testNormal() throws Exception { - runTest("../../../idea/tests/testData/quickfix/changeToUseSpreadOperator/normal.kt"); - } - - @TestMetadata("stdlibMapOf.kt") - public void testStdlibMapOf() throws Exception { - runTest("../../../idea/tests/testData/quickfix/changeToUseSpreadOperator/stdlibMapOf.kt"); - } - - @TestMetadata("vararg.kt") - public void testVararg() throws Exception { - runTest("../../../idea/tests/testData/quickfix/changeToUseSpreadOperator/vararg.kt"); - } - } - - - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/convertCollectionLiteralToIntArrayOf") - public static class ConvertCollectionLiteralToIntArrayOf extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("companionObject.kt") - public void testCompanionObject() throws Exception { - runTest("../../../idea/tests/testData/quickfix/convertCollectionLiteralToIntArrayOf/companionObject.kt"); - } - - @TestMetadata("constructor.kt") - public void testConstructor() throws Exception { - runTest("../../../idea/tests/testData/quickfix/convertCollectionLiteralToIntArrayOf/constructor.kt"); - } - - @TestMetadata("NestedClass.kt") - public void testNestedClass() throws Exception { - runTest("../../../idea/tests/testData/quickfix/convertCollectionLiteralToIntArrayOf/NestedClass.kt"); - } - - @TestMetadata("NestedObject.kt") - public void testNestedObject() throws Exception { - runTest("../../../idea/tests/testData/quickfix/convertCollectionLiteralToIntArrayOf/NestedObject.kt"); - } - } - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/convertIllegalEscapeToUnicodeEscape") - public static class ConvertIllegalEscapeToUnicodeEscape extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("formFeed.kt") - public void testFormFeed() throws Exception { - runTest("../../../idea/tests/testData/quickfix/convertIllegalEscapeToUnicodeEscape/formFeed.kt"); - } - - @TestMetadata("formFeedInStringTemplate.kt") - public void testFormFeedInStringTemplate() throws Exception { - runTest("../../../idea/tests/testData/quickfix/convertIllegalEscapeToUnicodeEscape/formFeedInStringTemplate.kt"); - } - } - - - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/convertLateinitPropertyToNotNullDelegate") - public static class ConvertLateinitPropertyToNotNullDelegate extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("basic.kt") - public void testBasic() throws Exception { - runTest("../../../idea/tests/testData/quickfix/convertLateinitPropertyToNotNullDelegate/basic.kt"); - } - - @TestMetadata("basic2.kt") - public void testBasic2() throws Exception { - runTest("../../../idea/tests/testData/quickfix/convertLateinitPropertyToNotNullDelegate/basic2.kt"); - } - - @TestMetadata("hasInitializer.kt") - public void testHasInitializer() throws Exception { - runTest("../../../idea/tests/testData/quickfix/convertLateinitPropertyToNotNullDelegate/hasInitializer.kt"); - } - - @TestMetadata("noType.kt") - public void testNoType() throws Exception { - runTest("../../../idea/tests/testData/quickfix/convertLateinitPropertyToNotNullDelegate/noType.kt"); - } - - @TestMetadata("notPrimitive.kt") - public void testNotPrimitive() throws Exception { - runTest("../../../idea/tests/testData/quickfix/convertLateinitPropertyToNotNullDelegate/notPrimitive.kt"); - } - - @TestMetadata("nullablePrimitive.kt") - public void testNullablePrimitive() throws Exception { - runTest("../../../idea/tests/testData/quickfix/convertLateinitPropertyToNotNullDelegate/nullablePrimitive.kt"); - } - - @TestMetadata("val.kt") - public void testVal() throws Exception { - runTest("../../../idea/tests/testData/quickfix/convertLateinitPropertyToNotNullDelegate/val.kt"); - } - } - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/convertPropertyInitializerToGetter") - public static class ConvertPropertyInitializerToGetter extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("val.kt") - public void testVal() throws Exception { - runTest("../../../idea/tests/testData/quickfix/convertPropertyInitializerToGetter/val.kt"); - } - - @TestMetadata("var.kt") - public void testVar() throws Exception { - runTest("../../../idea/tests/testData/quickfix/convertPropertyInitializerToGetter/var.kt"); - } - - @TestMetadata("varWithSetter.kt") - public void testVarWithSetter() throws Exception { - runTest("../../../idea/tests/testData/quickfix/convertPropertyInitializerToGetter/varWithSetter.kt"); - } - } - - - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/convertToIsArrayOfCall") - public static class ConvertToIsArrayOfCall extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("arrayLhs.kt") - public void testArrayLhs() throws Exception { - runTest("../../../idea/tests/testData/quickfix/convertToIsArrayOfCall/arrayLhs.kt"); - } - - @TestMetadata("basic.kt") - public void testBasic() throws Exception { - runTest("../../../idea/tests/testData/quickfix/convertToIsArrayOfCall/basic.kt"); - } - - @TestMetadata("list.kt") - public void testList() throws Exception { - runTest("../../../idea/tests/testData/quickfix/convertToIsArrayOfCall/list.kt"); - } - - @TestMetadata("negatedArrayLhs.kt") - public void testNegatedArrayLhs() throws Exception { - runTest("../../../idea/tests/testData/quickfix/convertToIsArrayOfCall/negatedArrayLhs.kt"); - } - - @TestMetadata("negatedBasic.kt") - public void testNegatedBasic() throws Exception { - runTest("../../../idea/tests/testData/quickfix/convertToIsArrayOfCall/negatedBasic.kt"); - } - - @TestMetadata("negatedNullableArrayLhs.kt") - public void testNegatedNullableArrayLhs() throws Exception { - runTest("../../../idea/tests/testData/quickfix/convertToIsArrayOfCall/negatedNullableArrayLhs.kt"); - } - - @TestMetadata("nullableArrayLhs.kt") - public void testNullableArrayLhs() throws Exception { - runTest("../../../idea/tests/testData/quickfix/convertToIsArrayOfCall/nullableArrayLhs.kt"); - } - } - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/createFromUsage/createClass") - public abstract static class CreateClass extends AbstractHighLevelQuickFixTest { - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/createFromUsage/createClass/annotationEntry") - public static class AnnotationEntry extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("annotationNoBrackets.kt") - public void testAnnotationNoBrackets() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/annotationEntry/annotationNoBrackets.kt"); - } - - @TestMetadata("annotationNoParamList.kt") - public void testAnnotationNoParamList() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/annotationEntry/annotationNoParamList.kt"); - } - - @TestMetadata("annotationNoParams.kt") - public void testAnnotationNoParams() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/annotationEntry/annotationNoParams.kt"); - } - - @TestMetadata("annotationWithParams.kt") - public void testAnnotationWithParams() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/annotationEntry/annotationWithParams.kt"); - } - - @TestMetadata("annotationWithTypeParams.kt") - public void testAnnotationWithTypeParams() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/annotationEntry/annotationWithTypeParams.kt"); - } - - @TestMetadata("notAnnotation.kt") - public void testNotAnnotation() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/annotationEntry/notAnnotation.kt"); - } - - @TestMetadata("singleArgAnnotation.kt") - public void testSingleArgAnnotation() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/annotationEntry/singleArgAnnotation.kt"); - } - - @TestMetadata("singleNamedArgAnnotation.kt") - public void testSingleNamedArgAnnotation() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/annotationEntry/singleNamedArgAnnotation.kt"); - } - } - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/createFromUsage/createClass/callExpression") - public static class CallExpression extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("callInAnnotationEntry.kt") - public void testCallInAnnotationEntry() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/callExpression/callInAnnotationEntry.kt"); - } - - @TestMetadata("callInLambda.kt") - public void testCallInLambda() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/callExpression/callInLambda.kt"); - } - - @TestMetadata("callInLocalFunNoReceiver.kt") - public void testCallInLocalFunNoReceiver() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/callExpression/callInLocalFunNoReceiver.kt"); - } - - @TestMetadata("callInMemberFunNoReceiver.kt") - public void testCallInMemberFunNoReceiver() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/callExpression/callInMemberFunNoReceiver.kt"); - } - - @TestMetadata("callInMemberValDelegateRuntime.kt") - public void testCallInMemberValDelegateRuntime() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/callExpression/callInMemberValDelegateRuntime.kt"); - } - - @TestMetadata("callInMemberVarDelegateRuntime.kt") - public void testCallInMemberVarDelegateRuntime() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/callExpression/callInMemberVarDelegateRuntime.kt"); - } - - @TestMetadata("callInWhenEntry.kt") - public void testCallInWhenEntry() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/callExpression/callInWhenEntry.kt"); - } - - @TestMetadata("callNoReceiver.kt") - public void testCallNoReceiver() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/callExpression/callNoReceiver.kt"); - } - - @TestMetadata("callWithClassQualifier.kt") - public void testCallWithClassQualifier() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/callExpression/callWithClassQualifier.kt"); - } - - @TestMetadata("callWithExplicitParamNames.kt") - public void testCallWithExplicitParamNames() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/callExpression/callWithExplicitParamNames.kt"); - } - - @TestMetadata("callWithExtraArgs.kt") - public void testCallWithExtraArgs() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/callExpression/callWithExtraArgs.kt"); - } - - @TestMetadata("callWithFinalSupertype.kt") - public void testCallWithFinalSupertype() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/callExpression/callWithFinalSupertype.kt"); - } - - @TestMetadata("callWithGenericReceiver.kt") - public void testCallWithGenericReceiver() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/callExpression/callWithGenericReceiver.kt"); - } - - @TestMetadata("callWithLambdaArg.kt") - public void testCallWithLambdaArg() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/callExpression/callWithLambdaArg.kt"); - } - - @TestMetadata("callWithLambdaArgOnly.kt") - public void testCallWithLambdaArgOnly() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/callExpression/callWithLambdaArgOnly.kt"); - } - - @TestMetadata("callWithLibClassQualifier.kt") - public void testCallWithLibClassQualifier() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/callExpression/callWithLibClassQualifier.kt"); - } - - @TestMetadata("callWithMissingArgs.kt") - public void testCallWithMissingArgs() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/callExpression/callWithMissingArgs.kt"); - } - - @TestMetadata("callWithObjectQualifier.kt") - public void testCallWithObjectQualifier() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/callExpression/callWithObjectQualifier.kt"); - } - - @TestMetadata("callWithPackageName.kt") - public void testCallWithPackageName() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/callExpression/callWithPackageName.kt"); - } - - @TestMetadata("callWithReceiver.kt") - public void testCallWithReceiver() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/callExpression/callWithReceiver.kt"); - } - - @TestMetadata("callWithSuperInterface.kt") - public void testCallWithSuperInterface() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/callExpression/callWithSuperInterface.kt"); - } - - @TestMetadata("callWithSuperclassNoConstructorParams.kt") - public void testCallWithSuperclassNoConstructorParams() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/callExpression/callWithSuperclassNoConstructorParams.kt"); - } - - @TestMetadata("callWithSuperclassWithConstructorParams.kt") - public void testCallWithSuperclassWithConstructorParams() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/callExpression/callWithSuperclassWithConstructorParams.kt"); - } - - @TestMetadata("callWithThisReceiverInClass.kt") - public void testCallWithThisReceiverInClass() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/callExpression/callWithThisReceiverInClass.kt"); - } - - @TestMetadata("callWithThisReceiverInExtension.kt") - public void testCallWithThisReceiverInExtension() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/callExpression/callWithThisReceiverInExtension.kt"); - } - - @TestMetadata("callWithThisReceiverInNestedClass1.kt") - public void testCallWithThisReceiverInNestedClass1() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/callExpression/callWithThisReceiverInNestedClass1.kt"); - } - - @TestMetadata("callWithThisReceiverInNestedClass2.kt") - public void testCallWithThisReceiverInNestedClass2() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/callExpression/callWithThisReceiverInNestedClass2.kt"); - } - - @TestMetadata("callWithTypeArgsInAnnotationEntry.kt") - public void testCallWithTypeArgsInAnnotationEntry() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/callExpression/callWithTypeArgsInAnnotationEntry.kt"); - } - - @TestMetadata("classWithLowerCase.kt") - public void testClassWithLowerCase() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/callExpression/classWithLowerCase.kt"); - } - - @TestMetadata("createNestedClass.kt") - public void testCreateNestedClass() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/callExpression/createNestedClass.kt"); - } - - @TestMetadata("createNestedClassInInner.kt") - public void testCreateNestedClassInInner() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/callExpression/createNestedClassInInner.kt"); - } - - @TestMetadata("expectedTypeBySuperFunction.kt") - public void testExpectedTypeBySuperFunction() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/callExpression/expectedTypeBySuperFunction.kt"); - } - - @TestMetadata("inReturn.kt") - public void testInReturn() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/callExpression/inReturn.kt"); - } - - @TestMetadata("inReturn2.kt") - public void testInReturn2() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/callExpression/inReturn2.kt"); - } - - @TestMetadata("notApplicableInReturn.kt") - public void testNotApplicableInReturn() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/callExpression/notApplicableInReturn.kt"); - } - - @TestMetadata("parameterClassIsInternal.kt") - public void testParameterClassIsInternal() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/callExpression/parameterClassIsInternal.kt"); - } - - @TestMetadata("parameterClassIsPrivate.kt") - public void testParameterClassIsPrivate() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/callExpression/parameterClassIsPrivate.kt"); - } - - @TestMetadata("parameterClassIsPublic.kt") - public void testParameterClassIsPublic() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/callExpression/parameterClassIsPublic.kt"); - } - - @TestMetadata("quotedName.kt") - public void testQuotedName() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/callExpression/quotedName.kt"); - } - - @TestMetadata("singleArgCallInAnnotationEntry.kt") - public void testSingleArgCallInAnnotationEntry() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/callExpression/singleArgCallInAnnotationEntry.kt"); - } - - @TestMetadata("singleNamedArgCallInAnnotationEntry.kt") - public void testSingleNamedArgCallInAnnotationEntry() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/callExpression/singleNamedArgCallInAnnotationEntry.kt"); - } - - @TestMetadata("unusedCallResult.kt") - public void testUnusedCallResult() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/callExpression/unusedCallResult.kt"); - } - } - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/createFromUsage/createClass/delegationSpecifier") - public static class DelegationSpecifier extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("createSuperClassFromSuperTypeEntry.kt") - public void testCreateSuperClassFromSuperTypeEntry() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/delegationSpecifier/createSuperClassFromSuperTypeEntry.kt"); - } - - @TestMetadata("createSuperClassFromSuperTypeEntry2.kt") - public void testCreateSuperClassFromSuperTypeEntry2() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/delegationSpecifier/createSuperClassFromSuperTypeEntry2.kt"); - } - - @TestMetadata("createSuperClassFromSuperTypeEntry3.kt") - public void testCreateSuperClassFromSuperTypeEntry3() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/delegationSpecifier/createSuperClassFromSuperTypeEntry3.kt"); - } - - @TestMetadata("createSuperClassFromSuperTypeEntryForAnnotation.kt") - public void testCreateSuperClassFromSuperTypeEntryForAnnotation() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/delegationSpecifier/createSuperClassFromSuperTypeEntryForAnnotation.kt"); - } - - @TestMetadata("createSuperClassFromSuperTypeEntryForEnum.kt") - public void testCreateSuperClassFromSuperTypeEntryForEnum() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/delegationSpecifier/createSuperClassFromSuperTypeEntryForEnum.kt"); - } - - @TestMetadata("createSuperClassFromSuperTypeEntryForInline.kt") - public void testCreateSuperClassFromSuperTypeEntryForInline() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/delegationSpecifier/createSuperClassFromSuperTypeEntryForInline.kt"); - } - - @TestMetadata("createSuperclassInsideSubclass.kt") - public void testCreateSuperclassInsideSubclass() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/delegationSpecifier/createSuperclassInsideSubclass.kt"); - } - - @TestMetadata("delegatorToSupercallNoReceiver.kt") - public void testDelegatorToSupercallNoReceiver() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/delegationSpecifier/delegatorToSupercallNoReceiver.kt"); - } - - @TestMetadata("delegatorToSupercallWithClassQualifier.kt") - public void testDelegatorToSupercallWithClassQualifier() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/delegationSpecifier/delegatorToSupercallWithClassQualifier.kt"); - } - - @TestMetadata("delegatorToSupercallWithPackageQualifier.kt") - public void testDelegatorToSupercallWithPackageQualifier() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/delegationSpecifier/delegatorToSupercallWithPackageQualifier.kt"); - } - - @TestMetadata("delegatorToSupercallWithParamNames.kt") - public void testDelegatorToSupercallWithParamNames() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/delegationSpecifier/delegatorToSupercallWithParamNames.kt"); - } - - @TestMetadata("delegatorToSupercallWithTypeParams.kt") - public void testDelegatorToSupercallWithTypeParams() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/delegationSpecifier/delegatorToSupercallWithTypeParams.kt"); - } - - @TestMetadata("interfaceDelegatorToSuperclass.kt") - public void testInterfaceDelegatorToSuperclass() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/delegationSpecifier/interfaceDelegatorToSuperclass.kt"); - } - - @TestMetadata("interfaceDelegatorToSuperclass2.kt") - public void testInterfaceDelegatorToSuperclass2() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/delegationSpecifier/interfaceDelegatorToSuperclass2.kt"); - } - } - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/createFromUsage/createClass/importDirective") - public static class ImportDirective extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("annotationInPackage.kt") - public void testAnnotationInPackage() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/importDirective/annotationInPackage.kt"); - } - - @TestMetadata("annotationWithQualifier.kt") - public void testAnnotationWithQualifier() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/importDirective/annotationWithQualifier.kt"); - } - - @TestMetadata("classInPackage.kt") - public void testClassInPackage() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/importDirective/classInPackage.kt"); - } - - @TestMetadata("classWithQualifier.kt") - public void testClassWithQualifier() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/importDirective/classWithQualifier.kt"); - } - - @TestMetadata("enumEntryInEnum.kt") - public void testEnumEntryInEnum() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/importDirective/enumEntryInEnum.kt"); - } - - @TestMetadata("enumEntryInPackage.kt") - public void testEnumEntryInPackage() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/importDirective/enumEntryInPackage.kt"); - } - - @TestMetadata("enumEntryWithQualifier.kt") - public void testEnumEntryWithQualifier() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/importDirective/enumEntryWithQualifier.kt"); - } - - @TestMetadata("enumInPackage.kt") - public void testEnumInPackage() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/importDirective/enumInPackage.kt"); - } - - @TestMetadata("enumWithQualifier.kt") - public void testEnumWithQualifier() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/importDirective/enumWithQualifier.kt"); - } - - @TestMetadata("interfaceInPackage.kt") - public void testInterfaceInPackage() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/importDirective/interfaceInPackage.kt"); - } - - @TestMetadata("interfaceWithQualifier.kt") - public void testInterfaceWithQualifier() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/importDirective/interfaceWithQualifier.kt"); - } - - @TestMetadata("objectInPackage.kt") - public void testObjectInPackage() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/importDirective/objectInPackage.kt"); - } - - @TestMetadata("objectWithQualifier.kt") - public void testObjectWithQualifier() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/importDirective/objectWithQualifier.kt"); - } - } - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/createFromUsage/createClass/referenceExpression") - public static class ReferenceExpression extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("annotationByClassLiteral.kt") - public void testAnnotationByClassLiteral() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/referenceExpression/annotationByClassLiteral.kt"); - } - - @TestMetadata("annotationNoReceiver.kt") - public void testAnnotationNoReceiver() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/referenceExpression/annotationNoReceiver.kt"); - } - - @TestMetadata("classByClassLiteral.kt") - public void testClassByClassLiteral() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/referenceExpression/classByClassLiteral.kt"); - } - - @TestMetadata("classByNestedQualifier.kt") - public void testClassByNestedQualifier() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/referenceExpression/classByNestedQualifier.kt"); - } - - @TestMetadata("classByQualifier.kt") - public void testClassByQualifier() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/referenceExpression/classByQualifier.kt"); - } - - @TestMetadata("classInPackage.kt") - public void testClassInPackage() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/referenceExpression/classInPackage.kt"); - } - - @TestMetadata("classInPrimaryConstructor.kt") - public void testClassInPrimaryConstructor() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/referenceExpression/classInPrimaryConstructor.kt"); - } - - @TestMetadata("classNoReceiver.kt") - public void testClassNoReceiver() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/referenceExpression/classNoReceiver.kt"); - } - - @TestMetadata("classWithQualifier.kt") - public void testClassWithQualifier() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/referenceExpression/classWithQualifier.kt"); - } - - @TestMetadata("classWithReceiver.kt") - public void testClassWithReceiver() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/referenceExpression/classWithReceiver.kt"); - } - - @TestMetadata("createNestedObject.kt") - public void testCreateNestedObject() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/referenceExpression/createNestedObject.kt"); - } - - @TestMetadata("createNestedObjectInInner.kt") - public void testCreateNestedObjectInInner() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/referenceExpression/createNestedObjectInInner.kt"); - } - - @TestMetadata("enumByClassLiteral.kt") - public void testEnumByClassLiteral() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/referenceExpression/enumByClassLiteral.kt"); - } - - @TestMetadata("enumByQualifier.kt") - public void testEnumByQualifier() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/referenceExpression/enumByQualifier.kt"); - } - - @TestMetadata("enumEntryAddComma.kt") - public void testEnumEntryAddComma() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/referenceExpression/enumEntryAddComma.kt"); - } - - @TestMetadata("enumEntryHasComma.kt") - public void testEnumEntryHasComma() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/referenceExpression/enumEntryHasComma.kt"); - } - - @TestMetadata("enumEntryHasCommaAndSemicolon.kt") - public void testEnumEntryHasCommaAndSemicolon() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/referenceExpression/enumEntryHasCommaAndSemicolon.kt"); - } - - @TestMetadata("enumEntryHasCommaAndSemicolon2.kt") - public void testEnumEntryHasCommaAndSemicolon2() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/referenceExpression/enumEntryHasCommaAndSemicolon2.kt"); - } - - @TestMetadata("enumEntryHasNoLineBreak.kt") - public void testEnumEntryHasNoLineBreak() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/referenceExpression/enumEntryHasNoLineBreak.kt"); - } - - @TestMetadata("enumEntryHasSemicolon.kt") - public void testEnumEntryHasSemicolon() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/referenceExpression/enumEntryHasSemicolon.kt"); - } - - @TestMetadata("enumEntryNoReceiver.kt") - public void testEnumEntryNoReceiver() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/referenceExpression/enumEntryNoReceiver.kt"); - } - - @TestMetadata("enumEntryWithEnumQualifier.kt") - public void testEnumEntryWithEnumQualifier() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/referenceExpression/enumEntryWithEnumQualifier.kt"); - } - - @TestMetadata("enumEntryWithEnumQualifierAndParams.kt") - public void testEnumEntryWithEnumQualifierAndParams() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/referenceExpression/enumEntryWithEnumQualifierAndParams.kt"); - } - - @TestMetadata("enumEntryWithEnumSuperclass.kt") - public void testEnumEntryWithEnumSuperclass() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/referenceExpression/enumEntryWithEnumSuperclass.kt"); - } - - @TestMetadata("enumEntryWithQualifier.kt") - public void testEnumEntryWithQualifier() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/referenceExpression/enumEntryWithQualifier.kt"); - } - - @TestMetadata("enumEntryWithReceiver.kt") - public void testEnumEntryWithReceiver() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/referenceExpression/enumEntryWithReceiver.kt"); - } - - @TestMetadata("enumEntryWithSuperclass.kt") - public void testEnumEntryWithSuperclass() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/referenceExpression/enumEntryWithSuperclass.kt"); - } - - @TestMetadata("enumInBinaryExpression.kt") - public void testEnumInBinaryExpression() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/referenceExpression/enumInBinaryExpression.kt"); - } - - @TestMetadata("enumNoReceiver.kt") - public void testEnumNoReceiver() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/referenceExpression/enumNoReceiver.kt"); - } - - @TestMetadata("interfaceByClassLiteral.kt") - public void testInterfaceByClassLiteral() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/referenceExpression/interfaceByClassLiteral.kt"); - } - - @TestMetadata("interfaceByQualifier.kt") - public void testInterfaceByQualifier() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/referenceExpression/interfaceByQualifier.kt"); - } - - @TestMetadata("interfaceNoReceiver.kt") - public void testInterfaceNoReceiver() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/referenceExpression/interfaceNoReceiver.kt"); - } - - @TestMetadata("objectByClassLiteral.kt") - public void testObjectByClassLiteral() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/referenceExpression/objectByClassLiteral.kt"); - } - - @TestMetadata("objectByQualifier.kt") - public void testObjectByQualifier() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/referenceExpression/objectByQualifier.kt"); - } - - @TestMetadata("objectForEnum.kt") - public void testObjectForEnum() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/referenceExpression/objectForEnum.kt"); - } - - @TestMetadata("objectForEnumInArgument.kt") - public void testObjectForEnumInArgument() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/referenceExpression/objectForEnumInArgument.kt"); - } - - @TestMetadata("objectForEnumInEquals.kt") - public void testObjectForEnumInEquals() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/referenceExpression/objectForEnumInEquals.kt"); - } - - @TestMetadata("objectInPackage.kt") - public void testObjectInPackage() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/referenceExpression/objectInPackage.kt"); - } - - @TestMetadata("objectNoReceiver.kt") - public void testObjectNoReceiver() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/referenceExpression/objectNoReceiver.kt"); - } - - @TestMetadata("objectWithQualifier.kt") - public void testObjectWithQualifier() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/referenceExpression/objectWithQualifier.kt"); - } - - @TestMetadata("objectWithReceiver.kt") - public void testObjectWithReceiver() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/referenceExpression/objectWithReceiver.kt"); - } - - @TestMetadata("objectWithSuperclass.kt") - public void testObjectWithSuperclass() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/referenceExpression/objectWithSuperclass.kt"); - } - - @TestMetadata("objectWithSuperinterface.kt") - public void testObjectWithSuperinterface() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/referenceExpression/objectWithSuperinterface.kt"); - } - - @TestMetadata("recursiveBound.kt") - public void testRecursiveBound() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/referenceExpression/recursiveBound.kt"); - } - - @TestMetadata("unusedReference.kt") - public void testUnusedReference() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/referenceExpression/unusedReference.kt"); - } - - @TestMetadata("valDelegateExpressionRuntime.kt") - public void testValDelegateExpressionRuntime() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/referenceExpression/valDelegateExpressionRuntime.kt"); - } - - @TestMetadata("varDelegateExpressionRuntime.kt") - public void testVarDelegateExpressionRuntime() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/referenceExpression/varDelegateExpressionRuntime.kt"); - } - } - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/createFromUsage/createClass/typeReference") - public static class TypeReference extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("annotationNotQualifierNoTypeArgs.kt") - public void testAnnotationNotQualifierNoTypeArgs() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/typeReference/annotationNotQualifierNoTypeArgs.kt"); - } - - @TestMetadata("annotationNotQualifierWithTypeArgs.kt") - public void testAnnotationNotQualifierWithTypeArgs() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/typeReference/annotationNotQualifierWithTypeArgs.kt"); - } - - @TestMetadata("annotationQualifierNoTypeArgs.kt") - public void testAnnotationQualifierNoTypeArgs() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/typeReference/annotationQualifierNoTypeArgs.kt"); - } - - @TestMetadata("classCurrentPackageReceiver.kt") - public void testClassCurrentPackageReceiver() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/typeReference/classCurrentPackageReceiver.kt"); - } - - @TestMetadata("classLibTypeReceiver.kt") - public void testClassLibTypeReceiver() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/typeReference/classLibTypeReceiver.kt"); - } - - @TestMetadata("classNotQualifierNoTypeArgs.kt") - public void testClassNotQualifierNoTypeArgs() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/typeReference/classNotQualifierNoTypeArgs.kt"); - } - - @TestMetadata("classNotQualifierWithStarProjection.kt") - public void testClassNotQualifierWithStarProjection() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/typeReference/classNotQualifierWithStarProjection.kt"); - } - - @TestMetadata("classNotQualifierWithTypeArgs.kt") - public void testClassNotQualifierWithTypeArgs() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/typeReference/classNotQualifierWithTypeArgs.kt"); - } - - @TestMetadata("classQualifierNoTypeArgs.kt") - public void testClassQualifierNoTypeArgs() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/typeReference/classQualifierNoTypeArgs.kt"); - } - - @TestMetadata("classUserTypeReceiver.kt") - public void testClassUserTypeReceiver() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/typeReference/classUserTypeReceiver.kt"); - } - - @TestMetadata("classUserTypeReceiverNoBody.kt") - public void testClassUserTypeReceiverNoBody() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/typeReference/classUserTypeReceiverNoBody.kt"); - } - - @TestMetadata("createNestedClass.kt") - public void testCreateNestedClass() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/typeReference/createNestedClass.kt"); - } - - @TestMetadata("createNestedClassInInner.kt") - public void testCreateNestedClassInInner() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/typeReference/createNestedClassInInner.kt"); - } - - @TestMetadata("enumEntryNotQualifierNoTypeArgs.kt") - public void testEnumEntryNotQualifierNoTypeArgs() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/typeReference/enumEntryNotQualifierNoTypeArgs.kt"); - } - - @TestMetadata("enumNotQualifierNoTypeArgs.kt") - public void testEnumNotQualifierNoTypeArgs() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/typeReference/enumNotQualifierNoTypeArgs.kt"); - } - - @TestMetadata("enumNotQualifierWithTypeArgs.kt") - public void testEnumNotQualifierWithTypeArgs() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/typeReference/enumNotQualifierWithTypeArgs.kt"); - } - - @TestMetadata("interfaceNotQualifierNoTypeArgs.kt") - public void testInterfaceNotQualifierNoTypeArgs() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/typeReference/interfaceNotQualifierNoTypeArgs.kt"); - } - - @TestMetadata("nestedClassByTypeArgumentRefNoBody.kt") - public void testNestedClassByTypeArgumentRefNoBody() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/typeReference/nestedClassByTypeArgumentRefNoBody.kt"); - } - - @TestMetadata("nestedClassByTypeArgumentRefWithBody.kt") - public void testNestedClassByTypeArgumentRefWithBody() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/typeReference/nestedClassByTypeArgumentRefWithBody.kt"); - } - - @TestMetadata("noAnnotationForTypeBound.kt") - public void testNoAnnotationForTypeBound() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/typeReference/noAnnotationForTypeBound.kt"); - } - - @TestMetadata("noAnnotationForTypeConstraint.kt") - public void testNoAnnotationForTypeConstraint() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/typeReference/noAnnotationForTypeConstraint.kt"); - } - - @TestMetadata("noEnumForTypeBound.kt") - public void testNoEnumForTypeBound() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/typeReference/noEnumForTypeBound.kt"); - } - - @TestMetadata("noEnumForTypeConstraint.kt") - public void testNoEnumForTypeConstraint() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/typeReference/noEnumForTypeConstraint.kt"); - } - - @TestMetadata("noObjectForTypeBound.kt") - public void testNoObjectForTypeBound() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/typeReference/noObjectForTypeBound.kt"); - } - - @TestMetadata("noObjectForTypeConstraint.kt") - public void testNoObjectForTypeConstraint() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/typeReference/noObjectForTypeConstraint.kt"); - } - - @TestMetadata("objectNotQualifierNoTypeArgs.kt") - public void testObjectNotQualifierNoTypeArgs() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/typeReference/objectNotQualifierNoTypeArgs.kt"); - } - - @TestMetadata("objectNotQualifierWithTypeArgs.kt") - public void testObjectNotQualifierWithTypeArgs() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/typeReference/objectNotQualifierWithTypeArgs.kt"); - } - - @TestMetadata("objectQualifierNoTypeArgs.kt") - public void testObjectQualifierNoTypeArgs() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/typeReference/objectQualifierNoTypeArgs.kt"); - } - - @TestMetadata("typeArgumentWithBound.kt") - public void testTypeArgumentWithBound() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/typeReference/typeArgumentWithBound.kt"); - } - - @TestMetadata("typeArgumentWithMultipleBounds.kt") - public void testTypeArgumentWithMultipleBounds() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createClass/typeReference/typeArgumentWithMultipleBounds.kt"); - } - } - } - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/createFromUsage/createVariable") - public abstract static class CreateVariable extends AbstractHighLevelQuickFixTest { - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable") - public static class LocalVariable extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("assignedInFun.kt") - public void testAssignedInFun() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/assignedInFun.kt"); - } - - @TestMetadata("callableRef.kt") - public void testCallableRef() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/callableRef.kt"); - } - - @TestMetadata("inAccessor.kt") - public void testInAccessor() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/inAccessor.kt"); - } - - @TestMetadata("inAccessorWithExpressionBody.kt") - public void testInAccessorWithExpressionBody() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/inAccessorWithExpressionBody.kt"); - } - - @TestMetadata("inAnnotation.kt") - public void testInAnnotation() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/inAnnotation.kt"); - } - - @TestMetadata("inAnnotationValue.kt") - public void testInAnnotationValue() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/inAnnotationValue.kt"); - } - - @TestMetadata("inBinaryOperation.kt") - public void testInBinaryOperation() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/inBinaryOperation.kt"); - } - - @TestMetadata("inClass.kt") - public void testInClass() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/inClass.kt"); - } - - @TestMetadata("inDefaultValue.kt") - public void testInDefaultValue() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/inDefaultValue.kt"); - } - - @TestMetadata("inDefaultValueLocalFun.kt") - public void testInDefaultValueLocalFun() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/inDefaultValueLocalFun.kt"); - } - - @TestMetadata("inFun.kt") - public void testInFun() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/inFun.kt"); - } - - @TestMetadata("inFunWithExpressionBody.kt") - public void testInFunWithExpressionBody() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/inFunWithExpressionBody.kt"); - } - - @TestMetadata("inFunWithExpressionBodyNoExplicitType.kt") - public void testInFunWithExpressionBodyNoExplicitType() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/inFunWithExpressionBodyNoExplicitType.kt"); - } - - @TestMetadata("inLabelRef.kt") - public void testInLabelRef() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/inLabelRef.kt"); - } - - @TestMetadata("inLambdaNoParams.kt") - public void testInLambdaNoParams() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/inLambdaNoParams.kt"); - } - - @TestMetadata("inLambdaWithParams.kt") - public void testInLambdaWithParams() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/inLambdaWithParams.kt"); - } - - @TestMetadata("inMultiLineLambdaNoParams.kt") - public void testInMultiLineLambdaNoParams() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/inMultiLineLambdaNoParams.kt"); - } - - @TestMetadata("inMultiLineLambdaWithParams.kt") - public void testInMultiLineLambdaWithParams() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/inMultiLineLambdaWithParams.kt"); - } - - @TestMetadata("inWhen.kt") - public void testInWhen() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/inWhen.kt"); - } - - @TestMetadata("localWithPackageName.kt") - public void testLocalWithPackageName() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/localWithPackageName.kt"); - } - - @TestMetadata("nonIdentifier.kt") - public void testNonIdentifier() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/nonIdentifier.kt"); - } - - @TestMetadata("nullableType.kt") - public void testNullableType() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/nullableType.kt"); - } - - @TestMetadata("onTopLevel.kt") - public void testOnTopLevel() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/onTopLevel.kt"); - } - - @TestMetadata("positionNextToUsage.kt") - public void testPositionNextToUsage() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/positionNextToUsage.kt"); - } - - @TestMetadata("qualifiedInFun.kt") - public void testQualifiedInFun() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/qualifiedInFun.kt"); - } - - @TestMetadata("unitTypedInFun.kt") - public void testUnitTypedInFun() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/unitTypedInFun.kt"); - } - } - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/parameter") - public static class Parameter extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("annotationClass.kt") - public void testAnnotationClass() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/annotationClass.kt"); - } - - @TestMetadata("annotationClass2.kt") - public void testAnnotationClass2() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/annotationClass2.kt"); - } - - @TestMetadata("assignedInFun.kt") - public void testAssignedInFun() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/assignedInFun.kt"); - } - - @TestMetadata("assignedInFunInClass.kt") - public void testAssignedInFunInClass() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/assignedInFunInClass.kt"); - } - - @TestMetadata("callableRef.kt") - public void testCallableRef() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/callableRef.kt"); - } - - @TestMetadata("dataClassPropertyByDestructuringEntry.kt") - public void testDataClassPropertyByDestructuringEntry() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/dataClassPropertyByDestructuringEntry.kt"); - } - - @TestMetadata("dataClassPropertyByDestructuringEntryWithSkippedIndex.kt") - public void testDataClassPropertyByDestructuringEntryWithSkippedIndex() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/dataClassPropertyByDestructuringEntryWithSkippedIndex.kt"); - } - - @TestMetadata("dataClassPropertyByDestructuringEntryWithType.kt") - public void testDataClassPropertyByDestructuringEntryWithType() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/dataClassPropertyByDestructuringEntryWithType.kt"); - } - - @TestMetadata("dataClassPropertyByNamedArgument.kt") - public void testDataClassPropertyByNamedArgument() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/dataClassPropertyByNamedArgument.kt"); - } - - @TestMetadata("fromDelegateConstructorCall.kt") - public void testFromDelegateConstructorCall() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/fromDelegateConstructorCall.kt"); - } - - @TestMetadata("inAccessorInClass.kt") - public void testInAccessorInClass() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/inAccessorInClass.kt"); - } - - @TestMetadata("inAccessorInClassObject.kt") - public void testInAccessorInClassObject() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/inAccessorInClassObject.kt"); - } - - @TestMetadata("inAccessorInGenClass.kt") - public void testInAccessorInGenClass() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/inAccessorInGenClass.kt"); - } - - @TestMetadata("inAccessorInInterface.kt") - public void testInAccessorInInterface() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/inAccessorInInterface.kt"); - } - - @TestMetadata("inAccessorInObject.kt") - public void testInAccessorInObject() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/inAccessorInObject.kt"); - } - - @TestMetadata("inAccessorNoClass.kt") - public void testInAccessorNoClass() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/inAccessorNoClass.kt"); - } - - @TestMetadata("inAccessorWithExpressionBodyInClass.kt") - public void testInAccessorWithExpressionBodyInClass() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/inAccessorWithExpressionBodyInClass.kt"); - } - - @TestMetadata("inAnonymousObject.kt") - public void testInAnonymousObject() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/inAnonymousObject.kt"); - } - - @TestMetadata("inAnonymousObjectInSecondaryConstructor.kt") - public void testInAnonymousObjectInSecondaryConstructor() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/inAnonymousObjectInSecondaryConstructor.kt"); - } - - @TestMetadata("inBinaryOperation.kt") - public void testInBinaryOperation() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/inBinaryOperation.kt"); - } - - @TestMetadata("inClassInitializer.kt") - public void testInClassInitializer() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/inClassInitializer.kt"); - } - - @TestMetadata("inClassObjectInitializer.kt") - public void testInClassObjectInitializer() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/inClassObjectInitializer.kt"); - } - - @TestMetadata("inFun.kt") - public void testInFun() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/inFun.kt"); - } - - @TestMetadata("inFunFromDefaultValue.kt") - public void testInFunFromDefaultValue() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/inFunFromDefaultValue.kt"); - } - - @TestMetadata("inFunInClass.kt") - public void testInFunInClass() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/inFunInClass.kt"); - } - - @TestMetadata("inFunInGenClass.kt") - public void testInFunInGenClass() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/inFunInGenClass.kt"); - } - - @TestMetadata("inGenAccessorInClass.kt") - public void testInGenAccessorInClass() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/inGenAccessorInClass.kt"); - } - - @TestMetadata("inGenAccessorInGenClass.kt") - public void testInGenAccessorInGenClass() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/inGenAccessorInGenClass.kt"); - } - - @TestMetadata("inGenFunInClass.kt") - public void testInGenFunInClass() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/inGenFunInClass.kt"); - } - - @TestMetadata("inGenFunInGenClass.kt") - public void testInGenFunInGenClass() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/inGenFunInGenClass.kt"); - } - - @TestMetadata("inLabelRef.kt") - public void testInLabelRef() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/inLabelRef.kt"); - } - - @TestMetadata("inLambdaNoParams.kt") - public void testInLambdaNoParams() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/inLambdaNoParams.kt"); - } - - @TestMetadata("inLambdaWithIt.kt") - public void testInLambdaWithIt() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/inLambdaWithIt.kt"); - } - - @TestMetadata("inLambdaWithParams.kt") - public void testInLambdaWithParams() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/inLambdaWithParams.kt"); - } - - @TestMetadata("inLambdaWithTypedParams.kt") - public void testInLambdaWithTypedParams() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/inLambdaWithTypedParams.kt"); - } - - @TestMetadata("inMultiLineLambdaNoParams.kt") - public void testInMultiLineLambdaNoParams() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/inMultiLineLambdaNoParams.kt"); - } - - @TestMetadata("inPropertyInitializerInClass.kt") - public void testInPropertyInitializerInClass() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/inPropertyInitializerInClass.kt"); - } - - @TestMetadata("inPropertyInitializerInClassObject.kt") - public void testInPropertyInitializerInClassObject() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/inPropertyInitializerInClassObject.kt"); - } - - @TestMetadata("inPropertyInitializerInEnumClass.kt") - public void testInPropertyInitializerInEnumClass() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/inPropertyInitializerInEnumClass.kt"); - } - - @TestMetadata("inPropertyInitializerInEnumEntry.kt") - public void testInPropertyInitializerInEnumEntry() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/inPropertyInitializerInEnumEntry.kt"); - } - - @TestMetadata("inPropertyInitializerInGenClass.kt") - public void testInPropertyInitializerInGenClass() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/inPropertyInitializerInGenClass.kt"); - } - - @TestMetadata("inPropertyInitializerInNestedClass.kt") - public void testInPropertyInitializerInNestedClass() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/inPropertyInitializerInNestedClass.kt"); - } - - @TestMetadata("inPropertyInitializerInObject.kt") - public void testInPropertyInitializerInObject() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/inPropertyInitializerInObject.kt"); - } - - @TestMetadata("inPropertyInitializerNoClass.kt") - public void testInPropertyInitializerNoClass() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/inPropertyInitializerNoClass.kt"); - } - - @TestMetadata("inSecondaryConstructor.kt") - public void testInSecondaryConstructor() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/inSecondaryConstructor.kt"); - } - - @TestMetadata("namedArgInConstructorCall.kt") - public void testNamedArgInConstructorCall() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/namedArgInConstructorCall.kt"); - } - - @TestMetadata("namedArgInFunctionCall.kt") - public void testNamedArgInFunctionCall() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/namedArgInFunctionCall.kt"); - } - - @TestMetadata("nonIdentifier.kt") - public void testNonIdentifier() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/nonIdentifier.kt"); - } - - @TestMetadata("nullableType.kt") - public void testNullableType() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/nullableType.kt"); - } - - @TestMetadata("parameterFromClassDelegationSpecifier.kt") - public void testParameterFromClassDelegationSpecifier() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/parameterFromClassDelegationSpecifier.kt"); - } - - @TestMetadata("parameterFromEnumEntryDelegationSpecifier.kt") - public void testParameterFromEnumEntryDelegationSpecifier() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/parameterFromEnumEntryDelegationSpecifier.kt"); - } - - @TestMetadata("parameterFromObjectDelegationSpecifier.kt") - public void testParameterFromObjectDelegationSpecifier() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/parameterFromObjectDelegationSpecifier.kt"); - } - - @TestMetadata("qualifiedInFun.kt") - public void testQualifiedInFun() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/qualifiedInFun.kt"); - } - - @TestMetadata("quotedName.kt") - public void testQuotedName() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/quotedName.kt"); - } - - @TestMetadata("recursiveBound.kt") - public void testRecursiveBound() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/recursiveBound.kt"); - } - - @TestMetadata("unknownTypeInReturn.kt") - public void testUnknownTypeInReturn() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/unknownTypeInReturn.kt"); - } - - @TestMetadata("withPackageName.kt") - public void testWithPackageName() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/withPackageName.kt"); - } - - @TestMetadata("wrongReceiver.kt") - public void testWrongReceiver() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/wrongReceiver.kt"); - } - } - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/primaryParameter") - public static class PrimaryParameter extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("destructuring.kt") - public void testDestructuring() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/primaryParameter/destructuring.kt"); - } - - @TestMetadata("fromCallExpression.kt") - public void testFromCallExpression() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/primaryParameter/fromCallExpression.kt"); - } - - @TestMetadata("fromDefaultValuePositionWithComma.kt") - public void testFromDefaultValuePositionWithComma() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/primaryParameter/fromDefaultValuePositionWithComma.kt"); - } - - @TestMetadata("fromDelegationCall.kt") - public void testFromDelegationCall() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/primaryParameter/fromDelegationCall.kt"); - } - - @TestMetadata("fromEnumConstant.kt") - public void testFromEnumConstant() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/primaryParameter/fromEnumConstant.kt"); - } - - @TestMetadata("fromParameterDefaultValue.kt") - public void testFromParameterDefaultValue() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/primaryParameter/fromParameterDefaultValue.kt"); - } - - @TestMetadata("insideInterface.kt") - public void testInsideInterface() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/primaryParameter/insideInterface.kt"); - } - - @TestMetadata("localValNoReceiver.kt") - public void testLocalValNoReceiver() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/primaryParameter/localValNoReceiver.kt"); - } - - @TestMetadata("memberValNoReceiver.kt") - public void testMemberValNoReceiver() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/primaryParameter/memberValNoReceiver.kt"); - } - - @TestMetadata("memberVarNoReceiver.kt") - public void testMemberVarNoReceiver() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/primaryParameter/memberVarNoReceiver.kt"); - } - - @TestMetadata("objectMemberValNoReceiver.kt") - public void testObjectMemberValNoReceiver() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/primaryParameter/objectMemberValNoReceiver.kt"); - } - - @TestMetadata("thisInClass.kt") - public void testThisInClass() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/primaryParameter/thisInClass.kt"); - } - - @TestMetadata("thisInExtension.kt") - public void testThisInExtension() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/primaryParameter/thisInExtension.kt"); - } - - @TestMetadata("thisInNestedClass1.kt") - public void testThisInNestedClass1() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/primaryParameter/thisInNestedClass1.kt"); - } - - @TestMetadata("thisInNestedClass2.kt") - public void testThisInNestedClass2() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/primaryParameter/thisInNestedClass2.kt"); - } - - @TestMetadata("topLevelValNoReceiver.kt") - public void testTopLevelValNoReceiver() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/primaryParameter/topLevelValNoReceiver.kt"); - } - - @TestMetadata("unresolvedRight.kt") - public void testUnresolvedRight() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/primaryParameter/unresolvedRight.kt"); - } - - @TestMetadata("valInInterfaceFunction.kt") - public void testValInInterfaceFunction() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/primaryParameter/valInInterfaceFunction.kt"); - } - - @TestMetadata("valOnCompanionObject.kt") - public void testValOnCompanionObject() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/primaryParameter/valOnCompanionObject.kt"); - } - - @TestMetadata("valOnLibType.kt") - public void testValOnLibType() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/primaryParameter/valOnLibType.kt"); - } - - @TestMetadata("valOnUserType.kt") - public void testValOnUserType() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/primaryParameter/valOnUserType.kt"); - } - - @TestMetadata("varInInterfaceFunction.kt") - public void testVarInInterfaceFunction() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/primaryParameter/varInInterfaceFunction.kt"); - } - - @TestMetadata("varOnUserType.kt") - public void testVarOnUserType() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/primaryParameter/varOnUserType.kt"); - } - } - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/property") - public abstract static class Property extends AbstractHighLevelQuickFixTest { - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/property/abstract") - public static class Abstract extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("classNoExplicitReceiver.kt") - public void testClassNoExplicitReceiver() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/property/abstract/classNoExplicitReceiver.kt"); - } - - @TestMetadata("explicitReceiverOfContainingClass.kt") - public void testExplicitReceiverOfContainingClass() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/property/abstract/explicitReceiverOfContainingClass.kt"); - } - - @TestMetadata("interfaceNoExplicitReceiver.kt") - public void testInterfaceNoExplicitReceiver() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/property/abstract/interfaceNoExplicitReceiver.kt"); - } - - @TestMetadata("noLateinitInAbstract.kt") - public void testNoLateinitInAbstract() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/property/abstract/noLateinitInAbstract.kt"); - } - - @TestMetadata("notAbstractClass.kt") - public void testNotAbstractClass() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/property/abstract/notAbstractClass.kt"); - } - - @TestMetadata("otherExplicitReceiver.kt") - public void testOtherExplicitReceiver() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/property/abstract/otherExplicitReceiver.kt"); - } - } - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/property/extension") - public static class Extension extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("brokenReceiver.kt") - public void testBrokenReceiver() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/property/extension/brokenReceiver.kt"); - } - - @TestMetadata("extensionOnEnumEntry.kt") - public void testExtensionOnEnumEntry() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/property/extension/extensionOnEnumEntry.kt"); - } - - @TestMetadata("extensionRefInImport.kt") - public void testExtensionRefInImport() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/property/extension/extensionRefInImport.kt"); - } - - @TestMetadata("extensionValOnClassNoClassObject.kt") - public void testExtensionValOnClassNoClassObject() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/property/extension/extensionValOnClassNoClassObject.kt"); - } - - @TestMetadata("extensionValOnClassNoClassObject2.kt") - public void testExtensionValOnClassNoClassObject2() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/property/extension/extensionValOnClassNoClassObject2.kt"); - } - - @TestMetadata("extensionWithTypeParameterAsReceiver.kt") - public void testExtensionWithTypeParameterAsReceiver() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/property/extension/extensionWithTypeParameterAsReceiver.kt"); - } - - @TestMetadata("nullableReceiver.kt") - public void testNullableReceiver() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/property/extension/nullableReceiver.kt"); - } - - @TestMetadata("valOnLibObject.kt") - public void testValOnLibObject() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/property/extension/valOnLibObject.kt"); - } - - @TestMetadata("valOnLibType.kt") - public void testValOnLibType() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/property/extension/valOnLibType.kt"); - } - - @TestMetadata("varOnLibType.kt") - public void testVarOnLibType() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/property/extension/varOnLibType.kt"); - } - } - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/property") - public static class Uncategorized extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("callOnUserType.kt") - public void testCallOnUserType() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/property/callOnUserType.kt"); - } - - @TestMetadata("callableRef.kt") - public void testCallableRef() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/property/callableRef.kt"); - } - - @TestMetadata("fromParameterDefaultValue.kt") - public void testFromParameterDefaultValue() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/property/fromParameterDefaultValue.kt"); - } - - @TestMetadata("inBinaryOperation.kt") - public void testInBinaryOperation() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/property/inBinaryOperation.kt"); - } - - @TestMetadata("inLabelRef.kt") - public void testInLabelRef() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/property/inLabelRef.kt"); - } - - @TestMetadata("inconsistentTypes.kt") - public void testInconsistentTypes() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/property/inconsistentTypes.kt"); - } - - @TestMetadata("localValDelegateRuntime.kt") - public void testLocalValDelegateRuntime() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/property/localValDelegateRuntime.kt"); - } - - @TestMetadata("localValNoReceiver.kt") - public void testLocalValNoReceiver() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/property/localValNoReceiver.kt"); - } - - @TestMetadata("memberValDelegateRuntime.kt") - public void testMemberValDelegateRuntime() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/property/memberValDelegateRuntime.kt"); - } - - @TestMetadata("memberValNoReceiver.kt") - public void testMemberValNoReceiver() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/property/memberValNoReceiver.kt"); - } - - @TestMetadata("memberVarDelegateRuntime.kt") - public void testMemberVarDelegateRuntime() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/property/memberVarDelegateRuntime.kt"); - } - - @TestMetadata("memberWithTypeParameterAsReceiver.kt") - public void testMemberWithTypeParameterAsReceiver() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/property/memberWithTypeParameterAsReceiver.kt"); - } - - @TestMetadata("noLateinitForNullable.kt") - public void testNoLateinitForNullable() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/property/noLateinitForNullable.kt"); - } - - @TestMetadata("noLateinitForPrimitive.kt") - public void testNoLateinitForPrimitive() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/property/noLateinitForPrimitive.kt"); - } - - @TestMetadata("nonAbstractInInterface.kt") - public void testNonAbstractInInterface() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/property/nonAbstractInInterface.kt"); - } - - @TestMetadata("objectMemberValNoReceiver.kt") - public void testObjectMemberValNoReceiver() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/property/objectMemberValNoReceiver.kt"); - } - - @TestMetadata("privateForMembers.kt") - public void testPrivateForMembers() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/property/privateForMembers.kt"); - } - - @TestMetadata("qualifiedRefInStringTemplateRuntime.kt") - public void testQualifiedRefInStringTemplateRuntime() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/property/qualifiedRefInStringTemplateRuntime.kt"); - } - - @TestMetadata("quotedName.kt") - public void testQuotedName() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/property/quotedName.kt"); - } - - @TestMetadata("recursiveBound.kt") - public void testRecursiveBound() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/property/recursiveBound.kt"); - } - - @TestMetadata("refInImport.kt") - public void testRefInImport() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/property/refInImport.kt"); - } - - @TestMetadata("refInStringTemplateRuntime.kt") - public void testRefInStringTemplateRuntime() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/property/refInStringTemplateRuntime.kt"); - } - - @TestMetadata("thisInClass.kt") - public void testThisInClass() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/property/thisInClass.kt"); - } - - @TestMetadata("thisInClassAlreadyExistsAfter.kt") - public void testThisInClassAlreadyExistsAfter() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/property/thisInClassAlreadyExistsAfter.kt"); - } - - @TestMetadata("thisInClassAlreadyExistsAfterAndBefore.kt") - public void testThisInClassAlreadyExistsAfterAndBefore() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/property/thisInClassAlreadyExistsAfterAndBefore.kt"); - } - - @TestMetadata("thisInClassAlreadyExistsBefore.kt") - public void testThisInClassAlreadyExistsBefore() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/property/thisInClassAlreadyExistsBefore.kt"); - } - - @TestMetadata("thisInExtension.kt") - public void testThisInExtension() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/property/thisInExtension.kt"); - } - - @TestMetadata("thisInNestedClass1.kt") - public void testThisInNestedClass1() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/property/thisInNestedClass1.kt"); - } - - @TestMetadata("thisInNestedClass2.kt") - public void testThisInNestedClass2() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/property/thisInNestedClass2.kt"); - } - - @TestMetadata("topLevelPropertyFromAnnotationArg.kt") - public void testTopLevelPropertyFromAnnotationArg() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/property/topLevelPropertyFromAnnotationArg.kt"); - } - - @TestMetadata("topLevelPropertyFromConstructorDefaultParameterValue.kt") - public void testTopLevelPropertyFromConstructorDefaultParameterValue() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/property/topLevelPropertyFromConstructorDefaultParameterValue.kt"); - } - - @TestMetadata("topLevelPropertyFromConstructorDelegation.kt") - public void testTopLevelPropertyFromConstructorDelegation() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/property/topLevelPropertyFromConstructorDelegation.kt"); - } - - @TestMetadata("topLevelPropertyFromDelegate.kt") - public void testTopLevelPropertyFromDelegate() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/property/topLevelPropertyFromDelegate.kt"); - } - - @TestMetadata("topLevelValNoReceiver.kt") - public void testTopLevelValNoReceiver() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/property/topLevelValNoReceiver.kt"); - } - - @TestMetadata("topLevelValNoReceiverAlreadyExistsAfter.kt") - public void testTopLevelValNoReceiverAlreadyExistsAfter() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/property/topLevelValNoReceiverAlreadyExistsAfter.kt"); - } - - @TestMetadata("topLevelValNoReceiverAlreadyExistsBefore.kt") - public void testTopLevelValNoReceiverAlreadyExistsBefore() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/property/topLevelValNoReceiverAlreadyExistsBefore.kt"); - } - - @TestMetadata("topLevelValWithPackageName.kt") - public void testTopLevelValWithPackageName() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/property/topLevelValWithPackageName.kt"); - } - - @TestMetadata("valOnClassNoClassObject.kt") - public void testValOnClassNoClassObject() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/property/valOnClassNoClassObject.kt"); - } - - @TestMetadata("valOnClassNoClassObject2.kt") - public void testValOnClassNoClassObject2() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/property/valOnClassNoClassObject2.kt"); - } - - @TestMetadata("valOnClassObject.kt") - public void testValOnClassObject() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/property/valOnClassObject.kt"); - } - - @TestMetadata("valOnUserObject.kt") - public void testValOnUserObject() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/property/valOnUserObject.kt"); - } - - @TestMetadata("valOnUserType.kt") - public void testValOnUserType() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/property/valOnUserType.kt"); - } - - @TestMetadata("valOnUserTypeWithTypeParams.kt") - public void testValOnUserTypeWithTypeParams() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/property/valOnUserTypeWithTypeParams.kt"); - } - - @TestMetadata("valWithNullableType.kt") - public void testValWithNullableType() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/property/valWithNullableType.kt"); - } - - @TestMetadata("varOnLibType.kt") - public void testVarOnLibType() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/property/varOnLibType.kt"); - } - - @TestMetadata("varOnTypeParameter.kt") - public void testVarOnTypeParameter() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/property/varOnTypeParameter.kt"); - } - - @TestMetadata("varOnUserType.kt") - public void testVarOnUserType() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createVariable/property/varOnUserType.kt"); - } - } - } - } - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call") - public abstract static class Call extends AbstractHighLevelQuickFixTest { - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/abstract") - public static class Abstract extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("classNoExplicitReceiver.kt") - public void testClassNoExplicitReceiver() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/abstract/classNoExplicitReceiver.kt"); - } - - @TestMetadata("companion.kt") - public void testCompanion() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/abstract/companion.kt"); - } - - @TestMetadata("explicitReceiverOfContainingClass.kt") - public void testExplicitReceiverOfContainingClass() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/abstract/explicitReceiverOfContainingClass.kt"); - } - - @TestMetadata("fromDelegate.kt") - public void testFromDelegate() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/abstract/fromDelegate.kt"); - } - - @TestMetadata("fromPrimaryConstructorDefaultValue.kt") - public void testFromPrimaryConstructorDefaultValue() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/abstract/fromPrimaryConstructorDefaultValue.kt"); - } - - @TestMetadata("fromSuperList.kt") - public void testFromSuperList() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/abstract/fromSuperList.kt"); - } - - @TestMetadata("inAbstractSuperclass.kt") - public void testInAbstractSuperclass() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/abstract/inAbstractSuperclass.kt"); - } - - @TestMetadata("inBaseInterface.kt") - public void testInBaseInterface() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/abstract/inBaseInterface.kt"); - } - - @TestMetadata("inBaseInterfaceWithReceiver.kt") - public void testInBaseInterfaceWithReceiver() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/abstract/inBaseInterfaceWithReceiver.kt"); - } - - @TestMetadata("inBaseInterfaceWithReceiver2.kt") - public void testInBaseInterfaceWithReceiver2() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/abstract/inBaseInterfaceWithReceiver2.kt"); - } - - @TestMetadata("interfaceNoExplicitReceiver.kt") - public void testInterfaceNoExplicitReceiver() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/abstract/interfaceNoExplicitReceiver.kt"); - } - - @TestMetadata("noAbstractSuperclass.kt") - public void testNoAbstractSuperclass() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/abstract/noAbstractSuperclass.kt"); - } - - @TestMetadata("notAbstractClass.kt") - public void testNotAbstractClass() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/abstract/notAbstractClass.kt"); - } - - @TestMetadata("notWritableAbstractSuperclass.kt") - public void testNotWritableAbstractSuperclass() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/abstract/notWritableAbstractSuperclass.kt"); - } - - @TestMetadata("otherExplicitReceiver.kt") - public void testOtherExplicitReceiver() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/abstract/otherExplicitReceiver.kt"); - } - } - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/extension") - public static class Extension extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("approximateAnonymousObjectRuntime.kt") - public void testApproximateAnonymousObjectRuntime() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/extension/approximateAnonymousObjectRuntime.kt"); - } - - @TestMetadata("approximateLocalClassRuntime.kt") - public void testApproximateLocalClassRuntime() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/extension/approximateLocalClassRuntime.kt"); - } - - @TestMetadata("brokenPsi.kt") - public void testBrokenPsi() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/extension/brokenPsi.kt"); - } - - @TestMetadata("brokenReceiver.kt") - public void testBrokenReceiver() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/extension/brokenReceiver.kt"); - } - - @TestMetadata("explicitVsImplicitReceiver.kt") - public void testExplicitVsImplicitReceiver() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/extension/explicitVsImplicitReceiver.kt"); - } - - @TestMetadata("extension.kt") - public void testExtension() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/extension/extension.kt"); - } - - @TestMetadata("extensionFunOnClassNoClassObject.kt") - public void testExtensionFunOnClassNoClassObject() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/extension/extensionFunOnClassNoClassObject.kt"); - } - - @TestMetadata("extensionFunOnClassNoClassObject2.kt") - public void testExtensionFunOnClassNoClassObject2() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/extension/extensionFunOnClassNoClassObject2.kt"); - } - - @TestMetadata("extensionFunOnGenericType.kt") - public void testExtensionFunOnGenericType() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/extension/extensionFunOnGenericType.kt"); - } - - @TestMetadata("extensionFunOnInterface.kt") - public void testExtensionFunOnInterface() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/extension/extensionFunOnInterface.kt"); - } - - @TestMetadata("extensionOfInt.kt") - public void testExtensionOfInt() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/extension/extensionOfInt.kt"); - } - - @TestMetadata("extensionPartialSubstitution.kt") - public void testExtensionPartialSubstitution() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/extension/extensionPartialSubstitution.kt"); - } - - @TestMetadata("extensionRefInImport.kt") - public void testExtensionRefInImport() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/extension/extensionRefInImport.kt"); - } - - @TestMetadata("extensionWithReceiverArg.kt") - public void testExtensionWithReceiverArg() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/extension/extensionWithReceiverArg.kt"); - } - - @TestMetadata("extensionWithTypeParameterAsReceiver.kt") - public void testExtensionWithTypeParameterAsReceiver() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/extension/extensionWithTypeParameterAsReceiver.kt"); - } - - @TestMetadata("funOnLibObject.kt") - public void testFunOnLibObject() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/extension/funOnLibObject.kt"); - } - - @TestMetadata("funOnLibType.kt") - public void testFunOnLibType() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/extension/funOnLibType.kt"); - } - - @TestMetadata("functionalTypeInReceiver.kt") - public void testFunctionalTypeInReceiver() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/extension/functionalTypeInReceiver.kt"); - } - - @TestMetadata("nullableReceiver.kt") - public void testNullableReceiver() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/extension/nullableReceiver.kt"); - } - - @TestMetadata("withGenerics.kt") - public void testWithGenerics() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/extension/withGenerics.kt"); - } - } - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/member") - public static class Member extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("brokenPsi2.kt") - public void testBrokenPsi2() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/member/brokenPsi2.kt"); - } - - @TestMetadata("callWithLambdaArg.kt") - public void testCallWithLambdaArg() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/member/callWithLambdaArg.kt"); - } - - @TestMetadata("callWithLambdaArgOnly.kt") - public void testCallWithLambdaArgOnly() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/member/callWithLambdaArgOnly.kt"); - } - - @TestMetadata("doNotStripPrefix.kt") - public void testDoNotStripPrefix() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/member/doNotStripPrefix.kt"); - } - - @TestMetadata("fromExtensionFunction.kt") - public void testFromExtensionFunction() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/member/fromExtensionFunction.kt"); - } - - @TestMetadata("funExtraArgs.kt") - public void testFunExtraArgs() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/member/funExtraArgs.kt"); - } - - @TestMetadata("funMissingArgs.kt") - public void testFunMissingArgs() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/member/funMissingArgs.kt"); - } - - @TestMetadata("funOnClassNoClassObject.kt") - public void testFunOnClassNoClassObject() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/member/funOnClassNoClassObject.kt"); - } - - @TestMetadata("funOnClassNoClassObject2.kt") - public void testFunOnClassNoClassObject2() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/member/funOnClassNoClassObject2.kt"); - } - - @TestMetadata("funOnClassObject.kt") - public void testFunOnClassObject() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/member/funOnClassObject.kt"); - } - - @TestMetadata("funOnEnumClass.kt") - public void testFunOnEnumClass() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/member/funOnEnumClass.kt"); - } - - @TestMetadata("funOnEnumClass2.kt") - public void testFunOnEnumClass2() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/member/funOnEnumClass2.kt"); - } - - @TestMetadata("funOnInterface.kt") - public void testFunOnInterface() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/member/funOnInterface.kt"); - } - - @TestMetadata("funOnUserObject.kt") - public void testFunOnUserObject() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/member/funOnUserObject.kt"); - } - - @TestMetadata("funOnUserType.kt") - public void testFunOnUserType() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/member/funOnUserType.kt"); - } - - @TestMetadata("funOnUserTypeWithDeclarations.kt") - public void testFunOnUserTypeWithDeclarations() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/member/funOnUserTypeWithDeclarations.kt"); - } - - @TestMetadata("funOnUserTypeWithTypeParams.kt") - public void testFunOnUserTypeWithTypeParams() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/member/funOnUserTypeWithTypeParams.kt"); - } - - @TestMetadata("funWithExplicitParamNamesOnUserType.kt") - public void testFunWithExplicitParamNamesOnUserType() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/member/funWithExplicitParamNamesOnUserType.kt"); - } - - @TestMetadata("funWithNullableParamType.kt") - public void testFunWithNullableParamType() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/member/funWithNullableParamType.kt"); - } - - @TestMetadata("funWithNullableType.kt") - public void testFunWithNullableType() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/member/funWithNullableType.kt"); - } - - @TestMetadata("funWithNullableTypeParameter.kt") - public void testFunWithNullableTypeParameter() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/member/funWithNullableTypeParameter.kt"); - } - - @TestMetadata("funWithSameTypesParams.kt") - public void testFunWithSameTypesParams() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/member/funWithSameTypesParams.kt"); - } - - @TestMetadata("implicitThisInLocalClassWithTypeParameterFromExtensionParent.kt") - public void testImplicitThisInLocalClassWithTypeParameterFromExtensionParent() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/member/implicitThisInLocalClassWithTypeParameterFromExtensionParent.kt"); - } - - @TestMetadata("implicitThisInNestedClassWithTypeParameterFromParent.kt") - public void testImplicitThisInNestedClassWithTypeParameterFromParent() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/member/implicitThisInNestedClassWithTypeParameterFromParent.kt"); - } - - @TestMetadata("inconsistentTypes.kt") - public void testInconsistentTypes() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/member/inconsistentTypes.kt"); - } - - @TestMetadata("innerClass.kt") - public void testInnerClass() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/member/innerClass.kt"); - } - - @TestMetadata("propertyOnUserType.kt") - public void testPropertyOnUserType() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/member/propertyOnUserType.kt"); - } - - @TestMetadata("qualifiedCallInStringTemplateRuntime.kt") - public void testQualifiedCallInStringTemplateRuntime() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/member/qualifiedCallInStringTemplateRuntime.kt"); - } - - @TestMetadata("receiverWithSmartCast.kt") - public void testReceiverWithSmartCast() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/member/receiverWithSmartCast.kt"); - } - - @TestMetadata("stripPrefix.kt") - public void testStripPrefix() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/member/stripPrefix.kt"); - } - - @TestMetadata("thisInClass.kt") - public void testThisInClass() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/member/thisInClass.kt"); - } - - @TestMetadata("thisInExtension.kt") - public void testThisInExtension() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/member/thisInExtension.kt"); - } - - @TestMetadata("thisInNestedClass1.kt") - public void testThisInNestedClass1() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/member/thisInNestedClass1.kt"); - } - - @TestMetadata("thisInNestedClass2.kt") - public void testThisInNestedClass2() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/member/thisInNestedClass2.kt"); - } - - @TestMetadata("unknownType.kt") - public void testUnknownType() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/member/unknownType.kt"); - } - - @TestMetadata("unresolvedSupertype.kt") - public void testUnresolvedSupertype() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/member/unresolvedSupertype.kt"); - } - } - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/simple") - public static class Simple extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("argumentTypeMismatch.kt") - public void testArgumentTypeMismatch() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/simple/argumentTypeMismatch.kt"); - } - - @TestMetadata("binaryOperationInCall.kt") - public void testBinaryOperationInCall() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/simple/binaryOperationInCall.kt"); - } - - @TestMetadata("callInAnnotationEntry.kt") - public void testCallInAnnotationEntry() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/simple/callInAnnotationEntry.kt"); - } - - @TestMetadata("callInStringTemplateRuntime.kt") - public void testCallInStringTemplateRuntime() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/simple/callInStringTemplateRuntime.kt"); - } - - @TestMetadata("callWithClassLiteral.kt") - public void testCallWithClassLiteral() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/simple/callWithClassLiteral.kt"); - } - - @TestMetadata("funInInlineInternalFun.kt") - public void testFunInInlineInternalFun() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/simple/funInInlineInternalFun.kt"); - } - - @TestMetadata("funInInlinePrivateFun.kt") - public void testFunInInlinePrivateFun() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/simple/funInInlinePrivateFun.kt"); - } - - @TestMetadata("funInInlineProtectedFun.kt") - public void testFunInInlineProtectedFun() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/simple/funInInlineProtectedFun.kt"); - } - - @TestMetadata("funInInlinePublicFun.kt") - public void testFunInInlinePublicFun() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/simple/funInInlinePublicFun.kt"); - } - - @TestMetadata("funPlacement.kt") - public void testFunPlacement() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/simple/funPlacement.kt"); - } - - @TestMetadata("funWithPackageName.kt") - public void testFunWithPackageName() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/simple/funWithPackageName.kt"); - } - - @TestMetadata("functionalType.kt") - public void testFunctionalType() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/simple/functionalType.kt"); - } - - @TestMetadata("functionalTypeFromCallable.kt") - public void testFunctionalTypeFromCallable() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/simple/functionalTypeFromCallable.kt"); - } - - @TestMetadata("inAnonymousFunBlockWithExpectedType.kt") - public void testInAnonymousFunBlockWithExpectedType() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/simple/inAnonymousFunBlockWithExpectedType.kt"); - } - - @TestMetadata("inAnonymousFunExprWithExpectedType.kt") - public void testInAnonymousFunExprWithExpectedType() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/simple/inAnonymousFunExprWithExpectedType.kt"); - } - - @TestMetadata("inLambda.kt") - public void testInLambda() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/simple/inLambda.kt"); - } - - @TestMetadata("inLambdaWithExpectedType.kt") - public void testInLambdaWithExpectedType() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/simple/inLambdaWithExpectedType.kt"); - } - - @TestMetadata("inLambdaWithExpectedType2.kt") - public void testInLambdaWithExpectedType2() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/simple/inLambdaWithExpectedType2.kt"); - } - - @TestMetadata("inLambdaWithExpectedType3.kt") - public void testInLambdaWithExpectedType3() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/simple/inLambdaWithExpectedType3.kt"); - } - - @TestMetadata("inLambdaWithExpectedType4.kt") - public void testInLambdaWithExpectedType4() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/simple/inLambdaWithExpectedType4.kt"); - } - - @TestMetadata("inLambdaWithExpectedType5.kt") - public void testInLambdaWithExpectedType5() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/simple/inLambdaWithExpectedType5.kt"); - } - - @TestMetadata("insideIfCondition.kt") - public void testInsideIfCondition() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/simple/insideIfCondition.kt"); - } - - @TestMetadata("insideIfConditionWithNegation.kt") - public void testInsideIfConditionWithNegation() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/simple/insideIfConditionWithNegation.kt"); - } - - @TestMetadata("insideWhen.kt") - public void testInsideWhen() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/simple/insideWhen.kt"); - } - - @TestMetadata("kt10983.kt") - public void testKt10983() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/simple/kt10983.kt"); - } - - @TestMetadata("localFunNoReceiver.kt") - public void testLocalFunNoReceiver() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/simple/localFunNoReceiver.kt"); - } - - @TestMetadata("memberFunNoReceiver.kt") - public void testMemberFunNoReceiver() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/simple/memberFunNoReceiver.kt"); - } - - @TestMetadata("memberLocalVarDelegateRuntime.kt") - public void testMemberLocalVarDelegateRuntime() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/simple/memberLocalVarDelegateRuntime.kt"); - } - - @TestMetadata("memberValDelegateRuntime.kt") - public void testMemberValDelegateRuntime() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/simple/memberValDelegateRuntime.kt"); - } - - @TestMetadata("memberVarDelegateRuntime.kt") - public void testMemberVarDelegateRuntime() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/simple/memberVarDelegateRuntime.kt"); - } - - @TestMetadata("noInferCheck.kt") - public void testNoInferCheck() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/simple/noInferCheck.kt"); - } - - @TestMetadata("notExactArgument.kt") - public void testNotExactArgument() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/simple/notExactArgument.kt"); - } - - @TestMetadata("objectMemberFunNoReceiver.kt") - public void testObjectMemberFunNoReceiver() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/simple/objectMemberFunNoReceiver.kt"); - } - - @TestMetadata("privateForMembers.kt") - public void testPrivateForMembers() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/simple/privateForMembers.kt"); - } - - @TestMetadata("refInImport.kt") - public void testRefInImport() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/simple/refInImport.kt"); - } - - @TestMetadata("smartCastWithIs.kt") - public void testSmartCastWithIs() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/simple/smartCastWithIs.kt"); - } - - @TestMetadata("smartCastWithNullCheck.kt") - public void testSmartCastWithNullCheck() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/simple/smartCastWithNullCheck.kt"); - } - - @TestMetadata("topLevelFunFromConstructorDefaultParameterValue.kt") - public void testTopLevelFunFromConstructorDefaultParameterValue() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/simple/topLevelFunFromConstructorDefaultParameterValue.kt"); - } - - @TestMetadata("topLevelFunFromConstructorDelegation.kt") - public void testTopLevelFunFromConstructorDelegation() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/simple/topLevelFunFromConstructorDelegation.kt"); - } - - @TestMetadata("topLevelFunFromDelegate.kt") - public void testTopLevelFunFromDelegate() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/simple/topLevelFunFromDelegate.kt"); - } - - @TestMetadata("topLevelFunNoReceiver.kt") - public void testTopLevelFunNoReceiver() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/simple/topLevelFunNoReceiver.kt"); - } - - @TestMetadata("topLevelFunPlacement.kt") - public void testTopLevelFunPlacement() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/simple/topLevelFunPlacement.kt"); - } - - @TestMetadata("unaryOperationInCall.kt") - public void testUnaryOperationInCall() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/simple/unaryOperationInCall.kt"); - } - - @TestMetadata("unitFun.kt") - public void testUnitFun() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createFromUsage/createFunction/call/simple/unitFun.kt"); - } - } - } - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/createLabel") - public static class CreateLabel extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("breakInLoop.kt") - public void testBreakInLoop() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createLabel/breakInLoop.kt"); - } - - @TestMetadata("breakInOuterLoop.kt") - public void testBreakInOuterLoop() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createLabel/breakInOuterLoop.kt"); - } - - @TestMetadata("breakInlambdaBeforeLoop.kt") - public void testBreakInlambdaBeforeLoop() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createLabel/breakInlambdaBeforeLoop.kt"); - } - - @TestMetadata("breakNoLoop.kt") - public void testBreakNoLoop() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createLabel/breakNoLoop.kt"); - } - - @TestMetadata("continueInLoop.kt") - public void testContinueInLoop() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createLabel/continueInLoop.kt"); - } - - @TestMetadata("continueNoLoop.kt") - public void testContinueNoLoop() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createLabel/continueNoLoop.kt"); - } - - @TestMetadata("returnInLambda.kt") - public void testReturnInLambda() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createLabel/returnInLambda.kt"); - } - - @TestMetadata("returnInOuterLambda.kt") - public void testReturnInOuterLambda() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createLabel/returnInOuterLambda.kt"); - } - - @TestMetadata("returnNoLambda.kt") - public void testReturnNoLambda() throws Exception { - runTest("../../../idea/tests/testData/quickfix/createLabel/returnNoLambda.kt"); - } - } - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/declarationCantBeInlined") - public static class DeclarationCantBeInlined extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("inClass.kt") - public void testInClass() throws Exception { - runTest("../../../idea/tests/testData/quickfix/declarationCantBeInlined/inClass.kt"); - } - - @TestMetadata("inInterface.kt") - public void testInInterface() throws Exception { - runTest("../../../idea/tests/testData/quickfix/declarationCantBeInlined/inInterface.kt"); - } - } - - - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/decreaseVisibility") - public static class DecreaseVisibility extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("exposedConstructorParameterType.kt") - public void testExposedConstructorParameterType() throws Exception { - runTest("../../../idea/tests/testData/quickfix/decreaseVisibility/exposedConstructorParameterType.kt"); - } - - @TestMetadata("exposedConstructorParameterType_privateVal.kt") - public void testExposedConstructorParameterType_privateVal() throws Exception { - runTest("../../../idea/tests/testData/quickfix/decreaseVisibility/exposedConstructorParameterType_privateVal.kt"); - } - - @TestMetadata("exposedConstructorParameterType_val.kt") - public void testExposedConstructorParameterType_val() throws Exception { - runTest("../../../idea/tests/testData/quickfix/decreaseVisibility/exposedConstructorParameterType_val.kt"); - } - - @TestMetadata("exposedParameterType.kt") - public void testExposedParameterType() throws Exception { - runTest("../../../idea/tests/testData/quickfix/decreaseVisibility/exposedParameterType.kt"); - } - - @TestMetadata("exposedParameterType_privateType.kt") - public void testExposedParameterType_privateType() throws Exception { - runTest("../../../idea/tests/testData/quickfix/decreaseVisibility/exposedParameterType_privateType.kt"); - } - - @TestMetadata("exposedPropertyType.kt") - public void testExposedPropertyType() throws Exception { - runTest("../../../idea/tests/testData/quickfix/decreaseVisibility/exposedPropertyType.kt"); - } - - @TestMetadata("exposedReceiverType.kt") - public void testExposedReceiverType() throws Exception { - runTest("../../../idea/tests/testData/quickfix/decreaseVisibility/exposedReceiverType.kt"); - } - - @TestMetadata("exposedReceiverTypeInternal.kt") - public void testExposedReceiverTypeInternal() throws Exception { - runTest("../../../idea/tests/testData/quickfix/decreaseVisibility/exposedReceiverTypeInternal.kt"); - } - - @TestMetadata("exposedReceiverTypePrivate.kt") - public void testExposedReceiverTypePrivate() throws Exception { - runTest("../../../idea/tests/testData/quickfix/decreaseVisibility/exposedReceiverTypePrivate.kt"); - } - - @TestMetadata("exposedReturnType.kt") - public void testExposedReturnType() throws Exception { - runTest("../../../idea/tests/testData/quickfix/decreaseVisibility/exposedReturnType.kt"); - } - - @TestMetadata("exposedSuperClass.kt") - public void testExposedSuperClass() throws Exception { - runTest("../../../idea/tests/testData/quickfix/decreaseVisibility/exposedSuperClass.kt"); - } - - @TestMetadata("exposedSuperClassProtectedBase.kt") - public void testExposedSuperClassProtectedBase() throws Exception { - runTest("../../../idea/tests/testData/quickfix/decreaseVisibility/exposedSuperClassProtectedBase.kt"); - } - - @TestMetadata("exposedSuperClassProtectedInAnother.kt") - public void testExposedSuperClassProtectedInAnother() throws Exception { - runTest("../../../idea/tests/testData/quickfix/decreaseVisibility/exposedSuperClassProtectedInAnother.kt"); - } - - @TestMetadata("exposedSuperInterface.kt") - public void testExposedSuperInterface() throws Exception { - runTest("../../../idea/tests/testData/quickfix/decreaseVisibility/exposedSuperInterface.kt"); - } - - @TestMetadata("exposedSuperInterfacePrivate.kt") - public void testExposedSuperInterfacePrivate() throws Exception { - runTest("../../../idea/tests/testData/quickfix/decreaseVisibility/exposedSuperInterfacePrivate.kt"); - } - - @TestMetadata("exposedTypeInAnnotation.kt") - public void testExposedTypeInAnnotation() throws Exception { - runTest("../../../idea/tests/testData/quickfix/decreaseVisibility/exposedTypeInAnnotation.kt"); - } - - @TestMetadata("exposedTypeParameterBound.kt") - public void testExposedTypeParameterBound() throws Exception { - runTest("../../../idea/tests/testData/quickfix/decreaseVisibility/exposedTypeParameterBound.kt"); - } - - @TestMetadata("exposedTypeParameterBoundNested.kt") - public void testExposedTypeParameterBoundNested() throws Exception { - runTest("../../../idea/tests/testData/quickfix/decreaseVisibility/exposedTypeParameterBoundNested.kt"); - } - } - - - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage") - public abstract static class DeprecatedSymbolUsage extends AbstractHighLevelQuickFixTest { - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/argumentSideEffects") - public static class ArgumentSideEffects extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("callWithAssignment.kt") - public void testCallWithAssignment() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/argumentSideEffects/callWithAssignment.kt"); - } - - @TestMetadata("callWithAssignment1.kt") - public void testCallWithAssignment1() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/argumentSideEffects/callWithAssignment1.kt"); - } - - @TestMetadata("callWithAssignment2.kt") - public void testCallWithAssignment2() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/argumentSideEffects/callWithAssignment2.kt"); - } - - @TestMetadata("callWithAssignment3.kt") - public void testCallWithAssignment3() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/argumentSideEffects/callWithAssignment3.kt"); - } - - @TestMetadata("callWithAssignment4.kt") - public void testCallWithAssignment4() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/argumentSideEffects/callWithAssignment4.kt"); - } - - @TestMetadata("callWithAssignment5.kt") - public void testCallWithAssignment5() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/argumentSideEffects/callWithAssignment5.kt"); - } - - @TestMetadata("complexExpressionNotUsed1.kt") - public void testComplexExpressionNotUsed1() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/argumentSideEffects/complexExpressionNotUsed1.kt"); - } - - @TestMetadata("complexExpressionNotUsed2.kt") - public void testComplexExpressionNotUsed2() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/argumentSideEffects/complexExpressionNotUsed2.kt"); - } - - @TestMetadata("complexExpressionNotUsed3Runtime.kt") - public void testComplexExpressionNotUsed3Runtime() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/argumentSideEffects/complexExpressionNotUsed3Runtime.kt"); - } - - @TestMetadata("complexExpressionNotUsed4Runtime.kt") - public void testComplexExpressionNotUsed4Runtime() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/argumentSideEffects/complexExpressionNotUsed4Runtime.kt"); - } - - @TestMetadata("complexExpressionNotUsed5Runtime.kt") - public void testComplexExpressionNotUsed5Runtime() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/argumentSideEffects/complexExpressionNotUsed5Runtime.kt"); - } - - @TestMetadata("complexExpressionNotUsedSafeCall.kt") - public void testComplexExpressionNotUsedSafeCall() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/argumentSideEffects/complexExpressionNotUsedSafeCall.kt"); - } - - @TestMetadata("complexExpressionNotUsedSafeCall2Runtime.kt") - public void testComplexExpressionNotUsedSafeCall2Runtime() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/argumentSideEffects/complexExpressionNotUsedSafeCall2Runtime.kt"); - } - - @TestMetadata("complexExpressionNotUsedShortenRefsRuntime.kt") - public void testComplexExpressionNotUsedShortenRefsRuntime() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/argumentSideEffects/complexExpressionNotUsedShortenRefsRuntime.kt"); - } - - @TestMetadata("complexExpressionUsedTwice.kt") - public void testComplexExpressionUsedTwice() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/argumentSideEffects/complexExpressionUsedTwice.kt"); - } - - @TestMetadata("complexExpressionUsedTwice2.kt") - public void testComplexExpressionUsedTwice2() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/argumentSideEffects/complexExpressionUsedTwice2.kt"); - } - - @TestMetadata("complexExpressionUsedTwice3Runtime.kt") - public void testComplexExpressionUsedTwice3Runtime() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/argumentSideEffects/complexExpressionUsedTwice3Runtime.kt"); - } - - @TestMetadata("complexExpressionUsedTwice4.kt") - public void testComplexExpressionUsedTwice4() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/argumentSideEffects/complexExpressionUsedTwice4.kt"); - } - - @TestMetadata("complexExpressionUsedTwice5Runtime.kt") - public void testComplexExpressionUsedTwice5Runtime() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/argumentSideEffects/complexExpressionUsedTwice5Runtime.kt"); - } - - @TestMetadata("complexExpressionUsedTwice6Runtime.kt") - public void testComplexExpressionUsedTwice6Runtime() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/argumentSideEffects/complexExpressionUsedTwice6Runtime.kt"); - } - - @TestMetadata("propertyConstantInitializer.kt") - public void testPropertyConstantInitializer() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/argumentSideEffects/propertyConstantInitializer.kt"); - } - - @TestMetadata("propertyInitializer.kt") - public void testPropertyInitializer() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/argumentSideEffects/propertyInitializer.kt"); - } - - @TestMetadata("simpleExpressionNotUsed.kt") - public void testSimpleExpressionNotUsed() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/argumentSideEffects/simpleExpressionNotUsed.kt"); - } - - @TestMetadata("simpleExpressionUsedTwice.kt") - public void testSimpleExpressionUsedTwice() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/argumentSideEffects/simpleExpressionUsedTwice.kt"); - } - - @TestMetadata("stringLiteralUsedTwice.kt") - public void testStringLiteralUsedTwice() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/argumentSideEffects/stringLiteralUsedTwice.kt"); - } - - @TestMetadata("stringTemplateUsedTwice.kt") - public void testStringTemplateUsedTwice() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/argumentSideEffects/stringTemplateUsedTwice.kt"); - } - - @TestMetadata("stringTemplateUsedTwice2.kt") - public void testStringTemplateUsedTwice2() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/argumentSideEffects/stringTemplateUsedTwice2.kt"); - } - - @TestMetadata("withLiteralAndReference.kt") - public void testWithLiteralAndReference() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/argumentSideEffects/withLiteralAndReference.kt"); - } - } - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/classUsages") - public abstract static class ClassUsages extends AbstractHighLevelQuickFixTest { - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/classUsages") - public static class Uncategorized extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("annotation1.kt") - public void testAnnotation1() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/classUsages/annotation1.kt"); - } - - @TestMetadata("annotation2.kt") - public void testAnnotation2() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/classUsages/annotation2.kt"); - } - - @TestMetadata("annotation3.kt") - public void testAnnotation3() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/classUsages/annotation3.kt"); - } - - @TestMetadata("annotation4.kt") - public void testAnnotation4() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/classUsages/annotation4.kt"); - } - - @TestMetadata("annotationKeepNamedArgs.kt") - public void testAnnotationKeepNamedArgs() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/classUsages/annotationKeepNamedArgs.kt"); - } - - @TestMetadata("annotationWithFileUseSiteTarget1.kt") - public void testAnnotationWithFileUseSiteTarget1() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/classUsages/annotationWithFileUseSiteTarget1.kt"); - } - - @TestMetadata("annotationWithFileUseSiteTarget2.kt") - public void testAnnotationWithFileUseSiteTarget2() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/classUsages/annotationWithFileUseSiteTarget2.kt"); - } - - @TestMetadata("annotationWithFileUseSiteTarget3.kt") - public void testAnnotationWithFileUseSiteTarget3() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/classUsages/annotationWithFileUseSiteTarget3.kt"); - } - - @TestMetadata("annotationWithGetUseSiteTarget1.kt") - public void testAnnotationWithGetUseSiteTarget1() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/classUsages/annotationWithGetUseSiteTarget1.kt"); - } - - @TestMetadata("annotationWithGetUseSiteTarget2.kt") - public void testAnnotationWithGetUseSiteTarget2() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/classUsages/annotationWithGetUseSiteTarget2.kt"); - } - - @TestMetadata("annotationWithGetUseSiteTarget3.kt") - public void testAnnotationWithGetUseSiteTarget3() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/classUsages/annotationWithGetUseSiteTarget3.kt"); - } - - @TestMetadata("constructorUsage1.kt") - public void testConstructorUsage1() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/classUsages/constructorUsage1.kt"); - } - - @TestMetadata("constructorUsage2.kt") - public void testConstructorUsage2() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/classUsages/constructorUsage2.kt"); - } - - @TestMetadata("constructorUsage3.kt") - public void testConstructorUsage3() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/classUsages/constructorUsage3.kt"); - } - - @TestMetadata("constructorUsage4.kt") - public void testConstructorUsage4() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/classUsages/constructorUsage4.kt"); - } - - @TestMetadata("constructorUsage5.kt") - public void testConstructorUsage5() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/classUsages/constructorUsage5.kt"); - } - - @TestMetadata("constructorUsage6.kt") - public void testConstructorUsage6() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/classUsages/constructorUsage6.kt"); - } - - @TestMetadata("constructorUsage7.kt") - public void testConstructorUsage7() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/classUsages/constructorUsage7.kt"); - } - - @TestMetadata("constructorUsageWithTypeArgument.kt") - public void testConstructorUsageWithTypeArgument() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/classUsages/constructorUsageWithTypeArgument.kt"); - } - - @TestMetadata("constructorUsageWithTypeArgument2.kt") - public void testConstructorUsageWithTypeArgument2() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/classUsages/constructorUsageWithTypeArgument2.kt"); - } - - @TestMetadata("constructorUsageWithTypeArgument3.kt") - public void testConstructorUsageWithTypeArgument3() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/classUsages/constructorUsageWithTypeArgument3.kt"); - } - - @TestMetadata("constructorUsageWithTypeArgument4.kt") - public void testConstructorUsageWithTypeArgument4() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/classUsages/constructorUsageWithTypeArgument4.kt"); - } - - @TestMetadata("constructorUsageWithTypeArgument5.kt") - public void testConstructorUsageWithTypeArgument5() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/classUsages/constructorUsageWithTypeArgument5.kt"); - } - - @TestMetadata("constructorUsageWithTypeArgument6.kt") - public void testConstructorUsageWithTypeArgument6() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/classUsages/constructorUsageWithTypeArgument6.kt"); - } - - @TestMetadata("constructorUsageWithTypeArgument7.kt") - public void testConstructorUsageWithTypeArgument7() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/classUsages/constructorUsageWithTypeArgument7.kt"); - } - - @TestMetadata("constructorUsageWithTypeArgumentWithoutSpecifyType.kt") - public void testConstructorUsageWithTypeArgumentWithoutSpecifyType() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/classUsages/constructorUsageWithTypeArgumentWithoutSpecifyType.kt"); - } - - @TestMetadata("imports.kt") - public void testImports() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/classUsages/imports.kt"); - } - - @TestMetadata("inAliasSimple.kt") - public void testInAliasSimple() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/classUsages/inAliasSimple.kt"); - } - - @TestMetadata("inAliasWithOwnReplaceForConstructorForAliasArguments.kt") - public void testInAliasWithOwnReplaceForConstructorForAliasArguments() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/classUsages/inAliasWithOwnReplaceForConstructorForAliasArguments.kt"); - } - - @TestMetadata("inAliasWithOwnReplaceForConstructorUnused.kt") - public void testInAliasWithOwnReplaceForConstructorUnused() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/classUsages/inAliasWithOwnReplaceForConstructorUnused.kt"); - } - - @TestMetadata("inAliasWithOwnReplaceForConstructorUsed.kt") - public void testInAliasWithOwnReplaceForConstructorUsed() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/classUsages/inAliasWithOwnReplaceForConstructorUsed.kt"); - } - - @TestMetadata("inAliasWithOwnReplaceForSecondaryConstructorUnused.kt") - public void testInAliasWithOwnReplaceForSecondaryConstructorUnused() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/classUsages/inAliasWithOwnReplaceForSecondaryConstructorUnused.kt"); - } - - @TestMetadata("inAliasWithOwnReplaceForSecondaryConstructorUsed.kt") - public void testInAliasWithOwnReplaceForSecondaryConstructorUsed() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/classUsages/inAliasWithOwnReplaceForSecondaryConstructorUsed.kt"); - } - - @TestMetadata("inTypeArgument.kt") - public void testInTypeArgument() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/classUsages/inTypeArgument.kt"); - } - - @TestMetadata("innerType.kt") - public void testInnerType() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/classUsages/innerType.kt"); - } - - @TestMetadata("lambdaReplacement.kt") - public void testLambdaReplacement() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/classUsages/lambdaReplacement.kt"); - } - - @TestMetadata("nestedClassToNestedClass.kt") - public void testNestedClassToNestedClass() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/classUsages/nestedClassToNestedClass.kt"); - } - - @TestMetadata("noAnnotationConstructorUsage.kt") - public void testNoAnnotationConstructorUsage() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/classUsages/noAnnotationConstructorUsage.kt"); - } - - @TestMetadata("noMatchTypeArgument.kt") - public void testNoMatchTypeArgument() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/classUsages/noMatchTypeArgument.kt"); - } - - @TestMetadata("noMatchTypeArgument2.kt") - public void testNoMatchTypeArgument2() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/classUsages/noMatchTypeArgument2.kt"); - } - - @TestMetadata("qualifiedClassName.kt") - public void testQualifiedClassName() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/classUsages/qualifiedClassName.kt"); - } - - @TestMetadata("qualifiedClassNameInPattern.kt") - public void testQualifiedClassNameInPattern() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/classUsages/qualifiedClassNameInPattern.kt"); - } - - @TestMetadata("secondaryConstructor.kt") - public void testSecondaryConstructor() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/classUsages/secondaryConstructor.kt"); - } - - @TestMetadata("simple.kt") - public void testSimple() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/classUsages/simple.kt"); - } - } - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/classUsages/wholeProject") - public static class WholeProject extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("inheritance.kt") - public void testInheritance() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/classUsages/wholeProject/inheritance.kt"); - } - } - } - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/functionLiteralArguments") - public abstract static class FunctionLiteralArguments extends AbstractHighLevelQuickFixTest { - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/functionLiteralArguments") - public static class Uncategorized extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("cannotKeepOutside.kt") - public void testCannotKeepOutside() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/functionLiteralArguments/cannotKeepOutside.kt"); - } - - @TestMetadata("keepInside.kt") - public void testKeepInside() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/functionLiteralArguments/keepInside.kt"); - } - - @TestMetadata("keepOutside.kt") - public void testKeepOutside() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/functionLiteralArguments/keepOutside.kt"); - } - - @TestMetadata("keepOutsideWithGeneric.kt") - public void testKeepOutsideWithGeneric() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/functionLiteralArguments/keepOutsideWithGeneric.kt"); - } - - @TestMetadata("keepOutsideWithNamedArgument.kt") - public void testKeepOutsideWithNamedArgument() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/functionLiteralArguments/keepOutsideWithNamedArgument.kt"); - } - - @TestMetadata("suspendBlock.kt") - public void testSuspendBlock() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/functionLiteralArguments/suspendBlock.kt"); - } - - @TestMetadata("suspendBlockImplicitInvoke.kt") - public void testSuspendBlockImplicitInvoke() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/functionLiteralArguments/suspendBlockImplicitInvoke.kt"); - } - } - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/functionLiteralArguments/wholeProject") - public static class WholeProject extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("explicitLambdaParameter.kt") - public void testExplicitLambdaParameter() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/functionLiteralArguments/wholeProject/explicitLambdaParameter.kt"); - } - - @TestMetadata("explicitLambdaParameterWithoutType.kt") - public void testExplicitLambdaParameterWithoutType() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/functionLiteralArguments/wholeProject/explicitLambdaParameterWithoutType.kt"); - } - - @TestMetadata("implicitLambdaParameter.kt") - public void testImplicitLambdaParameter() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/functionLiteralArguments/wholeProject/implicitLambdaParameter.kt"); - } - - @TestMetadata("implicitLambdaParameterWithPlatformType.kt") - public void testImplicitLambdaParameterWithPlatformType() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/functionLiteralArguments/wholeProject/implicitLambdaParameterWithPlatformType.kt"); - } - } - } - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/keepComments") - public static class KeepComments extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("addArguments.kt") - public void testAddArguments() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/keepComments/addArguments.kt"); - } - - @TestMetadata("commentBeforeArgument.kt") - public void testCommentBeforeArgument() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/keepComments/commentBeforeArgument.kt"); - } - - @TestMetadata("dropArgument.kt") - public void testDropArgument() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/keepComments/dropArgument.kt"); - } - - @TestMetadata("multipleArguments.kt") - public void testMultipleArguments() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/keepComments/multipleArguments.kt"); - } - - @TestMetadata("simple.kt") - public void testSimple() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/keepComments/simple.kt"); - } - - @TestMetadata("usedTwice.kt") - public void testUsedTwice() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/keepComments/usedTwice.kt"); - } - - @TestMetadata("variableForArgument.kt") - public void testVariableForArgument() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/keepComments/variableForArgument.kt"); - } - } - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/keepLineBreaks") - public static class KeepLineBreaks extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("addArgument.kt") - public void testAddArgument() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/keepLineBreaks/addArgument.kt"); - } - - @TestMetadata("lineBreakAfterReceiverRuntime.kt") - public void testLineBreakAfterReceiverRuntime() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/keepLineBreaks/lineBreakAfterReceiverRuntime.kt"); - } - - @TestMetadata("simple.kt") - public void testSimple() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/keepLineBreaks/simple.kt"); - } - } - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/operatorCalls") - public static class OperatorCalls extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("get.kt") - public void testGet() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/operatorCalls/get.kt"); - } - - @TestMetadata("implicitInvoke.kt") - public void testImplicitInvoke() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/operatorCalls/implicitInvoke.kt"); - } - - @TestMetadata("in.kt") - public void testIn() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/operatorCalls/in.kt"); - } - - @TestMetadata("invoke.kt") - public void testInvoke() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/operatorCalls/invoke.kt"); - } - - @TestMetadata("invoke2.kt") - public void testInvoke2() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/operatorCalls/invoke2.kt"); - } - - @TestMetadata("invoke3.kt") - public void testInvoke3() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/operatorCalls/invoke3.kt"); - } - - @TestMetadata("invoke4.kt") - public void testInvoke4() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/operatorCalls/invoke4.kt"); - } - - @TestMetadata("plusAssign.kt") - public void testPlusAssign() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/operatorCalls/plusAssign.kt"); - } - - @TestMetadata("set.kt") - public void testSet() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/operatorCalls/set.kt"); - } - - @TestMetadata("unaryPlus.kt") - public void testUnaryPlus() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/operatorCalls/unaryPlus.kt"); - } - } - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/optionalParameters") - public static class OptionalParameters extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("dropAll.kt") - public void testDropAll() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/optionalParameters/dropAll.kt"); - } - - @TestMetadata("functionalLiteralArgument.kt") - public void testFunctionalLiteralArgument() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/optionalParameters/functionalLiteralArgument.kt"); - } - - @TestMetadata("namedArgument.kt") - public void testNamedArgument() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/optionalParameters/namedArgument.kt"); - } - - @TestMetadata("optionalParameterAndLambda.kt") - public void testOptionalParameterAndLambda() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/optionalParameters/optionalParameterAndLambda.kt"); - } - - @TestMetadata("optionalParameterAndLambdaComplex.kt") - public void testOptionalParameterAndLambdaComplex() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/optionalParameters/optionalParameterAndLambdaComplex.kt"); - } - - @TestMetadata("optionalParameters1.kt") - public void testOptionalParameters1() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/optionalParameters/optionalParameters1.kt"); - } - - @TestMetadata("optionalParameters2.kt") - public void testOptionalParameters2() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/optionalParameters/optionalParameters2.kt"); - } - - @TestMetadata("optionalParameters3.kt") - public void testOptionalParameters3() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/optionalParameters/optionalParameters3.kt"); - } - - @TestMetadata("optionalParameters4.kt") - public void testOptionalParameters4() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/optionalParameters/optionalParameters4.kt"); - } - - @TestMetadata("optionalParameters5.kt") - public void testOptionalParameters5() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/optionalParameters/optionalParameters5.kt"); - } - - @TestMetadata("optionalParameters7.kt") - public void testOptionalParameters7() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/optionalParameters/optionalParameters7.kt"); - } - - @TestMetadata("optionalParameters9.kt") - public void testOptionalParameters9() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/optionalParameters/optionalParameters9.kt"); - } - - @TestMetadata("overridingMethod.kt") - public void testOverridingMethod() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/optionalParameters/overridingMethod.kt"); - } - } - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/properties") - public static class Properties extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("callInAssignmentToProperty.kt") - public void testCallInAssignmentToProperty() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/properties/callInAssignmentToProperty.kt"); - } - - @TestMetadata("callToCustomProperty.kt") - public void testCallToCustomProperty() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/properties/callToCustomProperty.kt"); - } - - @TestMetadata("callToProperty.kt") - public void testCallToProperty() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/properties/callToProperty.kt"); - } - - @TestMetadata("extensionPropertyToProperty.kt") - public void testExtensionPropertyToProperty() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/properties/extensionPropertyToProperty.kt"); - } - - @TestMetadata("extensionPropertyWriteToProperty.kt") - public void testExtensionPropertyWriteToProperty() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/properties/extensionPropertyWriteToProperty.kt"); - } - } - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/publishedApi") - public static class PublishedApi extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("existingStub.kt") - public void testExistingStub() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/publishedApi/existingStub.kt"); - } - - @TestMetadata("existingStubForVar.kt") - public void testExistingStubForVar() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/publishedApi/existingStubForVar.kt"); - } - - @TestMetadata("extension.kt") - public void testExtension() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/publishedApi/extension.kt"); - } - - @TestMetadata("extensionVar.kt") - public void testExtensionVar() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/publishedApi/extensionVar.kt"); - } - - @TestMetadata("generic.kt") - public void testGeneric() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/publishedApi/generic.kt"); - } - - @TestMetadata("genericDerived.kt") - public void testGenericDerived() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/publishedApi/genericDerived.kt"); - } - - @TestMetadata("genericFunction.kt") - public void testGenericFunction() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/publishedApi/genericFunction.kt"); - } - - @TestMetadata("infix.kt") - public void testInfix() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/publishedApi/infix.kt"); - } - - @TestMetadata("simple.kt") - public void testSimple() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/publishedApi/simple.kt"); - } - - @TestMetadata("simpleVal.kt") - public void testSimpleVal() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/publishedApi/simpleVal.kt"); - } - - @TestMetadata("simpleVar.kt") - public void testSimpleVar() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/publishedApi/simpleVar.kt"); - } - } - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/safeCall") - public static class SafeCall extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("changeThisSafeCall.kt") - public void testChangeThisSafeCall() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/safeCall/changeThisSafeCall.kt"); - } - - @TestMetadata("changeThisSafeCallWithValue1Runtime.kt") - public void testChangeThisSafeCallWithValue1Runtime() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/safeCall/changeThisSafeCallWithValue1Runtime.kt"); - } - - @TestMetadata("changeThisSafeCallWithValue2Runtime.kt") - public void testChangeThisSafeCallWithValue2Runtime() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/safeCall/changeThisSafeCallWithValue2Runtime.kt"); - } - - @TestMetadata("changeThisSafeCallWithValue3Runtime.kt") - public void testChangeThisSafeCallWithValue3Runtime() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/safeCall/changeThisSafeCallWithValue3Runtime.kt"); - } - - @TestMetadata("changeThisSafeCallWithValue4Runtime.kt") - public void testChangeThisSafeCallWithValue4Runtime() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/safeCall/changeThisSafeCallWithValue4Runtime.kt"); - } - - @TestMetadata("changeThisSafeCallWithValueRuntime.kt") - public void testChangeThisSafeCallWithValueRuntime() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/safeCall/changeThisSafeCallWithValueRuntime.kt"); - } - - @TestMetadata("dropReceiverSafeCall.kt") - public void testDropReceiverSafeCall() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/safeCall/dropReceiverSafeCall.kt"); - } - - @TestMetadata("safeCall.kt") - public void testSafeCall() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/safeCall/safeCall.kt"); - } - } - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/typeAliases") - public static class TypeAliases extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("companionObjectAliased.kt") - public void testCompanionObjectAliased() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/typeAliases/companionObjectAliased.kt"); - } - - @TestMetadata("compoundWithDeprecatedArgumentsAndConstructor.kt") - public void testCompoundWithDeprecatedArgumentsAndConstructor() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/typeAliases/compoundWithDeprecatedArgumentsAndConstructor.kt"); - } - - @TestMetadata("conflictOnTypeAndAlias.kt") - public void testConflictOnTypeAndAlias() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/typeAliases/conflictOnTypeAndAlias.kt"); - } - - @TestMetadata("constructorUsage.kt") - public void testConstructorUsage() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/typeAliases/constructorUsage.kt"); - } - - @TestMetadata("constructorUsageWithConflict.kt") - public void testConstructorUsageWithConflict() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/typeAliases/constructorUsageWithConflict.kt"); - } - - @TestMetadata("constructorUsageWithConflict1.kt") - public void testConstructorUsageWithConflict1() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/typeAliases/constructorUsageWithConflict1.kt"); - } - - @TestMetadata("objectAliased.kt") - public void testObjectAliased() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/typeAliases/objectAliased.kt"); - } - - @TestMetadata("objectAliasedWithPropertyReference.kt") - public void testObjectAliasedWithPropertyReference() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/typeAliases/objectAliasedWithPropertyReference.kt"); - } - - @TestMetadata("onlyAliasDeprecated.kt") - public void testOnlyAliasDeprecated() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/typeAliases/onlyAliasDeprecated.kt"); - } - - @TestMetadata("stdlibAliased.kt") - public void testStdlibAliased() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/typeAliases/stdlibAliased.kt"); - } - - @TestMetadata("transitiveFromClass.kt") - public void testTransitiveFromClass() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/typeAliases/transitiveFromClass.kt"); - } - - @TestMetadata("transitiveLong.kt") - public void testTransitiveLong() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/typeAliases/transitiveLong.kt"); - } - - @TestMetadata("typeAliasWithAllGenericParams.kt") - public void testTypeAliasWithAllGenericParams() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/typeAliases/typeAliasWithAllGenericParams.kt"); - } - - @TestMetadata("withTypeArgument.kt") - public void testWithTypeArgument() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/typeAliases/withTypeArgument.kt"); - } - } - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/typeArguments") - public abstract static class TypeArguments extends AbstractHighLevelQuickFixTest { - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/typeArguments") - public static class Uncategorized extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("classConstructor.kt") - public void testClassConstructor() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/typeArguments/classConstructor.kt"); - } - - @TestMetadata("classLiteral.kt") - public void testClassLiteral() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/typeArguments/classLiteral.kt"); - } - - @TestMetadata("classLiteral2.kt") - public void testClassLiteral2() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/typeArguments/classLiteral2.kt"); - } - - @TestMetadata("emptyVarargRuntime.kt") - public void testEmptyVarargRuntime() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/typeArguments/emptyVarargRuntime.kt"); - } - - @TestMetadata("explicitInPatternImplicitInUsage.kt") - public void testExplicitInPatternImplicitInUsage() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/typeArguments/explicitInPatternImplicitInUsage.kt"); - } - - @TestMetadata("explicitTypeArg.kt") - public void testExplicitTypeArg() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/typeArguments/explicitTypeArg.kt"); - } - - @TestMetadata("explicitTypeArg2.kt") - public void testExplicitTypeArg2() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/typeArguments/explicitTypeArg2.kt"); - } - - @TestMetadata("functionReference.kt") - public void testFunctionReference() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/typeArguments/functionReference.kt"); - } - - @TestMetadata("functionReference2.kt") - public void testFunctionReference2() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/typeArguments/functionReference2.kt"); - } - - @TestMetadata("functionReference3.kt") - public void testFunctionReference3() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/typeArguments/functionReference3.kt"); - } - - @TestMetadata("functionReference4.kt") - public void testFunctionReference4() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/typeArguments/functionReference4.kt"); - } - - @TestMetadata("functionReference5.kt") - public void testFunctionReference5() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/typeArguments/functionReference5.kt"); - } - - @TestMetadata("implicitToExplicit.kt") - public void testImplicitToExplicit() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/typeArguments/implicitToExplicit.kt"); - } - - @TestMetadata("keepInUserCodeRuntime.kt") - public void testKeepInUserCodeRuntime() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/typeArguments/keepInUserCodeRuntime.kt"); - } - - @TestMetadata("keepOriginalIfQualified.kt") - public void testKeepOriginalIfQualified() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/typeArguments/keepOriginalIfQualified.kt"); - } - - @TestMetadata("kt36225.kt") - public void testKt36225() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/typeArguments/kt36225.kt"); - } - - @TestMetadata("ktij-14750.kt") - public void testKtij_14750() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/typeArguments/ktij-14750.kt"); - } - - @TestMetadata("noImplicitTypeArgImportRuntime.kt") - public void testNoImplicitTypeArgImportRuntime() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/typeArguments/noImplicitTypeArgImportRuntime.kt"); - } - - @TestMetadata("noImplicitTypeArgInClassWithTypeParam.kt") - public void testNoImplicitTypeArgInClassWithTypeParam() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/typeArguments/noImplicitTypeArgInClassWithTypeParam.kt"); - } - - @TestMetadata("noImplicitTypeArgInFunWithTypeParam.kt") - public void testNoImplicitTypeArgInFunWithTypeParam() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/typeArguments/noImplicitTypeArgInFunWithTypeParam.kt"); - } - - @TestMetadata("nonEmptyVarargRuntime.kt") - public void testNonEmptyVarargRuntime() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/typeArguments/nonEmptyVarargRuntime.kt"); - } - - @TestMetadata("propertyReference.kt") - public void testPropertyReference() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/typeArguments/propertyReference.kt"); - } - - @TestMetadata("propertyReference2.kt") - public void testPropertyReference2() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/typeArguments/propertyReference2.kt"); - } - - @TestMetadata("propertyReference3.kt") - public void testPropertyReference3() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/typeArguments/propertyReference3.kt"); - } - - @TestMetadata("typeReference.kt") - public void testTypeReference() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/typeArguments/typeReference.kt"); - } - } - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/typeArguments/wholeProject") - public static class WholeProject extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("classConstructor.kt") - public void testClassConstructor() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/typeArguments/wholeProject/classConstructor.kt"); - } - } - } - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage") - public static class Uncategorized extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("addImplicitReceiverNested.kt") - public void testAddImplicitReceiverNested() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/addImplicitReceiverNested.kt"); - } - - @TestMetadata("ambiguousCall.kt") - public void testAmbiguousCall() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/ambiguousCall.kt"); - } - - @TestMetadata("annotationWithErrorReplacement.kt") - public void testAnnotationWithErrorReplacement() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/annotationWithErrorReplacement.kt"); - } - - @TestMetadata("avoidCastingContext.kt") - public void testAvoidCastingContext() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/avoidCastingContext.kt"); - } - - @TestMetadata("callChainBug.kt") - public void testCallChainBug() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/callChainBug.kt"); - } - - @TestMetadata("callWithError.kt") - public void testCallWithError() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/callWithError.kt"); - } - - @TestMetadata("changeThis1.kt") - public void testChangeThis1() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/changeThis1.kt"); - } - - @TestMetadata("changeThis2.kt") - public void testChangeThis2() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/changeThis2.kt"); - } - - @TestMetadata("changeThisToOuterThis.kt") - public void testChangeThisToOuterThis() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/changeThisToOuterThis.kt"); - } - - @TestMetadata("classLiteralAndTypeArgsRuntime.kt") - public void testClassLiteralAndTypeArgsRuntime() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/classLiteralAndTypeArgsRuntime.kt"); - } - - @TestMetadata("deprecatedSinceKotlinAndReplaceWith.kt") - public void testDeprecatedSinceKotlinAndReplaceWith() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/deprecatedSinceKotlinAndReplaceWith.kt"); - } - - @TestMetadata("deprecationLevel.kt") - public void testDeprecationLevel() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/deprecationLevel.kt"); - } - - @TestMetadata("doNotShortenUserReferences.kt") - public void testDoNotShortenUserReferences() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/doNotShortenUserReferences.kt"); - } - - @TestMetadata("doNotShortenUsersExplicitThis.kt") - public void testDoNotShortenUsersExplicitThis() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/doNotShortenUsersExplicitThis.kt"); - } - - @TestMetadata("dropReceiver.kt") - public void testDropReceiver() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/dropReceiver.kt"); - } - - @TestMetadata("enum.kt") - public void testEnum() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/enum.kt"); - } - - @TestMetadata("extensionForGenericClass.kt") - public void testExtensionForGenericClass() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/extensionForGenericClass.kt"); - } - - @TestMetadata("extensionFunCallInLambdaWithReceiver.kt") - public void testExtensionFunCallInLambdaWithReceiver() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/extensionFunCallInLambdaWithReceiver.kt"); - } - - @TestMetadata("extensionReceiverWithVarianceType.kt") - public void testExtensionReceiverWithVarianceType() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/extensionReceiverWithVarianceType.kt"); - } - - @TestMetadata("implicitCompanionObjectThis.kt") - public void testImplicitCompanionObjectThis() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/implicitCompanionObjectThis.kt"); - } - - @TestMetadata("implicitQualifiedThisRuntime.kt") - public void testImplicitQualifiedThisRuntime() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/implicitQualifiedThisRuntime.kt"); - } - - @TestMetadata("importedObjectFunction.kt") - public void testImportedObjectFunction() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/importedObjectFunction.kt"); - } - - @TestMetadata("importedObjectFunctionAddReceiver.kt") - public void testImportedObjectFunctionAddReceiver() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/importedObjectFunctionAddReceiver.kt"); - } - - @TestMetadata("importedObjectProperty.kt") - public void testImportedObjectProperty() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/importedObjectProperty.kt"); - } - - @TestMetadata("incorrectArgs.kt") - public void testIncorrectArgs() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/incorrectArgs.kt"); - } - - @TestMetadata("incorrectReplacement.kt") - public void testIncorrectReplacement() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/incorrectReplacement.kt"); - } - - @TestMetadata("infixCall.kt") - public void testInfixCall() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/infixCall.kt"); - } - - @TestMetadata("infixCallToNonInfixCall.kt") - public void testInfixCallToNonInfixCall() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/infixCallToNonInfixCall.kt"); - } - - @TestMetadata("keepArgumentNamed.kt") - public void testKeepArgumentNamed() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/keepArgumentNamed.kt"); - } - - @TestMetadata("keepInfixCall.kt") - public void testKeepInfixCall() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/keepInfixCall.kt"); - } - - @TestMetadata("kt35015.kt") - public void testKt35015() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/kt35015.kt"); - } - - @TestMetadata("localFun.kt") - public void testLocalFun() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/localFun.kt"); - } - - @TestMetadata("mailformedExpression.kt") - public void testMailformedExpression() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/mailformedExpression.kt"); - } - - @TestMetadata("memberFunction.kt") - public void testMemberFunction() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/memberFunction.kt"); - } - - @TestMetadata("memberFunctionImplicitReceiver.kt") - public void testMemberFunctionImplicitReceiver() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/memberFunctionImplicitReceiver.kt"); - } - - @TestMetadata("memberFunctionInGenericClass.kt") - public void testMemberFunctionInGenericClass() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/memberFunctionInGenericClass.kt"); - } - - @TestMetadata("methodToProperty.kt") - public void testMethodToProperty() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/methodToProperty.kt"); - } - - @TestMetadata("noReplacement.kt") - public void testNoReplacement() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/noReplacement.kt"); - } - - @TestMetadata("objects.kt") - public void testObjects() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/objects.kt"); - } - - @TestMetadata("objectsInQualified.kt") - public void testObjectsInQualified() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/objectsInQualified.kt"); - } - - @TestMetadata("operatorCall.kt") - public void testOperatorCall() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/operatorCall.kt"); - } - - @TestMetadata("operatorCall2.kt") - public void testOperatorCall2() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/operatorCall2.kt"); - } - - @TestMetadata("parameters.kt") - public void testParameters() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/parameters.kt"); - } - - @TestMetadata("propertyAssignment.kt") - public void testPropertyAssignment() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/propertyAssignment.kt"); - } - - @TestMetadata("propertyAssignmentDefaultSetter.kt") - public void testPropertyAssignmentDefaultSetter() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/propertyAssignmentDefaultSetter.kt"); - } - - @TestMetadata("propertyAssignmentNoReceiver.kt") - public void testPropertyAssignmentNoReceiver() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/propertyAssignmentNoReceiver.kt"); - } - - @TestMetadata("propertyAssignmentNoSetter.kt") - public void testPropertyAssignmentNoSetter() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/propertyAssignmentNoSetter.kt"); - } - - @TestMetadata("propertyModification.kt") - public void testPropertyModification() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/propertyModification.kt"); - } - - @TestMetadata("propertyToMethod.kt") - public void testPropertyToMethod() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/propertyToMethod.kt"); - } - - @TestMetadata("propertyToSyntheticExtension.kt") - public void testPropertyToSyntheticExtension() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/propertyToSyntheticExtension.kt"); - } - - @TestMetadata("qualifiedReference.kt") - public void testQualifiedReference() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/qualifiedReference.kt"); - } - - @TestMetadata("replaceCallWithArgument.kt") - public void testReplaceCallWithArgument() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/replaceCallWithArgument.kt"); - } - - @TestMetadata("replaceCallWithReceiver.kt") - public void testReplaceCallWithReceiver() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/replaceCallWithReceiver.kt"); - } - - @TestMetadata("shortenReferences.kt") - public void testShortenReferences() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/shortenReferences.kt"); - } - - @TestMetadata("simple.kt") - public void testSimple() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/simple.kt"); - } - - @TestMetadata("stringTemplate.kt") - public void testStringTemplate() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/stringTemplate.kt"); - } - - @TestMetadata("suspendLambda.kt") - public void testSuspendLambda() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/suspendLambda.kt"); - } - - @TestMetadata("toOuterClassMethod.kt") - public void testToOuterClassMethod() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/toOuterClassMethod.kt"); - } - - @TestMetadata("twoValuesCombined.kt") - public void testTwoValuesCombined() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/twoValuesCombined.kt"); - } - - @TestMetadata("usageInDerivedClass.kt") - public void testUsageInDerivedClass() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/usageInDerivedClass.kt"); - } - - @TestMetadata("usageInDerivedClassGeneric.kt") - public void testUsageInDerivedClassGeneric() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/usageInDerivedClassGeneric.kt"); - } - - @TestMetadata("withInnerFunction.kt") - public void testWithInnerFunction() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/withInnerFunction.kt"); - } - } - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/vararg") - public static class Vararg extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("addedNamedArgumentAfterRuntime.kt") - public void testAddedNamedArgumentAfterRuntime() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/vararg/addedNamedArgumentAfterRuntime.kt"); - } - - @TestMetadata("addedPositionalArgumentAfterRuntime.kt") - public void testAddedPositionalArgumentAfterRuntime() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/vararg/addedPositionalArgumentAfterRuntime.kt"); - } - - @TestMetadata("addedSpreadArgumentAfterRuntime.kt") - public void testAddedSpreadArgumentAfterRuntime() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/vararg/addedSpreadArgumentAfterRuntime.kt"); - } - - @TestMetadata("booleanArrayRuntime.kt") - public void testBooleanArrayRuntime() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/vararg/booleanArrayRuntime.kt"); - } - - @TestMetadata("byteArrayRuntime.kt") - public void testByteArrayRuntime() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/vararg/byteArrayRuntime.kt"); - } - - @TestMetadata("doNotShortenUserReferences2Runtime.kt") - public void testDoNotShortenUserReferences2Runtime() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/vararg/doNotShortenUserReferences2Runtime.kt"); - } - - @TestMetadata("doNotShortenUserReferencesRuntime.kt") - public void testDoNotShortenUserReferencesRuntime() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/vararg/doNotShortenUserReferencesRuntime.kt"); - } - - @TestMetadata("doNotSimplifyOriginalCallRuntime.kt") - public void testDoNotSimplifyOriginalCallRuntime() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/vararg/doNotSimplifyOriginalCallRuntime.kt"); - } - - @TestMetadata("doubleArrayRuntime.kt") - public void testDoubleArrayRuntime() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/vararg/doubleArrayRuntime.kt"); - } - - @TestMetadata("floatArrayRuntime.kt") - public void testFloatArrayRuntime() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/vararg/floatArrayRuntime.kt"); - } - - @TestMetadata("longArrayRuntime.kt") - public void testLongArrayRuntime() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/vararg/longArrayRuntime.kt"); - } - - @TestMetadata("multipleSpreadArguments2Runtime.kt") - public void testMultipleSpreadArguments2Runtime() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/vararg/multipleSpreadArguments2Runtime.kt"); - } - - @TestMetadata("multipleSpreadArgumentsRuntime.kt") - public void testMultipleSpreadArgumentsRuntime() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/vararg/multipleSpreadArgumentsRuntime.kt"); - } - - @TestMetadata("noImportRuntime.kt") - public void testNoImportRuntime() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/vararg/noImportRuntime.kt"); - } - - @TestMetadata("shortArrayRuntime.kt") - public void testShortArrayRuntime() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/vararg/shortArrayRuntime.kt"); - } - - @TestMetadata("vararg1Runtime.kt") - public void testVararg1Runtime() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/vararg/vararg1Runtime.kt"); - } - - @TestMetadata("vararg2Runtime.kt") - public void testVararg2Runtime() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/vararg/vararg2Runtime.kt"); - } - - @TestMetadata("vararg3Runtime.kt") - public void testVararg3Runtime() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/vararg/vararg3Runtime.kt"); - } - - @TestMetadata("vararg4.kt") - public void testVararg4() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/vararg/vararg4.kt"); - } - - @TestMetadata("vararg5.kt") - public void testVararg5() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/vararg/vararg5.kt"); - } - - @TestMetadata("vararg6Runtime.kt") - public void testVararg6Runtime() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/vararg/vararg6Runtime.kt"); - } - - @TestMetadata("vararg7.kt") - public void testVararg7() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/vararg/vararg7.kt"); - } - - @TestMetadata("vararg8Runtime.kt") - public void testVararg8Runtime() throws Exception { - runTest("../../../idea/tests/testData/quickfix/deprecatedSymbolUsage/vararg/vararg8Runtime.kt"); - } - } - } - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/equalityNotApplicable") - public abstract static class EqualityNotApplicable extends AbstractHighLevelQuickFixTest { - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/equalityNotApplicable/charLiteralConversion") - public static class CharLiteralConversion extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("charEqString.kt") - public void testCharEqString() throws Exception { - runTest("../../../idea/tests/testData/quickfix/equalityNotApplicable/charLiteralConversion/charEqString.kt"); - } - - @TestMetadata("charEqString2.kt") - public void testCharEqString2() throws Exception { - runTest("../../../idea/tests/testData/quickfix/equalityNotApplicable/charLiteralConversion/charEqString2.kt"); - } - - @TestMetadata("charEqString3.kt") - public void testCharEqString3() throws Exception { - runTest("../../../idea/tests/testData/quickfix/equalityNotApplicable/charLiteralConversion/charEqString3.kt"); - } - - @TestMetadata("charEqString4.kt") - public void testCharEqString4() throws Exception { - runTest("../../../idea/tests/testData/quickfix/equalityNotApplicable/charLiteralConversion/charEqString4.kt"); - } - - @TestMetadata("charEqStringDoubleQuote.kt") - public void testCharEqStringDoubleQuote() throws Exception { - runTest("../../../idea/tests/testData/quickfix/equalityNotApplicable/charLiteralConversion/charEqStringDoubleQuote.kt"); - } - - @TestMetadata("charEqStringSingleQuote.kt") - public void testCharEqStringSingleQuote() throws Exception { - runTest("../../../idea/tests/testData/quickfix/equalityNotApplicable/charLiteralConversion/charEqStringSingleQuote.kt"); - } - - @TestMetadata("interpolation.kt") - public void testInterpolation() throws Exception { - runTest("../../../idea/tests/testData/quickfix/equalityNotApplicable/charLiteralConversion/interpolation.kt"); - } - } - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/equalityNotApplicable/numberConversion") - public static class NumberConversion extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("left.kt") - public void testLeft() throws Exception { - runTest("../../../idea/tests/testData/quickfix/equalityNotApplicable/numberConversion/left.kt"); - } - - @TestMetadata("nullableLeft.kt") - public void testNullableLeft() throws Exception { - runTest("../../../idea/tests/testData/quickfix/equalityNotApplicable/numberConversion/nullableLeft.kt"); - } - - @TestMetadata("nullableRight.kt") - public void testNullableRight() throws Exception { - runTest("../../../idea/tests/testData/quickfix/equalityNotApplicable/numberConversion/nullableRight.kt"); - } - - @TestMetadata("right.kt") - public void testRight() throws Exception { - runTest("../../../idea/tests/testData/quickfix/equalityNotApplicable/numberConversion/right.kt"); - } - } - } - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/final") - public static class Final extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("mustBeInitializedOrBeFinal.kt") - public void testMustBeInitializedOrBeFinal() throws Exception { - runTest("../../../idea/tests/testData/quickfix/final/mustBeInitializedOrBeFinal.kt"); - } - - @TestMetadata("mustBeInitializedOrBeFinalOverride.kt") - public void testMustBeInitializedOrBeFinalOverride() throws Exception { - runTest("../../../idea/tests/testData/quickfix/final/mustBeInitializedOrBeFinalOverride.kt"); - } - - @TestMetadata("mustBeInitializedOrBeFinalWarning.kt") - public void testMustBeInitializedOrBeFinalWarning() throws Exception { - runTest("../../../idea/tests/testData/quickfix/final/mustBeInitializedOrBeFinalWarning.kt"); - } - - @TestMetadata("mustBeInitializedOrFinalOrAbstract.kt") - public void testMustBeInitializedOrFinalOrAbstract() throws Exception { - runTest("../../../idea/tests/testData/quickfix/final/mustBeInitializedOrFinalOrAbstract.kt"); - } - - @TestMetadata("mustBeInitializedOrFinalOrAbstractWarning.kt") - public void testMustBeInitializedOrFinalOrAbstractWarning() throws Exception { - runTest("../../../idea/tests/testData/quickfix/final/mustBeInitializedOrFinalOrAbstractWarning.kt"); - } - } - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/foldTryCatch") - public static class FoldTryCatch extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("conditional.kt") - public void testConditional() throws Exception { - runTest("../../../idea/tests/testData/quickfix/foldTryCatch/conditional.kt"); - } - - @TestMetadata("emptyFinally.kt") - public void testEmptyFinally() throws Exception { - runTest("../../../idea/tests/testData/quickfix/foldTryCatch/emptyFinally.kt"); - } - - @TestMetadata("multipleExceptions.kt") - public void testMultipleExceptions() throws Exception { - runTest("../../../idea/tests/testData/quickfix/foldTryCatch/multipleExceptions.kt"); - } - - @TestMetadata("shadow.kt") - public void testShadow() throws Exception { - runTest("../../../idea/tests/testData/quickfix/foldTryCatch/shadow.kt"); - } - - @TestMetadata("simple.kt") - public void testSimple() throws Exception { - runTest("../../../idea/tests/testData/quickfix/foldTryCatch/simple.kt"); - } - } - - - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/implement") - public static class Implement extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("abstract.kt") - public void testAbstract() throws Exception { - runTest("../../../idea/tests/testData/quickfix/implement/abstract.kt"); - } - - @TestMetadata("annotation.kt") - public void testAnnotation() throws Exception { - runTest("../../../idea/tests/testData/quickfix/implement/annotation.kt"); - } - - @TestMetadata("dataClass.kt") - public void testDataClass() throws Exception { - runTest("../../../idea/tests/testData/quickfix/implement/dataClass.kt"); - } - - @TestMetadata("dataClass2.kt") - public void testDataClass2() throws Exception { - runTest("../../../idea/tests/testData/quickfix/implement/dataClass2.kt"); - } - - @TestMetadata("dataClass3.kt") - public void testDataClass3() throws Exception { - runTest("../../../idea/tests/testData/quickfix/implement/dataClass3.kt"); - } - - @TestMetadata("doNotAddExpectForVal.kt") - public void testDoNotAddExpectForVal() throws Exception { - runTest("../../../idea/tests/testData/quickfix/implement/doNotAddExpectForVal.kt"); - } - - @TestMetadata("doNotAddHeader.kt") - public void testDoNotAddHeader() throws Exception { - runTest("../../../idea/tests/testData/quickfix/implement/doNotAddHeader.kt"); - } - - @TestMetadata("enum.kt") - public void testEnum() throws Exception { - runTest("../../../idea/tests/testData/quickfix/implement/enum.kt"); - } - - @TestMetadata("fakeOverride.kt") - public void testFakeOverride() throws Exception { - runTest("../../../idea/tests/testData/quickfix/implement/fakeOverride.kt"); - } - - @TestMetadata("finalClass.kt") - public void testFinalClass() throws Exception { - runTest("../../../idea/tests/testData/quickfix/implement/finalClass.kt"); - } - - @TestMetadata("hasImplementedInPrimaryConstructor.kt") - public void testHasImplementedInPrimaryConstructor() throws Exception { - runTest("../../../idea/tests/testData/quickfix/implement/hasImplementedInPrimaryConstructor.kt"); - } - - @TestMetadata("hasImplementedInPrimaryConstructor2.kt") - public void testHasImplementedInPrimaryConstructor2() throws Exception { - runTest("../../../idea/tests/testData/quickfix/implement/hasImplementedInPrimaryConstructor2.kt"); - } - - @TestMetadata("hasImplementedInPrimaryConstructor3.kt") - public void testHasImplementedInPrimaryConstructor3() throws Exception { - runTest("../../../idea/tests/testData/quickfix/implement/hasImplementedInPrimaryConstructor3.kt"); - } - - @TestMetadata("inCompanion.kt") - public void testInCompanion() throws Exception { - runTest("../../../idea/tests/testData/quickfix/implement/inCompanion.kt"); - } - - @TestMetadata("inInternalCompanion.kt") - public void testInInternalCompanion() throws Exception { - runTest("../../../idea/tests/testData/quickfix/implement/inInternalCompanion.kt"); - } - - @TestMetadata("inPrivateCompanion.kt") - public void testInPrivateCompanion() throws Exception { - runTest("../../../idea/tests/testData/quickfix/implement/inPrivateCompanion.kt"); - } - - @TestMetadata("inProtectedCompanion.kt") - public void testInProtectedCompanion() throws Exception { - runTest("../../../idea/tests/testData/quickfix/implement/inProtectedCompanion.kt"); - } - - @TestMetadata("incorrectRange.kt") - public void testIncorrectRange() throws Exception { - runTest("../../../idea/tests/testData/quickfix/implement/incorrectRange.kt"); - } - - @TestMetadata("inner.kt") - public void testInner() throws Exception { - runTest("../../../idea/tests/testData/quickfix/implement/inner.kt"); - } - - @TestMetadata("interface.kt") - public void testInterface() throws Exception { - runTest("../../../idea/tests/testData/quickfix/implement/interface.kt"); - } - - @TestMetadata("local.kt") - public void testLocal() throws Exception { - runTest("../../../idea/tests/testData/quickfix/implement/local.kt"); - } - - @TestMetadata("manyImplMemberNotImplemented.kt") - public void testManyImplMemberNotImplemented() throws Exception { - runTest("../../../idea/tests/testData/quickfix/implement/manyImplMemberNotImplemented.kt"); - } - - @TestMetadata("manyInterfacesMemberNotImplemented.kt") - public void testManyInterfacesMemberNotImplemented() throws Exception { - runTest("../../../idea/tests/testData/quickfix/implement/manyInterfacesMemberNotImplemented.kt"); - } - - @TestMetadata("nested.kt") - public void testNested() throws Exception { - runTest("../../../idea/tests/testData/quickfix/implement/nested.kt"); - } - - @TestMetadata("nestedPrivateInterface.kt") - public void testNestedPrivateInterface() throws Exception { - runTest("../../../idea/tests/testData/quickfix/implement/nestedPrivateInterface.kt"); - } - - @TestMetadata("noDefaultConstructor.kt") - public void testNoDefaultConstructor() throws Exception { - runTest("../../../idea/tests/testData/quickfix/implement/noDefaultConstructor.kt"); - } - - @TestMetadata("private.kt") - public void testPrivate() throws Exception { - runTest("../../../idea/tests/testData/quickfix/implement/private.kt"); - } - - @TestMetadata("privateConstructor.kt") - public void testPrivateConstructor() throws Exception { - runTest("../../../idea/tests/testData/quickfix/implement/privateConstructor.kt"); - } - - @TestMetadata("privateNested.kt") - public void testPrivateNested() throws Exception { - runTest("../../../idea/tests/testData/quickfix/implement/privateNested.kt"); - } - - @TestMetadata("privateNestedWithConflict.kt") - public void testPrivateNestedWithConflict() throws Exception { - runTest("../../../idea/tests/testData/quickfix/implement/privateNestedWithConflict.kt"); - } - - @TestMetadata("protected.kt") - public void testProtected() throws Exception { - runTest("../../../idea/tests/testData/quickfix/implement/protected.kt"); - } - - @TestMetadata("sealed.kt") - public void testSealed() throws Exception { - runTest("../../../idea/tests/testData/quickfix/implement/sealed.kt"); - } - - @TestMetadata("sealedAfter15.kt") - public void testSealedAfter15() throws Exception { - runTest("../../../idea/tests/testData/quickfix/implement/sealedAfter15.kt"); - } - - @TestMetadata("sealedEmpty.kt") - public void testSealedEmpty() throws Exception { - runTest("../../../idea/tests/testData/quickfix/implement/sealedEmpty.kt"); - } - - @TestMetadata("sealedEmptyAfter15.kt") - public void testSealedEmptyAfter15() throws Exception { - runTest("../../../idea/tests/testData/quickfix/implement/sealedEmptyAfter15.kt"); - } - - @TestMetadata("sealedWithConflict.kt") - public void testSealedWithConflict() throws Exception { - runTest("../../../idea/tests/testData/quickfix/implement/sealedWithConflict.kt"); - } - - @TestMetadata("sealedWithConflictAfter15.kt") - public void testSealedWithConflictAfter15() throws Exception { - runTest("../../../idea/tests/testData/quickfix/implement/sealedWithConflictAfter15.kt"); - } - - @TestMetadata("typeParameter.kt") - public void testTypeParameter() throws Exception { - runTest("../../../idea/tests/testData/quickfix/implement/typeParameter.kt"); - } - - @TestMetadata("typeParameterOut.kt") - public void testTypeParameterOut() throws Exception { - runTest("../../../idea/tests/testData/quickfix/implement/typeParameterOut.kt"); - } - - @TestMetadata("typeParameterWhere.kt") - public void testTypeParameterWhere() throws Exception { - runTest("../../../idea/tests/testData/quickfix/implement/typeParameterWhere.kt"); - } - - @TestMetadata("typeParametersClass.kt") - public void testTypeParametersClass() throws Exception { - runTest("../../../idea/tests/testData/quickfix/implement/typeParametersClass.kt"); - } - } - - - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/increaseVisibility") - public abstract static class IncreaseVisibility extends AbstractHighLevelQuickFixTest { - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/increaseVisibility/invisibleFake") - public static class InvisibleFake extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("methodToInternal.kt") - public void testMethodToInternal() throws Exception { - runTest("../../../idea/tests/testData/quickfix/increaseVisibility/invisibleFake/methodToInternal.kt"); - } - - @TestMetadata("methodToNotProtected.kt") - public void testMethodToNotProtected() throws Exception { - runTest("../../../idea/tests/testData/quickfix/increaseVisibility/invisibleFake/methodToNotProtected.kt"); - } - - @TestMetadata("methodToProtected.kt") - public void testMethodToProtected() throws Exception { - runTest("../../../idea/tests/testData/quickfix/increaseVisibility/invisibleFake/methodToProtected.kt"); - } - - @TestMetadata("methodToProtected2.kt") - public void testMethodToProtected2() throws Exception { - runTest("../../../idea/tests/testData/quickfix/increaseVisibility/invisibleFake/methodToProtected2.kt"); - } - - @TestMetadata("methodToPublic.kt") - public void testMethodToPublic() throws Exception { - runTest("../../../idea/tests/testData/quickfix/increaseVisibility/invisibleFake/methodToPublic.kt"); - } - - @TestMetadata("propertyToInternal.kt") - public void testPropertyToInternal() throws Exception { - runTest("../../../idea/tests/testData/quickfix/increaseVisibility/invisibleFake/propertyToInternal.kt"); - } - - @TestMetadata("propertyToNotProtected.kt") - public void testPropertyToNotProtected() throws Exception { - runTest("../../../idea/tests/testData/quickfix/increaseVisibility/invisibleFake/propertyToNotProtected.kt"); - } - - @TestMetadata("propertyToProtected.kt") - public void testPropertyToProtected() throws Exception { - runTest("../../../idea/tests/testData/quickfix/increaseVisibility/invisibleFake/propertyToProtected.kt"); - } - - @TestMetadata("propertyToProtected2.kt") - public void testPropertyToProtected2() throws Exception { - runTest("../../../idea/tests/testData/quickfix/increaseVisibility/invisibleFake/propertyToProtected2.kt"); - } - - @TestMetadata("propertyToPublic.kt") - public void testPropertyToPublic() throws Exception { - runTest("../../../idea/tests/testData/quickfix/increaseVisibility/invisibleFake/propertyToPublic.kt"); - } - } - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/increaseVisibility") - public static class Uncategorized extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("exposedParameterType.kt") - public void testExposedParameterType() throws Exception { - runTest("../../../idea/tests/testData/quickfix/increaseVisibility/exposedParameterType.kt"); - } - - @TestMetadata("exposedParameterTypePublic.kt") - public void testExposedParameterTypePublic() throws Exception { - runTest("../../../idea/tests/testData/quickfix/increaseVisibility/exposedParameterTypePublic.kt"); - } - - @TestMetadata("exposedPropertyType.kt") - public void testExposedPropertyType() throws Exception { - runTest("../../../idea/tests/testData/quickfix/increaseVisibility/exposedPropertyType.kt"); - } - - @TestMetadata("exposedReceiverType.kt") - public void testExposedReceiverType() throws Exception { - runTest("../../../idea/tests/testData/quickfix/increaseVisibility/exposedReceiverType.kt"); - } - - @TestMetadata("exposedReturnType.kt") - public void testExposedReturnType() throws Exception { - runTest("../../../idea/tests/testData/quickfix/increaseVisibility/exposedReturnType.kt"); - } - - @TestMetadata("exposedSuperClass.kt") - public void testExposedSuperClass() throws Exception { - runTest("../../../idea/tests/testData/quickfix/increaseVisibility/exposedSuperClass.kt"); - } - - @TestMetadata("exposedSuperClassProtectedBase.kt") - public void testExposedSuperClassProtectedBase() throws Exception { - runTest("../../../idea/tests/testData/quickfix/increaseVisibility/exposedSuperClassProtectedBase.kt"); - } - - @TestMetadata("exposedSuperClassProtectedInAnother.kt") - public void testExposedSuperClassProtectedInAnother() throws Exception { - runTest("../../../idea/tests/testData/quickfix/increaseVisibility/exposedSuperClassProtectedInAnother.kt"); - } - - @TestMetadata("exposedSuperClassProtectedInAnotherFromPrivate.kt") - public void testExposedSuperClassProtectedInAnotherFromPrivate() throws Exception { - runTest("../../../idea/tests/testData/quickfix/increaseVisibility/exposedSuperClassProtectedInAnotherFromPrivate.kt"); - } - - @TestMetadata("exposedSuperInterface.kt") - public void testExposedSuperInterface() throws Exception { - runTest("../../../idea/tests/testData/quickfix/increaseVisibility/exposedSuperInterface.kt"); - } - - @TestMetadata("exposedTypeParameterBound.kt") - public void testExposedTypeParameterBound() throws Exception { - runTest("../../../idea/tests/testData/quickfix/increaseVisibility/exposedTypeParameterBound.kt"); - } - - @TestMetadata("exposedTypeParameterBoundNested.kt") - public void testExposedTypeParameterBoundNested() throws Exception { - runTest("../../../idea/tests/testData/quickfix/increaseVisibility/exposedTypeParameterBoundNested.kt"); - } - - @TestMetadata("invalidSealedClassInheritance.kt") - public void testInvalidSealedClassInheritance() throws Exception { - runTest("../../../idea/tests/testData/quickfix/increaseVisibility/invalidSealedClassInheritance.kt"); - } - - @TestMetadata("overriddenProtectedMemberToPublicSingleFile.kt") - public void testOverriddenProtectedMemberToPublicSingleFile() throws Exception { - runTest("../../../idea/tests/testData/quickfix/increaseVisibility/overriddenProtectedMemberToPublicSingleFile.kt"); - } - - @TestMetadata("overriddenProtectedMemberToPublicSingleFile1.kt") - public void testOverriddenProtectedMemberToPublicSingleFile1() throws Exception { - runTest("../../../idea/tests/testData/quickfix/increaseVisibility/overriddenProtectedMemberToPublicSingleFile1.kt"); - } - - @TestMetadata("privateEmptyPrimaryConstructorToPublic.kt") - public void testPrivateEmptyPrimaryConstructorToPublic() throws Exception { - runTest("../../../idea/tests/testData/quickfix/increaseVisibility/privateEmptyPrimaryConstructorToPublic.kt"); - } - - @TestMetadata("privateInFileExposesPrivateInFile.kt") - public void testPrivateInFileExposesPrivateInFile() throws Exception { - runTest("../../../idea/tests/testData/quickfix/increaseVisibility/privateInFileExposesPrivateInFile.kt"); - } - - @TestMetadata("privateMemberToInternalSingleFile.kt") - public void testPrivateMemberToInternalSingleFile() throws Exception { - runTest("../../../idea/tests/testData/quickfix/increaseVisibility/privateMemberToInternalSingleFile.kt"); - } - - @TestMetadata("privateMemberToInternalWithExposed.kt") - public void testPrivateMemberToInternalWithExposed() throws Exception { - runTest("../../../idea/tests/testData/quickfix/increaseVisibility/privateMemberToInternalWithExposed.kt"); - } - - @TestMetadata("privateMemberToPublicSingleFile.kt") - public void testPrivateMemberToPublicSingleFile() throws Exception { - runTest("../../../idea/tests/testData/quickfix/increaseVisibility/privateMemberToPublicSingleFile.kt"); - } - - @TestMetadata("privateSealedClassInheritance.kt") - public void testPrivateSealedClassInheritance() throws Exception { - runTest("../../../idea/tests/testData/quickfix/increaseVisibility/privateSealedClassInheritance.kt"); - } - - @TestMetadata("privateSetterToInternal.kt") - public void testPrivateSetterToInternal() throws Exception { - runTest("../../../idea/tests/testData/quickfix/increaseVisibility/privateSetterToInternal.kt"); - } - - @TestMetadata("privateSetterToPublic.kt") - public void testPrivateSetterToPublic() throws Exception { - runTest("../../../idea/tests/testData/quickfix/increaseVisibility/privateSetterToPublic.kt"); - } - - @TestMetadata("protectedMemberToPublicSingleFile.kt") - public void testProtectedMemberToPublicSingleFile() throws Exception { - runTest("../../../idea/tests/testData/quickfix/increaseVisibility/protectedMemberToPublicSingleFile.kt"); - } - } - } - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/initializeWithConstructorParameter") - public static class InitializeWithConstructorParameter extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("constructorWithThisDelegation.kt") - public void testConstructorWithThisDelegation() throws Exception { - runTest("../../../idea/tests/testData/quickfix/initializeWithConstructorParameter/constructorWithThisDelegation.kt"); - } - - @TestMetadata("genericParameterInScope.kt") - public void testGenericParameterInScope() throws Exception { - runTest("../../../idea/tests/testData/quickfix/initializeWithConstructorParameter/genericParameterInScope.kt"); - } - - @TestMetadata("localVar.kt") - public void testLocalVar() throws Exception { - runTest("../../../idea/tests/testData/quickfix/initializeWithConstructorParameter/localVar.kt"); - } - - @TestMetadata("memberPropertyInClassNameClashInPrimaryConstructor.kt") - public void testMemberPropertyInClassNameClashInPrimaryConstructor() throws Exception { - runTest("../../../idea/tests/testData/quickfix/initializeWithConstructorParameter/memberPropertyInClassNameClashInPrimaryConstructor.kt"); - } - - @TestMetadata("memberPropertyInClassNameClashInPrimaryConstructor2.kt") - public void testMemberPropertyInClassNameClashInPrimaryConstructor2() throws Exception { - runTest("../../../idea/tests/testData/quickfix/initializeWithConstructorParameter/memberPropertyInClassNameClashInPrimaryConstructor2.kt"); - } - - @TestMetadata("memberPropertyInClassNameClashInSecondaryConstructor.kt") - public void testMemberPropertyInClassNameClashInSecondaryConstructor() throws Exception { - runTest("../../../idea/tests/testData/quickfix/initializeWithConstructorParameter/memberPropertyInClassNameClashInSecondaryConstructor.kt"); - } - - @TestMetadata("memberPropertyInClassNoConstructors.kt") - public void testMemberPropertyInClassNoConstructors() throws Exception { - runTest("../../../idea/tests/testData/quickfix/initializeWithConstructorParameter/memberPropertyInClassNoConstructors.kt"); - } - - @TestMetadata("memberPropertyInClassPrimaryAndSecondaryConstructors.kt") - public void testMemberPropertyInClassPrimaryAndSecondaryConstructors() throws Exception { - runTest("../../../idea/tests/testData/quickfix/initializeWithConstructorParameter/memberPropertyInClassPrimaryAndSecondaryConstructors.kt"); - } - - @TestMetadata("memberPropertyInClassPrimaryConstructorOnly.kt") - public void testMemberPropertyInClassPrimaryConstructorOnly() throws Exception { - runTest("../../../idea/tests/testData/quickfix/initializeWithConstructorParameter/memberPropertyInClassPrimaryConstructorOnly.kt"); - } - - @TestMetadata("memberPropertyInClassSecondaryConstructorsOnly.kt") - public void testMemberPropertyInClassSecondaryConstructorsOnly() throws Exception { - runTest("../../../idea/tests/testData/quickfix/initializeWithConstructorParameter/memberPropertyInClassSecondaryConstructorsOnly.kt"); - } - - @TestMetadata("memberPropertyInInterface.kt") - public void testMemberPropertyInInterface() throws Exception { - runTest("../../../idea/tests/testData/quickfix/initializeWithConstructorParameter/memberPropertyInInterface.kt"); - } - - @TestMetadata("memberPropertyInObject.kt") - public void testMemberPropertyInObject() throws Exception { - runTest("../../../idea/tests/testData/quickfix/initializeWithConstructorParameter/memberPropertyInObject.kt"); - } - - @TestMetadata("memberPropertyNoAccessorsInClassNoConstructors.kt") - public void testMemberPropertyNoAccessorsInClassNoConstructors() throws Exception { - runTest("../../../idea/tests/testData/quickfix/initializeWithConstructorParameter/memberPropertyNoAccessorsInClassNoConstructors.kt"); - } - - @TestMetadata("memberPropertyNoAccessorsInClassPrimaryAndSecondaryConstructors.kt") - public void testMemberPropertyNoAccessorsInClassPrimaryAndSecondaryConstructors() throws Exception { - runTest("../../../idea/tests/testData/quickfix/initializeWithConstructorParameter/memberPropertyNoAccessorsInClassPrimaryAndSecondaryConstructors.kt"); - } - - @TestMetadata("memberPropertyNoAccessorsInClassPrimaryConstructorOnly.kt") - public void testMemberPropertyNoAccessorsInClassPrimaryConstructorOnly() throws Exception { - runTest("../../../idea/tests/testData/quickfix/initializeWithConstructorParameter/memberPropertyNoAccessorsInClassPrimaryConstructorOnly.kt"); - } - - @TestMetadata("memberPropertyWithDelegateRuntime.kt") - public void testMemberPropertyWithDelegateRuntime() throws Exception { - runTest("../../../idea/tests/testData/quickfix/initializeWithConstructorParameter/memberPropertyWithDelegateRuntime.kt"); - } - - @TestMetadata("multipleConstructors.kt") - public void testMultipleConstructors() throws Exception { - runTest("../../../idea/tests/testData/quickfix/initializeWithConstructorParameter/multipleConstructors.kt"); - } - - @TestMetadata("multipleConstructorsClash.kt") - public void testMultipleConstructorsClash() throws Exception { - runTest("../../../idea/tests/testData/quickfix/initializeWithConstructorParameter/multipleConstructorsClash.kt"); - } - - @TestMetadata("multipleConstructorsClash2.kt") - public void testMultipleConstructorsClash2() throws Exception { - runTest("../../../idea/tests/testData/quickfix/initializeWithConstructorParameter/multipleConstructorsClash2.kt"); - } - - @TestMetadata("namelessProperty.kt") - public void testNamelessProperty() throws Exception { - runTest("../../../idea/tests/testData/quickfix/initializeWithConstructorParameter/namelessProperty.kt"); - } - - @TestMetadata("topLevelProperty.kt") - public void testTopLevelProperty() throws Exception { - runTest("../../../idea/tests/testData/quickfix/initializeWithConstructorParameter/topLevelProperty.kt"); - } - } - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/inlineClass") - public static class InlineClass extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("inlineClassDeprecated.kt") - public void testInlineClassDeprecated() throws Exception { - runTest("../../../idea/tests/testData/quickfix/inlineClass/inlineClassDeprecated.kt"); - } - - @TestMetadata("inlineClassDeprecated_js.kt") - public void testInlineClassDeprecated_js() throws Exception { - runTest("../../../idea/tests/testData/quickfix/inlineClass/inlineClassDeprecated_js.kt"); - } - - @TestMetadata("inlineClassWithGeneric.kt") - public void testInlineClassWithGeneric() throws Exception { - runTest("../../../idea/tests/testData/quickfix/inlineClass/inlineClassWithGeneric.kt"); - } - - @TestMetadata("publicInlineClass.kt") - public void testPublicInlineClass() throws Exception { - runTest("../../../idea/tests/testData/quickfix/inlineClass/publicInlineClass.kt"); - } - } - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/inlineTypeParameterFix") - public static class InlineTypeParameterFix extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("basic.kt") - public void testBasic() throws Exception { - runTest("../../../idea/tests/testData/quickfix/inlineTypeParameterFix/basic.kt"); - } - - @TestMetadata("basicMultipleDef.kt") - public void testBasicMultipleDef() throws Exception { - runTest("../../../idea/tests/testData/quickfix/inlineTypeParameterFix/basicMultipleDef.kt"); - } - - @TestMetadata("function.kt") - public void testFunction() throws Exception { - runTest("../../../idea/tests/testData/quickfix/inlineTypeParameterFix/function.kt"); - } - - @TestMetadata("nullableTypeParam.kt") - public void testNullableTypeParam() throws Exception { - runTest("../../../idea/tests/testData/quickfix/inlineTypeParameterFix/nullableTypeParam.kt"); - } - - @TestMetadata("typeConstraint.kt") - public void testTypeConstraint() throws Exception { - runTest("../../../idea/tests/testData/quickfix/inlineTypeParameterFix/typeConstraint.kt"); - } - - @TestMetadata("typeConstraintMultipleDef.kt") - public void testTypeConstraintMultipleDef() throws Exception { - runTest("../../../idea/tests/testData/quickfix/inlineTypeParameterFix/typeConstraintMultipleDef.kt"); - } - } - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/insertDelegationCall") - public static class InsertDelegationCall extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("cyclicCallDefaultParam.kt") - public void testCyclicCallDefaultParam() throws Exception { - runTest("../../../idea/tests/testData/quickfix/insertDelegationCall/cyclicCallDefaultParam.kt"); - } - - @TestMetadata("nonApplicableInsertSuper.kt") - public void testNonApplicableInsertSuper() throws Exception { - runTest("../../../idea/tests/testData/quickfix/insertDelegationCall/nonApplicableInsertSuper.kt"); - } - - @TestMetadata("nonApplicableInsertThis.kt") - public void testNonApplicableInsertThis() throws Exception { - runTest("../../../idea/tests/testData/quickfix/insertDelegationCall/nonApplicableInsertThis.kt"); - } - - @TestMetadata("nonApplicableOnEmpty.kt") - public void testNonApplicableOnEmpty() throws Exception { - runTest("../../../idea/tests/testData/quickfix/insertDelegationCall/nonApplicableOnEmpty.kt"); - } - - @TestMetadata("nonApplicableWithOneConstructor.kt") - public void testNonApplicableWithOneConstructor() throws Exception { - runTest("../../../idea/tests/testData/quickfix/insertDelegationCall/nonApplicableWithOneConstructor.kt"); - } - - @TestMetadata("primaryRequiredNoSuper.kt") - public void testPrimaryRequiredNoSuper() throws Exception { - runTest("../../../idea/tests/testData/quickfix/insertDelegationCall/primaryRequiredNoSuper.kt"); - } - - @TestMetadata("primaryRequiredParameterless.kt") - public void testPrimaryRequiredParameterless() throws Exception { - runTest("../../../idea/tests/testData/quickfix/insertDelegationCall/primaryRequiredParameterless.kt"); - } - - @TestMetadata("primaryRequiredWithBody.kt") - public void testPrimaryRequiredWithBody() throws Exception { - runTest("../../../idea/tests/testData/quickfix/insertDelegationCall/primaryRequiredWithBody.kt"); - } - - @TestMetadata("primaryRequiredWithParameter.kt") - public void testPrimaryRequiredWithParameter() throws Exception { - runTest("../../../idea/tests/testData/quickfix/insertDelegationCall/primaryRequiredWithParameter.kt"); - } - } - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/isEnumEntry") - public static class IsEnumEntry extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("is.kt") - public void testIs() throws Exception { - runTest("../../../idea/tests/testData/quickfix/isEnumEntry/is.kt"); - } - - @TestMetadata("isWhenCondition.kt") - public void testIsWhenCondition() throws Exception { - runTest("../../../idea/tests/testData/quickfix/isEnumEntry/isWhenCondition.kt"); - } - - @TestMetadata("notIs.kt") - public void testNotIs() throws Exception { - runTest("../../../idea/tests/testData/quickfix/isEnumEntry/notIs.kt"); - } - - @TestMetadata("notIsWhenCondition.kt") - public void testNotIsWhenCondition() throws Exception { - runTest("../../../idea/tests/testData/quickfix/isEnumEntry/notIsWhenCondition.kt"); - } - } - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/javaClassOnCompanion") - public abstract static class JavaClassOnCompanion extends AbstractHighLevelQuickFixTest { - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/javaClassOnCompanion/replaceWithClassJava") - public static class ReplaceWithClassJava extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("hasType.kt") - public void testHasType() throws Exception { - runTest("../../../idea/tests/testData/quickfix/javaClassOnCompanion/replaceWithClassJava/hasType.kt"); - } - - @TestMetadata("simple.kt") - public void testSimple() throws Exception { - runTest("../../../idea/tests/testData/quickfix/javaClassOnCompanion/replaceWithClassJava/simple.kt"); - } - - @TestMetadata("withName.kt") - public void testWithName() throws Exception { - runTest("../../../idea/tests/testData/quickfix/javaClassOnCompanion/replaceWithClassJava/withName.kt"); - } - } - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/javaClassOnCompanion/replaceWithCompanionClassJava") - public static class ReplaceWithCompanionClassJava extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("hasType.kt") - public void testHasType() throws Exception { - runTest("../../../idea/tests/testData/quickfix/javaClassOnCompanion/replaceWithCompanionClassJava/hasType.kt"); - } - - @TestMetadata("namedCompanion.kt") - public void testNamedCompanion() throws Exception { - runTest("../../../idea/tests/testData/quickfix/javaClassOnCompanion/replaceWithCompanionClassJava/namedCompanion.kt"); - } - - @TestMetadata("simple.kt") - public void testSimple() throws Exception { - runTest("../../../idea/tests/testData/quickfix/javaClassOnCompanion/replaceWithCompanionClassJava/simple.kt"); - } - - @TestMetadata("withName.kt") - public void testWithName() throws Exception { - runTest("../../../idea/tests/testData/quickfix/javaClassOnCompanion/replaceWithCompanionClassJava/withName.kt"); - } - } - } - - - - - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/libraries") - public static class Libraries extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("junit.kt") - public void testJunit() throws Exception { - runTest("../../../idea/tests/testData/quickfix/libraries/junit.kt"); - } - - @TestMetadata("testNG.kt") - public void testTestNG() throws Exception { - runTest("../../../idea/tests/testData/quickfix/libraries/testNG.kt"); - } - } - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/makeConstructorParameterProperty") - public static class MakeConstructorParameterProperty extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("inner.kt") - public void testInner() throws Exception { - runTest("../../../idea/tests/testData/quickfix/makeConstructorParameterProperty/inner.kt"); - } - - @TestMetadata("override.kt") - public void testOverride() throws Exception { - runTest("../../../idea/tests/testData/quickfix/makeConstructorParameterProperty/override.kt"); - } - - @TestMetadata("val.kt") - public void testVal() throws Exception { - runTest("../../../idea/tests/testData/quickfix/makeConstructorParameterProperty/val.kt"); - } - - @TestMetadata("var.kt") - public void testVar() throws Exception { - runTest("../../../idea/tests/testData/quickfix/makeConstructorParameterProperty/var.kt"); - } - - @TestMetadata("vararg.kt") - public void testVararg() throws Exception { - runTest("../../../idea/tests/testData/quickfix/makeConstructorParameterProperty/vararg.kt"); - } - } - - - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/makeTypeParameterReified") - public static class MakeTypeParameterReified extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("noTypeParameter.kt") - public void testNoTypeParameter() throws Exception { - runTest("../../../idea/tests/testData/quickfix/makeTypeParameterReified/noTypeParameter.kt"); - } - - @TestMetadata("noTypeParameter2.kt") - public void testNoTypeParameter2() throws Exception { - runTest("../../../idea/tests/testData/quickfix/makeTypeParameterReified/noTypeParameter2.kt"); - } - - @TestMetadata("typeParameter.kt") - public void testTypeParameter() throws Exception { - runTest("../../../idea/tests/testData/quickfix/makeTypeParameterReified/typeParameter.kt"); - } - } - - - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/memberVisibilityCanBePrivate") - public static class MemberVisibilityCanBePrivate extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("constructorParam.kt") - public void testConstructorParam() throws Exception { - runTest("../../../idea/tests/testData/quickfix/memberVisibilityCanBePrivate/constructorParam.kt"); - } - - @TestMetadata("internal.kt") - public void testInternal() throws Exception { - runTest("../../../idea/tests/testData/quickfix/memberVisibilityCanBePrivate/internal.kt"); - } - - @TestMetadata("noModifier.kt") - public void testNoModifier() throws Exception { - runTest("../../../idea/tests/testData/quickfix/memberVisibilityCanBePrivate/noModifier.kt"); - } - - @TestMetadata("protected.kt") - public void testProtected() throws Exception { - runTest("../../../idea/tests/testData/quickfix/memberVisibilityCanBePrivate/protected.kt"); - } - - @TestMetadata("public.kt") - public void testPublic() throws Exception { - runTest("../../../idea/tests/testData/quickfix/memberVisibilityCanBePrivate/public.kt"); - } - - @TestMetadata("sameClassFunctionCall.kt") - public void testSameClassFunctionCall() throws Exception { - runTest("../../../idea/tests/testData/quickfix/memberVisibilityCanBePrivate/sameClassFunctionCall.kt"); - } - } - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/migration/commasInWhenWithoutArgument") - public static class CommasInWhenWithoutArgument extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("commasInConditionWithNoArguments.kt") - public void testCommasInConditionWithNoArguments() throws Exception { - runTest("../../../idea/tests/testData/quickfix/migration/commasInWhenWithoutArgument/commasInConditionWithNoArguments.kt"); - } - - @TestMetadata("commasInConditionWithNoArguments2.kt") - public void testCommasInConditionWithNoArguments2() throws Exception { - runTest("../../../idea/tests/testData/quickfix/migration/commasInWhenWithoutArgument/commasInConditionWithNoArguments2.kt"); - } - } - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/migration/missingConstructorKeyword") - public static class MissingConstructorKeyword extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("basic.kt") - public void testBasic() throws Exception { - runTest("../../../idea/tests/testData/quickfix/migration/missingConstructorKeyword/basic.kt"); - } - - @TestMetadata("noParentheses.kt") - public void testNoParentheses() throws Exception { - runTest("../../../idea/tests/testData/quickfix/migration/missingConstructorKeyword/noParentheses.kt"); - } - - @TestMetadata("noParenthesesWithAnnotation.kt") - public void testNoParenthesesWithAnnotation() throws Exception { - runTest("../../../idea/tests/testData/quickfix/migration/missingConstructorKeyword/noParenthesesWithAnnotation.kt"); - } - } - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/migration/removeNameFromFunctionExpression") - public static class RemoveNameFromFunctionExpression extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("basic.kt") - public void testBasic() throws Exception { - runTest("../../../idea/tests/testData/quickfix/migration/removeNameFromFunctionExpression/basic.kt"); - } - } - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/migration/typeParameterList") - public static class TypeParameterList extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("basic.kt") - public void testBasic() throws Exception { - runTest("../../../idea/tests/testData/quickfix/migration/typeParameterList/basic.kt"); - } - - @TestMetadata("extension.kt") - public void testExtension() throws Exception { - runTest("../../../idea/tests/testData/quickfix/migration/typeParameterList/extension.kt"); - } - } - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/missingConstructorBrackets") - public static class MissingConstructorBrackets extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("basic.kt") - public void testBasic() throws Exception { - runTest("../../../idea/tests/testData/quickfix/missingConstructorBrackets/basic.kt"); - } - } - - - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/moveReceiverAnnotation") - public static class MoveReceiverAnnotation extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("fun.kt") - public void testFun() throws Exception { - runTest("../../../idea/tests/testData/quickfix/moveReceiverAnnotation/fun.kt"); - } - - @TestMetadata("notExtensionFun.kt") - public void testNotExtensionFun() throws Exception { - runTest("../../../idea/tests/testData/quickfix/moveReceiverAnnotation/notExtensionFun.kt"); - } - - @TestMetadata("notExtensionVal.kt") - public void testNotExtensionVal() throws Exception { - runTest("../../../idea/tests/testData/quickfix/moveReceiverAnnotation/notExtensionVal.kt"); - } - - @TestMetadata("val.kt") - public void testVal() throws Exception { - runTest("../../../idea/tests/testData/quickfix/moveReceiverAnnotation/val.kt"); - } - } - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/moveToConstructorParameters") - public static class MoveToConstructorParameters extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("localVar.kt") - public void testLocalVar() throws Exception { - runTest("../../../idea/tests/testData/quickfix/moveToConstructorParameters/localVar.kt"); - } - - @TestMetadata("memberExtensionProperty.kt") - public void testMemberExtensionProperty() throws Exception { - runTest("../../../idea/tests/testData/quickfix/moveToConstructorParameters/memberExtensionProperty.kt"); - } - - @TestMetadata("memberPropertyInClassNameClash.kt") - public void testMemberPropertyInClassNameClash() throws Exception { - runTest("../../../idea/tests/testData/quickfix/moveToConstructorParameters/memberPropertyInClassNameClash.kt"); - } - - @TestMetadata("memberPropertyInClassNoPrimaryConstructor.kt") - public void testMemberPropertyInClassNoPrimaryConstructor() throws Exception { - runTest("../../../idea/tests/testData/quickfix/moveToConstructorParameters/memberPropertyInClassNoPrimaryConstructor.kt"); - } - - @TestMetadata("memberPropertyInClassWithConstructorDelegatingToSuper.kt") - public void testMemberPropertyInClassWithConstructorDelegatingToSuper() throws Exception { - runTest("../../../idea/tests/testData/quickfix/moveToConstructorParameters/memberPropertyInClassWithConstructorDelegatingToSuper.kt"); - } - - @TestMetadata("memberPropertyInClassWithImplicitlyDelegatingConstructor.kt") - public void testMemberPropertyInClassWithImplicitlyDelegatingConstructor() throws Exception { - runTest("../../../idea/tests/testData/quickfix/moveToConstructorParameters/memberPropertyInClassWithImplicitlyDelegatingConstructor.kt"); - } - - @TestMetadata("memberPropertyInClassWithPrimaryConstructor.kt") - public void testMemberPropertyInClassWithPrimaryConstructor() throws Exception { - runTest("../../../idea/tests/testData/quickfix/moveToConstructorParameters/memberPropertyInClassWithPrimaryConstructor.kt"); - } - - @TestMetadata("memberPropertyInInterface.kt") - public void testMemberPropertyInInterface() throws Exception { - runTest("../../../idea/tests/testData/quickfix/moveToConstructorParameters/memberPropertyInInterface.kt"); - } - - @TestMetadata("memberPropertyInObject.kt") - public void testMemberPropertyInObject() throws Exception { - runTest("../../../idea/tests/testData/quickfix/moveToConstructorParameters/memberPropertyInObject.kt"); - } - - @TestMetadata("memberPropertyWithDelegateRuntime.kt") - public void testMemberPropertyWithDelegateRuntime() throws Exception { - runTest("../../../idea/tests/testData/quickfix/moveToConstructorParameters/memberPropertyWithDelegateRuntime.kt"); - } - - @TestMetadata("propertyWithModifiersAndComments.kt") - public void testPropertyWithModifiersAndComments() throws Exception { - runTest("../../../idea/tests/testData/quickfix/moveToConstructorParameters/propertyWithModifiersAndComments.kt"); - } - - @TestMetadata("topLevelProperty.kt") - public void testTopLevelProperty() throws Exception { - runTest("../../../idea/tests/testData/quickfix/moveToConstructorParameters/topLevelProperty.kt"); - } - } - - - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/moveTypeAliasToTopLevel") - public static class MoveTypeAliasToTopLevel extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("importList.kt") - public void testImportList() throws Exception { - runTest("../../../idea/tests/testData/quickfix/moveTypeAliasToTopLevel/importList.kt"); - } - - @TestMetadata("inClass.kt") - public void testInClass() throws Exception { - runTest("../../../idea/tests/testData/quickfix/moveTypeAliasToTopLevel/inClass.kt"); - } - - @TestMetadata("inClass2.kt") - public void testInClass2() throws Exception { - runTest("../../../idea/tests/testData/quickfix/moveTypeAliasToTopLevel/inClass2.kt"); - } - - @TestMetadata("inFunction.kt") - public void testInFunction() throws Exception { - runTest("../../../idea/tests/testData/quickfix/moveTypeAliasToTopLevel/inFunction.kt"); - } - - @TestMetadata("inFunction2.kt") - public void testInFunction2() throws Exception { - runTest("../../../idea/tests/testData/quickfix/moveTypeAliasToTopLevel/inFunction2.kt"); - } - - @TestMetadata("package.kt") - public void testPackage() throws Exception { - runTest("../../../idea/tests/testData/quickfix/moveTypeAliasToTopLevel/package.kt"); - } - } - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/namedLambdaContextParameter") - public static class NamedLambdaContextParameter extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("noNameAlready.kt") - public void testNoNameAlready() throws Exception { - runTest("../../../idea/tests/testData/quickfix/namedLambdaContextParameter/noNameAlready.kt"); - } - - @TestMetadata("notLambdaContext.kt") - public void testNotLambdaContext() throws Exception { - runTest("../../../idea/tests/testData/quickfix/namedLambdaContextParameter/notLambdaContext.kt"); - } - - @TestMetadata("oneContext.kt") - public void testOneContext() throws Exception { - runTest("../../../idea/tests/testData/quickfix/namedLambdaContextParameter/oneContext.kt"); - } - - @TestMetadata("twoContexts.kt") - public void testTwoContexts() throws Exception { - runTest("../../../idea/tests/testData/quickfix/namedLambdaContextParameter/twoContexts.kt"); - } - - @TestMetadata("withComments.kt") - public void testWithComments() throws Exception { - runTest("../../../idea/tests/testData/quickfix/namedLambdaContextParameter/withComments.kt"); - } - } - - - - - - - - - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/primitiveCastToConversion") - public static class PrimitiveCastToConversion extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("boolean.kt") - public void testBoolean() throws Exception { - runTest("../../../idea/tests/testData/quickfix/primitiveCastToConversion/boolean.kt"); - } - - @TestMetadata("charToShort.kt") - public void testCharToShort() throws Exception { - runTest("../../../idea/tests/testData/quickfix/primitiveCastToConversion/charToShort.kt"); - } - - @TestMetadata("intToByte.kt") - public void testIntToByte() throws Exception { - runTest("../../../idea/tests/testData/quickfix/primitiveCastToConversion/intToByte.kt"); - } - - @TestMetadata("longToFloat.kt") - public void testLongToFloat() throws Exception { - runTest("../../../idea/tests/testData/quickfix/primitiveCastToConversion/longToFloat.kt"); - } - } - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/properties") - public abstract static class Properties extends AbstractHighLevelQuickFixTest { - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/properties/extensionPropertyInitializerToGetter") - public static class ExtensionPropertyInitializerToGetter extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("baseCase.kt") - public void testBaseCase() throws Exception { - runTest("../../../idea/tests/testData/quickfix/properties/extensionPropertyInitializerToGetter/baseCase.kt"); - } - - @TestMetadata("baseCaseVar.kt") - public void testBaseCaseVar() throws Exception { - runTest("../../../idea/tests/testData/quickfix/properties/extensionPropertyInitializerToGetter/baseCaseVar.kt"); - } - - @TestMetadata("baseCaseWithoutTypeAnnotation.kt") - public void testBaseCaseWithoutTypeAnnotation() throws Exception { - runTest("../../../idea/tests/testData/quickfix/properties/extensionPropertyInitializerToGetter/baseCaseWithoutTypeAnnotation.kt"); - } - - @TestMetadata("dontShowQuickfixOnExistingAccessors.kt") - public void testDontShowQuickfixOnExistingAccessors() throws Exception { - runTest("../../../idea/tests/testData/quickfix/properties/extensionPropertyInitializerToGetter/dontShowQuickfixOnExistingAccessors.kt"); - } - - @TestMetadata("insertGetterBeforeExistingSetter.kt") - public void testInsertGetterBeforeExistingSetter() throws Exception { - runTest("../../../idea/tests/testData/quickfix/properties/extensionPropertyInitializerToGetter/insertGetterBeforeExistingSetter.kt"); - } - } - } - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/protectedInFinal") - public static class ProtectedInFinal extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("finalizeNotReal.kt") - public void testFinalizeNotReal() throws Exception { - runTest("../../../idea/tests/testData/quickfix/protectedInFinal/finalizeNotReal.kt"); - } - - @TestMetadata("finalizeNotRealImplicitReturnInt.kt") - public void testFinalizeNotRealImplicitReturnInt() throws Exception { - runTest("../../../idea/tests/testData/quickfix/protectedInFinal/finalizeNotRealImplicitReturnInt.kt"); - } - - @TestMetadata("protected.kt") - public void testProtected() throws Exception { - runTest("../../../idea/tests/testData/quickfix/protectedInFinal/protected.kt"); - } - - @TestMetadata("protected2.kt") - public void testProtected2() throws Exception { - runTest("../../../idea/tests/testData/quickfix/protectedInFinal/protected2.kt"); - } - } - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/redundantConst") - public static class RedundantConst extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("simple.kt") - public void testSimple() throws Exception { - runTest("../../../idea/tests/testData/quickfix/redundantConst/simple.kt"); - } - } - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/redundantFun") - public static class RedundantFun extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("simple.kt") - public void testSimple() throws Exception { - runTest("../../../idea/tests/testData/quickfix/redundantFun/simple.kt"); - } - } - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/redundantInline") - public static class RedundantInline extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("function.kt") - public void testFunction() throws Exception { - runTest("../../../idea/tests/testData/quickfix/redundantInline/function.kt"); - } - } - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/redundantLateinit") - public static class RedundantLateinit extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("simple.kt") - public void testSimple() throws Exception { - runTest("../../../idea/tests/testData/quickfix/redundantLateinit/simple.kt"); - } - } - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/redundantModalityModifier") - public static class RedundantModalityModifier extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("redundantAbstract.kt") - public void testRedundantAbstract() throws Exception { - runTest("../../../idea/tests/testData/quickfix/redundantModalityModifier/redundantAbstract.kt"); - } - - @TestMetadata("simple.kt") - public void testSimple() throws Exception { - runTest("../../../idea/tests/testData/quickfix/redundantModalityModifier/simple.kt"); - } - } - - - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/runBlockingInSuspendFunction") - public static class RunBlockingInSuspendFunction extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("noContextNoReturnsMultipleStatements.kt") - public void testNoContextNoReturnsMultipleStatements() throws Exception { - runTest("../../../idea/tests/testData/quickfix/runBlockingInSuspendFunction/noContextNoReturnsMultipleStatements.kt"); - } - - @TestMetadata("noContextNoReturnsOneStatement.kt") - public void testNoContextNoReturnsOneStatement() throws Exception { - runTest("../../../idea/tests/testData/quickfix/runBlockingInSuspendFunction/noContextNoReturnsOneStatement.kt"); - } - - @TestMetadata("noContextWithReturns.kt") - public void testNoContextWithReturns() throws Exception { - runTest("../../../idea/tests/testData/quickfix/runBlockingInSuspendFunction/noContextWithReturns.kt"); - } - - @TestMetadata("variableInitializer.kt") - public void testVariableInitializer() throws Exception { - runTest("../../../idea/tests/testData/quickfix/runBlockingInSuspendFunction/variableInitializer.kt"); - } - - @TestMetadata("withContextNoReturns.kt") - public void testWithContextNoReturns() throws Exception { - runTest("../../../idea/tests/testData/quickfix/runBlockingInSuspendFunction/withContextNoReturns.kt"); - } - - @TestMetadata("withContextWithReturns.kt") - public void testWithContextWithReturns() throws Exception { - runTest("../../../idea/tests/testData/quickfix/runBlockingInSuspendFunction/withContextWithReturns.kt"); - } - } - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/redundantVisibilityModifier") - public static class RedundantVisibilityModifier extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("getter.kt") - public void testGetter() throws Exception { - runTest("../../../idea/tests/testData/quickfix/redundantVisibilityModifier/getter.kt"); - } - - @TestMetadata("simple.kt") - public void testSimple() throws Exception { - runTest("../../../idea/tests/testData/quickfix/redundantVisibilityModifier/simple.kt"); - } - } - - - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/removeArgument") - public static class RemoveArgument extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("constructor.kt") - public void testConstructor() throws Exception { - runTest("../../../idea/tests/testData/quickfix/removeArgument/constructor.kt"); - } - - @TestMetadata("function.kt") - public void testFunction() throws Exception { - runTest("../../../idea/tests/testData/quickfix/removeArgument/function.kt"); - } - - @TestMetadata("lambdaArgument.kt") - public void testLambdaArgument() throws Exception { - runTest("../../../idea/tests/testData/quickfix/removeArgument/lambdaArgument.kt"); - } - - @TestMetadata("matchedArguments.kt") - public void testMatchedArguments() throws Exception { - runTest("../../../idea/tests/testData/quickfix/removeArgument/matchedArguments.kt"); - } - - @TestMetadata("typeMismatch.kt") - public void testTypeMismatch() throws Exception { - runTest("../../../idea/tests/testData/quickfix/removeArgument/typeMismatch.kt"); - } - } - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/removeAtFromAnnotationArgument") - public static class RemoveAtFromAnnotationArgument extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("arrayParam.kt") - public void testArrayParam() throws Exception { - runTest("../../../idea/tests/testData/quickfix/removeAtFromAnnotationArgument/arrayParam.kt"); - } - - @TestMetadata("brokenCode.kt") - public void testBrokenCode() throws Exception { - runTest("../../../idea/tests/testData/quickfix/removeAtFromAnnotationArgument/brokenCode.kt"); - } - - @TestMetadata("namedParam.kt") - public void testNamedParam() throws Exception { - runTest("../../../idea/tests/testData/quickfix/removeAtFromAnnotationArgument/namedParam.kt"); - } - - @TestMetadata("simple.kt") - public void testSimple() throws Exception { - runTest("../../../idea/tests/testData/quickfix/removeAtFromAnnotationArgument/simple.kt"); - } - } - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/removeDefaultParameterValue") - public static class RemoveDefaultParameterValue extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("actualFunctionWithDefaultArguments.kt") - public void testActualFunctionWithDefaultArguments() throws Exception { - runTest("../../../idea/tests/testData/quickfix/removeDefaultParameterValue/actualFunctionWithDefaultArguments.kt"); - } - - @TestMetadata("defaultValueNotAllowedInOverride.kt") - public void testDefaultValueNotAllowedInOverride() throws Exception { - runTest("../../../idea/tests/testData/quickfix/removeDefaultParameterValue/defaultValueNotAllowedInOverride.kt"); - } - - @TestMetadata("hasComment.kt") - public void testHasComment() throws Exception { - runTest("../../../idea/tests/testData/quickfix/removeDefaultParameterValue/hasComment.kt"); - } - } - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/removeFinalUpperBound") - public static class RemoveFinalUpperBound extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("basic.kt") - public void testBasic() throws Exception { - runTest("../../../idea/tests/testData/quickfix/removeFinalUpperBound/basic.kt"); - } - - @TestMetadata("function.kt") - public void testFunction() throws Exception { - runTest("../../../idea/tests/testData/quickfix/removeFinalUpperBound/function.kt"); - } - - @TestMetadata("whereClause.kt") - public void testWhereClause() throws Exception { - runTest("../../../idea/tests/testData/quickfix/removeFinalUpperBound/whereClause.kt"); - } - - @TestMetadata("whereClauseMultipleConstraints.kt") - public void testWhereClauseMultipleConstraints() throws Exception { - runTest("../../../idea/tests/testData/quickfix/removeFinalUpperBound/whereClauseMultipleConstraints.kt"); - } - } - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/removeNoConstructor") - public static class RemoveNoConstructor extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("basic.kt") - public void testBasic() throws Exception { - runTest("../../../idea/tests/testData/quickfix/removeNoConstructor/basic.kt"); - } - - @TestMetadata("functionType.kt") - public void testFunctionType() throws Exception { - runTest("../../../idea/tests/testData/quickfix/removeNoConstructor/functionType.kt"); - } - - @TestMetadata("functionType2.kt") - public void testFunctionType2() throws Exception { - runTest("../../../idea/tests/testData/quickfix/removeNoConstructor/functionType2.kt"); - } - - @TestMetadata("suspend.kt") - public void testSuspend() throws Exception { - runTest("../../../idea/tests/testData/quickfix/removeNoConstructor/suspend.kt"); - } - } - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/removeRedundantAssignment") - public static class RemoveRedundantAssignment extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("augmentedAssignment.kt") - public void testAugmentedAssignment() throws Exception { - runTest("../../../idea/tests/testData/quickfix/removeRedundantAssignment/augmentedAssignment.kt"); - } - - @TestMetadata("constant.kt") - public void testConstant() throws Exception { - runTest("../../../idea/tests/testData/quickfix/removeRedundantAssignment/constant.kt"); - } - - @TestMetadata("constantSum.kt") - public void testConstantSum() throws Exception { - runTest("../../../idea/tests/testData/quickfix/removeRedundantAssignment/constantSum.kt"); - } - - @TestMetadata("functionCall.kt") - public void testFunctionCall() throws Exception { - runTest("../../../idea/tests/testData/quickfix/removeRedundantAssignment/functionCall.kt"); - } - - @TestMetadata("infixDecrement.kt") - public void testInfixDecrement() throws Exception { - runTest("../../../idea/tests/testData/quickfix/removeRedundantAssignment/infixDecrement.kt"); - } - - @TestMetadata("is.kt") - public void testIs() throws Exception { - runTest("../../../idea/tests/testData/quickfix/removeRedundantAssignment/is.kt"); - } - - @TestMetadata("lambda.kt") - public void testLambda() throws Exception { - runTest("../../../idea/tests/testData/quickfix/removeRedundantAssignment/lambda.kt"); - } - - @TestMetadata("notRedundant.kt") - public void testNotRedundant() throws Exception { - runTest("../../../idea/tests/testData/quickfix/removeRedundantAssignment/notRedundant.kt"); - } - - @TestMetadata("postfixIncrement.kt") - public void testPostfixIncrement() throws Exception { - runTest("../../../idea/tests/testData/quickfix/removeRedundantAssignment/postfixIncrement.kt"); - } - - @TestMetadata("simpleRef.kt") - public void testSimpleRef() throws Exception { - runTest("../../../idea/tests/testData/quickfix/removeRedundantAssignment/simpleRef.kt"); - } - - @TestMetadata("this.kt") - public void testThis() throws Exception { - runTest("../../../idea/tests/testData/quickfix/removeRedundantAssignment/this.kt"); - } - } - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/removeRedundantInitializer") - public static class RemoveRedundantInitializer extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("brokenFile.kt") - public void testBrokenFile() throws Exception { - runTest("../../../idea/tests/testData/quickfix/removeRedundantInitializer/brokenFile.kt"); - } - - @TestMetadata("simple.kt") - public void testSimple() throws Exception { - runTest("../../../idea/tests/testData/quickfix/removeRedundantInitializer/simple.kt"); - } - } - - - - - - - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/removeToStringInStringTemplate") - public static class RemoveToStringInStringTemplate extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("call.kt") - public void testCall() throws Exception { - runTest("../../../idea/tests/testData/quickfix/removeToStringInStringTemplate/call.kt"); - } - - @TestMetadata("name.kt") - public void testName() throws Exception { - runTest("../../../idea/tests/testData/quickfix/removeToStringInStringTemplate/name.kt"); - } - - @TestMetadata("nameWithPostfix.kt") - public void testNameWithPostfix() throws Exception { - runTest("../../../idea/tests/testData/quickfix/removeToStringInStringTemplate/nameWithPostfix.kt"); - } - - @TestMetadata("necessaryBrackets1.kt") - public void testNecessaryBrackets1() throws Exception { - runTest("../../../idea/tests/testData/quickfix/removeToStringInStringTemplate/necessaryBrackets1.kt"); - } - - @TestMetadata("necessaryBrackets2.kt") - public void testNecessaryBrackets2() throws Exception { - runTest("../../../idea/tests/testData/quickfix/removeToStringInStringTemplate/necessaryBrackets2.kt"); - } - - @TestMetadata("simple.kt") - public void testSimple() throws Exception { - runTest("../../../idea/tests/testData/quickfix/removeToStringInStringTemplate/simple.kt"); - } - } - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/removeTypeVariance") - public static class RemoveTypeVariance extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("in.kt") - public void testIn() throws Exception { - runTest("../../../idea/tests/testData/quickfix/removeTypeVariance/in.kt"); - } - - @TestMetadata("out.kt") - public void testOut() throws Exception { - runTest("../../../idea/tests/testData/quickfix/removeTypeVariance/out.kt"); - } - } - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/removeUnused") - public static class RemoveUnused extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("companionViaImport3.kt") - public void testCompanionViaImport3() throws Exception { - runTest("../../../idea/tests/testData/quickfix/removeUnused/companionViaImport3.kt"); - } - - @TestMetadata("contextParametersInInterface.kt") - public void testContextParametersInInterface() throws Exception { - runTest("../../../idea/tests/testData/quickfix/removeUnused/contextParametersInInterface.kt"); - } - - @TestMetadata("deledage.kt") - public void testDeledage() throws Exception { - runTest("../../../idea/tests/testData/quickfix/removeUnused/deledage.kt"); - } - - @TestMetadata("implicitlyUsedContextParameters.kt") - public void testImplicitlyUsedContextParameters() throws Exception { - runTest("../../../idea/tests/testData/quickfix/removeUnused/implicitlyUsedContextParameters.kt"); - } - - @TestMetadata("implicitlyUsedContextParameters1.kt") - public void testImplicitlyUsedContextParameters1() throws Exception { - runTest("../../../idea/tests/testData/quickfix/removeUnused/implicitlyUsedContextParameters1.kt"); - } - - @TestMetadata("implicitlyUsedContextParametersInvoke.kt") - public void testImplicitlyUsedContextParametersInvoke() throws Exception { - runTest("../../../idea/tests/testData/quickfix/removeUnused/implicitlyUsedContextParametersInvoke.kt"); - } - - @TestMetadata("importEnumValues.kt") - public void testImportEnumValues() throws Exception { - runTest("../../../idea/tests/testData/quickfix/removeUnused/importEnumValues.kt"); - } - - @TestMetadata("importObjectFun.kt") - public void testImportObjectFun() throws Exception { - runTest("../../../idea/tests/testData/quickfix/removeUnused/importObjectFun.kt"); - } - - @TestMetadata("notTriangle.kt") - public void testNotTriangle() throws Exception { - runTest("../../../idea/tests/testData/quickfix/removeUnused/notTriangle.kt"); - } - - @TestMetadata("secondaryLocalClassConstructor.kt") - public void testSecondaryLocalClassConstructor() throws Exception { - runTest("../../../idea/tests/testData/quickfix/removeUnused/secondaryLocalClassConstructor.kt"); - } - - @TestMetadata("simpleUnusedEnumEntry.kt") - public void testSimpleUnusedEnumEntry() throws Exception { - runTest("../../../idea/tests/testData/quickfix/removeUnused/simpleUnusedEnumEntry.kt"); - } - - @TestMetadata("triangle.kt") - public void testTriangle() throws Exception { - runTest("../../../idea/tests/testData/quickfix/removeUnused/triangle.kt"); - } - - @TestMetadata("triangle2.kt") - public void testTriangle2() throws Exception { - runTest("../../../idea/tests/testData/quickfix/removeUnused/triangle2.kt"); - } - - @TestMetadata("typeAlias2.kt") - public void testTypeAlias2() throws Exception { - runTest("../../../idea/tests/testData/quickfix/removeUnused/typeAlias2.kt"); - } - - @TestMetadata("unusedClass.kt") - public void testUnusedClass() throws Exception { - runTest("../../../idea/tests/testData/quickfix/removeUnused/unusedClass.kt"); - } - - @TestMetadata("unusedConstructor.kt") - public void testUnusedConstructor() throws Exception { - runTest("../../../idea/tests/testData/quickfix/removeUnused/unusedConstructor.kt"); - } - - @TestMetadata("unusedContextParameters.kt") - public void testUnusedContextParameters() throws Exception { - runTest("../../../idea/tests/testData/quickfix/removeUnused/unusedContextParameters.kt"); - } - - @TestMetadata("unusedDelegatedConstructor.kt") - public void testUnusedDelegatedConstructor() throws Exception { - runTest("../../../idea/tests/testData/quickfix/removeUnused/unusedDelegatedConstructor.kt"); - } - - @TestMetadata("unusedDelegatedConstructorSuper.kt") - public void testUnusedDelegatedConstructorSuper() throws Exception { - runTest("../../../idea/tests/testData/quickfix/removeUnused/unusedDelegatedConstructorSuper.kt"); - } - - @TestMetadata("unusedEnumEntry.kt") - public void testUnusedEnumEntry() throws Exception { - runTest("../../../idea/tests/testData/quickfix/removeUnused/unusedEnumEntry.kt"); - } - - @TestMetadata("unusedEnumEntry2.kt") - public void testUnusedEnumEntry2() throws Exception { - runTest("../../../idea/tests/testData/quickfix/removeUnused/unusedEnumEntry2.kt"); - } - - @TestMetadata("unusedEnumEntry3.kt") - public void testUnusedEnumEntry3() throws Exception { - runTest("../../../idea/tests/testData/quickfix/removeUnused/unusedEnumEntry3.kt"); - } - - @TestMetadata("unusedEnumEntry4.kt") - public void testUnusedEnumEntry4() throws Exception { - runTest("../../../idea/tests/testData/quickfix/removeUnused/unusedEnumEntry4.kt"); - } - - @TestMetadata("unusedEnumEntry5.kt") - public void testUnusedEnumEntry5() throws Exception { - runTest("../../../idea/tests/testData/quickfix/removeUnused/unusedEnumEntry5.kt"); - } - - @TestMetadata("unusedFunction.kt") - public void testUnusedFunction() throws Exception { - runTest("../../../idea/tests/testData/quickfix/removeUnused/unusedFunction.kt"); - } - - @TestMetadata("unusedProperty.kt") - public void testUnusedProperty() throws Exception { - runTest("../../../idea/tests/testData/quickfix/removeUnused/unusedProperty.kt"); - } - - @TestMetadata("unusedPropertyAsConstructorParameter.kt") - public void testUnusedPropertyAsConstructorParameter() throws Exception { - runTest("../../../idea/tests/testData/quickfix/removeUnused/unusedPropertyAsConstructorParameter.kt"); - } - - @TestMetadata("unusedPropertyAsConstructorParameter2.kt") - public void testUnusedPropertyAsConstructorParameter2() throws Exception { - runTest("../../../idea/tests/testData/quickfix/removeUnused/unusedPropertyAsConstructorParameter2.kt"); - } - - @TestMetadata("unusedTypeParameter.kt") - public void testUnusedTypeParameter() throws Exception { - runTest("../../../idea/tests/testData/quickfix/removeUnused/unusedTypeParameter.kt"); - } - - @TestMetadata("usedClassAsAlias.kt") - public void testUsedClassAsAlias() throws Exception { - runTest("../../../idea/tests/testData/quickfix/removeUnused/usedClassAsAlias.kt"); - } - - @TestMetadata("usedContextParameters.kt") - public void testUsedContextParameters() throws Exception { - runTest("../../../idea/tests/testData/quickfix/removeUnused/usedContextParameters.kt"); - } - - @TestMetadata("usedFunAsAlias.kt") - public void testUsedFunAsAlias() throws Exception { - runTest("../../../idea/tests/testData/quickfix/removeUnused/usedFunAsAlias.kt"); - } - - @TestMetadata("usedObjectAsAlias.kt") - public void testUsedObjectAsAlias() throws Exception { - runTest("../../../idea/tests/testData/quickfix/removeUnused/usedObjectAsAlias.kt"); - } - - @TestMetadata("usedVarAsAlias.kt") - public void testUsedVarAsAlias() throws Exception { - runTest("../../../idea/tests/testData/quickfix/removeUnused/usedVarAsAlias.kt"); - } - } - - - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/removeUnusedReceiver") - public static class RemoveUnusedReceiver extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("inFunction.kt") - public void testInFunction() throws Exception { - runTest("../../../idea/tests/testData/quickfix/removeUnusedReceiver/inFunction.kt"); - } - - @TestMetadata("inProperty.kt") - public void testInProperty() throws Exception { - runTest("../../../idea/tests/testData/quickfix/removeUnusedReceiver/inProperty.kt"); - } - } - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/removeUseSiteTarget") - public static class RemoveUseSiteTarget extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("setTargetOnGetter.kt") - public void testSetTargetOnGetter() throws Exception { - runTest("../../../idea/tests/testData/quickfix/removeUseSiteTarget/setTargetOnGetter.kt"); - } - - @TestMetadata("useSiteGetDoesntHaveAnyEffect.kt") - public void testUseSiteGetDoesntHaveAnyEffect() throws Exception { - runTest("../../../idea/tests/testData/quickfix/removeUseSiteTarget/useSiteGetDoesntHaveAnyEffect.kt"); - } - - @TestMetadata("useSiteGetOnClass.kt") - public void testUseSiteGetOnClass() throws Exception { - runTest("../../../idea/tests/testData/quickfix/removeUseSiteTarget/useSiteGetOnClass.kt"); - } - - @TestMetadata("whitespaces.kt") - public void testWhitespaces() throws Exception { - runTest("../../../idea/tests/testData/quickfix/removeUseSiteTarget/whitespaces.kt"); - } - } - - - - - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/reorderParameters") - public static class ReorderParameters extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("callParameterAsFunctionInDefaultValue.kt") - public void testCallParameterAsFunctionInDefaultValue() throws Exception { - runTest("../../../idea/tests/testData/quickfix/reorderParameters/callParameterAsFunctionInDefaultValue.kt"); - } - - @TestMetadata("cycle.kt") - public void testCycle() throws Exception { - runTest("../../../idea/tests/testData/quickfix/reorderParameters/cycle.kt"); - } - - @TestMetadata("graph.kt") - public void testGraph() throws Exception { - runTest("../../../idea/tests/testData/quickfix/reorderParameters/graph.kt"); - } - - @TestMetadata("lambda.kt") - public void testLambda() throws Exception { - runTest("../../../idea/tests/testData/quickfix/reorderParameters/lambda.kt"); - } - - @TestMetadata("nestedFunction.kt") - public void testNestedFunction() throws Exception { - runTest("../../../idea/tests/testData/quickfix/reorderParameters/nestedFunction.kt"); - } - - @TestMetadata("nestedFunction2.kt") - public void testNestedFunction2() throws Exception { - runTest("../../../idea/tests/testData/quickfix/reorderParameters/nestedFunction2.kt"); - } - - @TestMetadata("noDefaultValue.kt") - public void testNoDefaultValue() throws Exception { - runTest("../../../idea/tests/testData/quickfix/reorderParameters/noDefaultValue.kt"); - } - - @TestMetadata("receiver.kt") - public void testReceiver() throws Exception { - runTest("../../../idea/tests/testData/quickfix/reorderParameters/receiver.kt"); - } - - @TestMetadata("simple.kt") - public void testSimple() throws Exception { - runTest("../../../idea/tests/testData/quickfix/reorderParameters/simple.kt"); - } - - @TestMetadata("withUnchangedParameter.kt") - public void testWithUnchangedParameter() throws Exception { - runTest("../../../idea/tests/testData/quickfix/reorderParameters/withUnchangedParameter.kt"); - } - - @TestMetadata("withUnchangedParameter2.kt") - public void testWithUnchangedParameter2() throws Exception { - runTest("../../../idea/tests/testData/quickfix/reorderParameters/withUnchangedParameter2.kt"); - } - } - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/replaceJvmFieldWithConst") - public static class ReplaceJvmFieldWithConst extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("class.kt") - public void testClass() throws Exception { - runTest("../../../idea/tests/testData/quickfix/replaceJvmFieldWithConst/class.kt"); - } - - @TestMetadata("companionInInterface.kt") - public void testCompanionInInterface() throws Exception { - runTest("../../../idea/tests/testData/quickfix/replaceJvmFieldWithConst/companionInInterface.kt"); - } - - @TestMetadata("getter.kt") - public void testGetter() throws Exception { - runTest("../../../idea/tests/testData/quickfix/replaceJvmFieldWithConst/getter.kt"); - } - - @TestMetadata("nonConstantInitializer.kt") - public void testNonConstantInitializer() throws Exception { - runTest("../../../idea/tests/testData/quickfix/replaceJvmFieldWithConst/nonConstantInitializer.kt"); - } - - @TestMetadata("nullable.kt") - public void testNullable() throws Exception { - runTest("../../../idea/tests/testData/quickfix/replaceJvmFieldWithConst/nullable.kt"); - } - - @TestMetadata("object.kt") - public void testObject() throws Exception { - runTest("../../../idea/tests/testData/quickfix/replaceJvmFieldWithConst/object.kt"); - } - - @TestMetadata("stringTemplateWithConstants.kt") - public void testStringTemplateWithConstants() throws Exception { - runTest("../../../idea/tests/testData/quickfix/replaceJvmFieldWithConst/stringTemplateWithConstants.kt"); - } - - @TestMetadata("stringTemplateWithVal.kt") - public void testStringTemplateWithVal() throws Exception { - runTest("../../../idea/tests/testData/quickfix/replaceJvmFieldWithConst/stringTemplateWithVal.kt"); - } - - @TestMetadata("toplevel.kt") - public void testToplevel() throws Exception { - runTest("../../../idea/tests/testData/quickfix/replaceJvmFieldWithConst/toplevel.kt"); - } - } - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/restrictedRetentionForExpressionAnnotation") - public abstract static class RestrictedRetentionForExpressionAnnotation extends AbstractHighLevelQuickFixTest { - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/restrictedRetentionForExpressionAnnotation/addSourceRetention") - public static class AddSourceRetention extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("binaryRetention.kt") - public void testBinaryRetention() throws Exception { - runTest("../../../idea/tests/testData/quickfix/restrictedRetentionForExpressionAnnotation/addSourceRetention/binaryRetention.kt"); - } - - @TestMetadata("emptyRetention.kt") - public void testEmptyRetention() throws Exception { - runTest("../../../idea/tests/testData/quickfix/restrictedRetentionForExpressionAnnotation/addSourceRetention/emptyRetention.kt"); - } - - @TestMetadata("emptyRetention2.kt") - public void testEmptyRetention2() throws Exception { - runTest("../../../idea/tests/testData/quickfix/restrictedRetentionForExpressionAnnotation/addSourceRetention/emptyRetention2.kt"); - } - - @TestMetadata("noRetention.kt") - public void testNoRetention() throws Exception { - runTest("../../../idea/tests/testData/quickfix/restrictedRetentionForExpressionAnnotation/addSourceRetention/noRetention.kt"); - } - - @TestMetadata("noRetention2.kt") - public void testNoRetention2() throws Exception { - runTest("../../../idea/tests/testData/quickfix/restrictedRetentionForExpressionAnnotation/addSourceRetention/noRetention2.kt"); - } - } - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/restrictedRetentionForExpressionAnnotation/changeRetentionToSource") - public static class ChangeRetentionToSource extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("binaryRetention.kt") - public void testBinaryRetention() throws Exception { - runTest("../../../idea/tests/testData/quickfix/restrictedRetentionForExpressionAnnotation/changeRetentionToSource/binaryRetention.kt"); - } - - @TestMetadata("emptyRetention.kt") - public void testEmptyRetention() throws Exception { - runTest("../../../idea/tests/testData/quickfix/restrictedRetentionForExpressionAnnotation/changeRetentionToSource/emptyRetention.kt"); - } - - @TestMetadata("emptyRetention2.kt") - public void testEmptyRetention2() throws Exception { - runTest("../../../idea/tests/testData/quickfix/restrictedRetentionForExpressionAnnotation/changeRetentionToSource/emptyRetention2.kt"); - } - - @TestMetadata("emptyRetention3.kt") - public void testEmptyRetention3() throws Exception { - runTest("../../../idea/tests/testData/quickfix/restrictedRetentionForExpressionAnnotation/changeRetentionToSource/emptyRetention3.kt"); - } - - @TestMetadata("noRetention.kt") - public void testNoRetention() throws Exception { - runTest("../../../idea/tests/testData/quickfix/restrictedRetentionForExpressionAnnotation/changeRetentionToSource/noRetention.kt"); - } - } - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/restrictedRetentionForExpressionAnnotation/removeExpressionTarget") - public static class RemoveExpressionTarget extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("binaryRetention.kt") - public void testBinaryRetention() throws Exception { - runTest("../../../idea/tests/testData/quickfix/restrictedRetentionForExpressionAnnotation/removeExpressionTarget/binaryRetention.kt"); - } - - @TestMetadata("emptyRetention.kt") - public void testEmptyRetention() throws Exception { - runTest("../../../idea/tests/testData/quickfix/restrictedRetentionForExpressionAnnotation/removeExpressionTarget/emptyRetention.kt"); - } - - @TestMetadata("emptyRetention2.kt") - public void testEmptyRetention2() throws Exception { - runTest("../../../idea/tests/testData/quickfix/restrictedRetentionForExpressionAnnotation/removeExpressionTarget/emptyRetention2.kt"); - } - - @TestMetadata("multipleTargets.kt") - public void testMultipleTargets() throws Exception { - runTest("../../../idea/tests/testData/quickfix/restrictedRetentionForExpressionAnnotation/removeExpressionTarget/multipleTargets.kt"); - } - - @TestMetadata("multipleTargetsImported.kt") - public void testMultipleTargetsImported() throws Exception { - runTest("../../../idea/tests/testData/quickfix/restrictedRetentionForExpressionAnnotation/removeExpressionTarget/multipleTargetsImported.kt"); - } - - @TestMetadata("noRetention.kt") - public void testNoRetention() throws Exception { - runTest("../../../idea/tests/testData/quickfix/restrictedRetentionForExpressionAnnotation/removeExpressionTarget/noRetention.kt"); - } - } - } - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/simplifyComparison") - public static class SimplifyComparison extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("doubleNull.kt") - public void testDoubleNull() throws Exception { - runTest("../../../idea/tests/testData/quickfix/simplifyComparison/doubleNull.kt"); - } - - @TestMetadata("notNull.kt") - public void testNotNull() throws Exception { - runTest("../../../idea/tests/testData/quickfix/simplifyComparison/notNull.kt"); - } - - @TestMetadata("nullOrNotNull.kt") - public void testNullOrNotNull() throws Exception { - runTest("../../../idea/tests/testData/quickfix/simplifyComparison/nullOrNotNull.kt"); - } - - @TestMetadata("somethingAndNotNull.kt") - public void testSomethingAndNotNull() throws Exception { - runTest("../../../idea/tests/testData/quickfix/simplifyComparison/somethingAndNotNull.kt"); - } - - @TestMetadata("withAssertion.kt") - public void testWithAssertion() throws Exception { - runTest("../../../idea/tests/testData/quickfix/simplifyComparison/withAssertion.kt"); - } - - @TestMetadata("withAssertion2.kt") - public void testWithAssertion2() throws Exception { - runTest("../../../idea/tests/testData/quickfix/simplifyComparison/withAssertion2.kt"); - } - - @TestMetadata("withAssertion3.kt") - public void testWithAssertion3() throws Exception { - runTest("../../../idea/tests/testData/quickfix/simplifyComparison/withAssertion3.kt"); - } - } - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/simplifyExpression") - public static class SimplifyExpression extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("constantFalse.kt") - public void testConstantFalse() throws Exception { - runTest("../../../idea/tests/testData/quickfix/simplifyExpression/constantFalse.kt"); - } - - @TestMetadata("constantFalseIfElseIf.kt") - public void testConstantFalseIfElseIf() throws Exception { - runTest("../../../idea/tests/testData/quickfix/simplifyExpression/constantFalseIfElseIf.kt"); - } - - @TestMetadata("constantFalseIfElseIfElse.kt") - public void testConstantFalseIfElseIfElse() throws Exception { - runTest("../../../idea/tests/testData/quickfix/simplifyExpression/constantFalseIfElseIfElse.kt"); - } - - @TestMetadata("constantFalseIfElseIfElseIfFirstBranch.kt") - public void testConstantFalseIfElseIfElseIfFirstBranch() throws Exception { - runTest("../../../idea/tests/testData/quickfix/simplifyExpression/constantFalseIfElseIfElseIfFirstBranch.kt"); - } - - @TestMetadata("constantFalseIfElseIfElseIfSecondBranch.kt") - public void testConstantFalseIfElseIfElseIfSecondBranch() throws Exception { - runTest("../../../idea/tests/testData/quickfix/simplifyExpression/constantFalseIfElseIfElseIfSecondBranch.kt"); - } - - @TestMetadata("constantNull.kt") - public void testConstantNull() throws Exception { - runTest("../../../idea/tests/testData/quickfix/simplifyExpression/constantNull.kt"); - } - - @TestMetadata("constantTrue.kt") - public void testConstantTrue() throws Exception { - runTest("../../../idea/tests/testData/quickfix/simplifyExpression/constantTrue.kt"); - } - - @TestMetadata("constantTrueIfElseIf.kt") - public void testConstantTrueIfElseIf() throws Exception { - runTest("../../../idea/tests/testData/quickfix/simplifyExpression/constantTrueIfElseIf.kt"); - } - - @TestMetadata("constantTrueIfElseIfElseIfFirstCondition.kt") - public void testConstantTrueIfElseIfElseIfFirstCondition() throws Exception { - runTest("../../../idea/tests/testData/quickfix/simplifyExpression/constantTrueIfElseIfElseIfFirstCondition.kt"); - } - - @TestMetadata("constantTrueIfElseIfElseIfSecondCondition.kt") - public void testConstantTrueIfElseIfElseIfSecondCondition() throws Exception { - runTest("../../../idea/tests/testData/quickfix/simplifyExpression/constantTrueIfElseIfElseIfSecondCondition.kt"); - } - - @TestMetadata("constantTrueIfElseIfFirstCondition.kt") - public void testConstantTrueIfElseIfFirstCondition() throws Exception { - runTest("../../../idea/tests/testData/quickfix/simplifyExpression/constantTrueIfElseIfFirstCondition.kt"); - } - - @TestMetadata("constantTrueIfElseIfFirstConditionCommentsMultipleStatements.kt") - public void testConstantTrueIfElseIfFirstConditionCommentsMultipleStatements() throws Exception { - runTest("../../../idea/tests/testData/quickfix/simplifyExpression/constantTrueIfElseIfFirstConditionCommentsMultipleStatements.kt"); - } - - @TestMetadata("constantTrueIfElseIfFirstConditionCommentsSingleStatement.kt") - public void testConstantTrueIfElseIfFirstConditionCommentsSingleStatement() throws Exception { - runTest("../../../idea/tests/testData/quickfix/simplifyExpression/constantTrueIfElseIfFirstConditionCommentsSingleStatement.kt"); - } - - @TestMetadata("constantZeroListIsEmpty.kt") - public void testConstantZeroListIsEmpty() throws Exception { - runTest("../../../idea/tests/testData/quickfix/simplifyExpression/constantZeroListIsEmpty.kt"); - } - - @TestMetadata("constantZeroListOf.kt") - public void testConstantZeroListOf() throws Exception { - runTest("../../../idea/tests/testData/quickfix/simplifyExpression/constantZeroListOf.kt"); - } - - @TestMetadata("notNullSideEffect.kt") - public void testNotNullSideEffect() throws Exception { - runTest("../../../idea/tests/testData/quickfix/simplifyExpression/notNullSideEffect.kt"); - } - } - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/smartCastImpossibleInIfThen") - public static class SmartCastImpossibleInIfThen extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("ifThen.kt") - public void testIfThen() throws Exception { - runTest("../../../idea/tests/testData/quickfix/smartCastImpossibleInIfThen/ifThen.kt"); - } - - @TestMetadata("ifThen2.kt") - public void testIfThen2() throws Exception { - runTest("../../../idea/tests/testData/quickfix/smartCastImpossibleInIfThen/ifThen2.kt"); - } - - @TestMetadata("ifThen3.kt") - public void testIfThen3() throws Exception { - runTest("../../../idea/tests/testData/quickfix/smartCastImpossibleInIfThen/ifThen3.kt"); - } - - @TestMetadata("ifThen4.kt") - public void testIfThen4() throws Exception { - runTest("../../../idea/tests/testData/quickfix/smartCastImpossibleInIfThen/ifThen4.kt"); - } - - @TestMetadata("ifThen5.kt") - public void testIfThen5() throws Exception { - runTest("../../../idea/tests/testData/quickfix/smartCastImpossibleInIfThen/ifThen5.kt"); - } - - @TestMetadata("ifThenElse.kt") - public void testIfThenElse() throws Exception { - runTest("../../../idea/tests/testData/quickfix/smartCastImpossibleInIfThen/ifThenElse.kt"); - } - - @TestMetadata("ifThenElse2.kt") - public void testIfThenElse2() throws Exception { - runTest("../../../idea/tests/testData/quickfix/smartCastImpossibleInIfThen/ifThenElse2.kt"); - } - - @TestMetadata("ifThenElse3.kt") - public void testIfThenElse3() throws Exception { - runTest("../../../idea/tests/testData/quickfix/smartCastImpossibleInIfThen/ifThenElse3.kt"); - } - - @TestMetadata("ifThenElse4.kt") - public void testIfThenElse4() throws Exception { - runTest("../../../idea/tests/testData/quickfix/smartCastImpossibleInIfThen/ifThenElse4.kt"); - } - - @TestMetadata("ifThenElse5.kt") - public void testIfThenElse5() throws Exception { - runTest("../../../idea/tests/testData/quickfix/smartCastImpossibleInIfThen/ifThenElse5.kt"); - } - - @TestMetadata("ifThenElseMultiStatement.kt") - public void testIfThenElseMultiStatement() throws Exception { - runTest("../../../idea/tests/testData/quickfix/smartCastImpossibleInIfThen/ifThenElseMultiStatement.kt"); - } - - @TestMetadata("ifThenMultiStatement.kt") - public void testIfThenMultiStatement() throws Exception { - runTest("../../../idea/tests/testData/quickfix/smartCastImpossibleInIfThen/ifThenMultiStatement.kt"); - } - - @TestMetadata("ifThenNotNullNegateClause.kt") - public void testIfThenNotNullNegateClause() throws Exception { - runTest("../../../idea/tests/testData/quickfix/smartCastImpossibleInIfThen/ifThenNotNullNegateClause.kt"); - } - } - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/specifyAllRemainingArgumentsByName") - public static class SpecifyAllRemainingArgumentsByName extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("class.kt") - public void testClass() throws Exception { - runTest("../../../idea/tests/testData/quickfix/specifyAllRemainingArgumentsByName/class.kt"); - } - - @TestMetadata("conflictingSignatures.kt") - public void testConflictingSignatures() throws Exception { - runTest("../../../idea/tests/testData/quickfix/specifyAllRemainingArgumentsByName/conflictingSignatures.kt"); - } - - @TestMetadata("existingNamedArguments.kt") - public void testExistingNamedArguments() throws Exception { - runTest("../../../idea/tests/testData/quickfix/specifyAllRemainingArgumentsByName/existingNamedArguments.kt"); - } - - @TestMetadata("existingNamedArgumentsWithLambda.kt") - public void testExistingNamedArgumentsWithLambda() throws Exception { - runTest("../../../idea/tests/testData/quickfix/specifyAllRemainingArgumentsByName/existingNamedArgumentsWithLambda.kt"); - } - - @TestMetadata("existingNewline.kt") - public void testExistingNewline() throws Exception { - runTest("../../../idea/tests/testData/quickfix/specifyAllRemainingArgumentsByName/existingNewline.kt"); - } - - @TestMetadata("existingNewlineAndArgument.kt") - public void testExistingNewlineAndArgument() throws Exception { - runTest("../../../idea/tests/testData/quickfix/specifyAllRemainingArgumentsByName/existingNewlineAndArgument.kt"); - } - - @TestMetadata("functionOverloadsWithDefaults.kt") - public void testFunctionOverloadsWithDefaults() throws Exception { - runTest("../../../idea/tests/testData/quickfix/specifyAllRemainingArgumentsByName/functionOverloadsWithDefaults.kt"); - } - - @TestMetadata("incorrectSignature.kt") - public void testIncorrectSignature() throws Exception { - runTest("../../../idea/tests/testData/quickfix/specifyAllRemainingArgumentsByName/incorrectSignature.kt"); - } - - @TestMetadata("javaFunction.kt") - public void testJavaFunction() throws Exception { - runTest("../../../idea/tests/testData/quickfix/specifyAllRemainingArgumentsByName/javaFunction.kt"); - } - - @TestMetadata("multipleArguments.kt") - public void testMultipleArguments() throws Exception { - runTest("../../../idea/tests/testData/quickfix/specifyAllRemainingArgumentsByName/multipleArguments.kt"); - } - - @TestMetadata("multipleOverloads.kt") - public void testMultipleOverloads() throws Exception { - runTest("../../../idea/tests/testData/quickfix/specifyAllRemainingArgumentsByName/multipleOverloads.kt"); - } - - @TestMetadata("nested.kt") - public void testNested() throws Exception { - runTest("../../../idea/tests/testData/quickfix/specifyAllRemainingArgumentsByName/nested.kt"); - } - - @TestMetadata("nestedFullySpecified.kt") - public void testNestedFullySpecified() throws Exception { - runTest("../../../idea/tests/testData/quickfix/specifyAllRemainingArgumentsByName/nestedFullySpecified.kt"); - } - - @TestMetadata("noArguments.kt") - public void testNoArguments() throws Exception { - runTest("../../../idea/tests/testData/quickfix/specifyAllRemainingArgumentsByName/noArguments.kt"); - } - - @TestMetadata("noArgumentsWithReceiver.kt") - public void testNoArgumentsWithReceiver() throws Exception { - runTest("../../../idea/tests/testData/quickfix/specifyAllRemainingArgumentsByName/noArgumentsWithReceiver.kt"); - } - - @TestMetadata("noNameProvided.kt") - public void testNoNameProvided() throws Exception { - runTest("../../../idea/tests/testData/quickfix/specifyAllRemainingArgumentsByName/noNameProvided.kt"); - } - - @TestMetadata("onlyVararg.kt") - public void testOnlyVararg() throws Exception { - runTest("../../../idea/tests/testData/quickfix/specifyAllRemainingArgumentsByName/onlyVararg.kt"); - } - - @TestMetadata("partiallySpecified.kt") - public void testPartiallySpecified() throws Exception { - runTest("../../../idea/tests/testData/quickfix/specifyAllRemainingArgumentsByName/partiallySpecified.kt"); - } - - @TestMetadata("quotedName.kt") - public void testQuotedName() throws Exception { - runTest("../../../idea/tests/testData/quickfix/specifyAllRemainingArgumentsByName/quotedName.kt"); - } - - @TestMetadata("receiverArgument.kt") - public void testReceiverArgument() throws Exception { - runTest("../../../idea/tests/testData/quickfix/specifyAllRemainingArgumentsByName/receiverArgument.kt"); - } - - @TestMetadata("sameLineAsArgument.kt") - public void testSameLineAsArgument() throws Exception { - runTest("../../../idea/tests/testData/quickfix/specifyAllRemainingArgumentsByName/sameLineAsArgument.kt"); - } - - @TestMetadata("simpleFunctionOverload.kt") - public void testSimpleFunctionOverload() throws Exception { - runTest("../../../idea/tests/testData/quickfix/specifyAllRemainingArgumentsByName/simpleFunctionOverload.kt"); - } - - @TestMetadata("singleArgument.kt") - public void testSingleArgument() throws Exception { - runTest("../../../idea/tests/testData/quickfix/specifyAllRemainingArgumentsByName/singleArgument.kt"); - } - - @TestMetadata("trailingComma.kt") - public void testTrailingComma() throws Exception { - runTest("../../../idea/tests/testData/quickfix/specifyAllRemainingArgumentsByName/trailingComma.kt"); - } - - @TestMetadata("vararg.kt") - public void testVararg() throws Exception { - runTest("../../../idea/tests/testData/quickfix/specifyAllRemainingArgumentsByName/vararg.kt"); - } - } - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/specifyOverrideExplicitly") - public static class SpecifyOverrideExplicitly extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("base.kt") - public void testBase() throws Exception { - runTest("../../../idea/tests/testData/quickfix/specifyOverrideExplicitly/base.kt"); - } - - @TestMetadata("global.kt") - public void testGlobal() throws Exception { - runTest("../../../idea/tests/testData/quickfix/specifyOverrideExplicitly/global.kt"); - } - - @TestMetadata("lists.kt") - public void testLists() throws Exception { - runTest("../../../idea/tests/testData/quickfix/specifyOverrideExplicitly/lists.kt"); - } - - @TestMetadata("lists2.kt") - public void testLists2() throws Exception { - runTest("../../../idea/tests/testData/quickfix/specifyOverrideExplicitly/lists2.kt"); - } - - @TestMetadata("notPossible.kt") - public void testNotPossible() throws Exception { - runTest("../../../idea/tests/testData/quickfix/specifyOverrideExplicitly/notPossible.kt"); - } - - @TestMetadata("objectDeclaration.kt") - public void testObjectDeclaration() throws Exception { - runTest("../../../idea/tests/testData/quickfix/specifyOverrideExplicitly/objectDeclaration.kt"); - } - - @TestMetadata("outer.kt") - public void testOuter() throws Exception { - runTest("../../../idea/tests/testData/quickfix/specifyOverrideExplicitly/outer.kt"); - } - - @TestMetadata("property.kt") - public void testProperty() throws Exception { - runTest("../../../idea/tests/testData/quickfix/specifyOverrideExplicitly/property.kt"); - } - } - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/specifyRemainingRequiredArgumentsByName") - public static class SpecifyRemainingRequiredArgumentsByName extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("allArgumentsOptional.kt") - public void testAllArgumentsOptional() throws Exception { - runTest("../../../idea/tests/testData/quickfix/specifyRemainingRequiredArgumentsByName/allArgumentsOptional.kt"); - } - - @TestMetadata("allArgumentsRequired.kt") - public void testAllArgumentsRequired() throws Exception { - runTest("../../../idea/tests/testData/quickfix/specifyRemainingRequiredArgumentsByName/allArgumentsRequired.kt"); - } - - @TestMetadata("conflictingSignatures.kt") - public void testConflictingSignatures() throws Exception { - runTest("../../../idea/tests/testData/quickfix/specifyRemainingRequiredArgumentsByName/conflictingSignatures.kt"); - } - - @TestMetadata("functionOverloadsWithDefaults.kt") - public void testFunctionOverloadsWithDefaults() throws Exception { - runTest("../../../idea/tests/testData/quickfix/specifyRemainingRequiredArgumentsByName/functionOverloadsWithDefaults.kt"); - } - - @TestMetadata("multipleOptionalArguments.kt") - public void testMultipleOptionalArguments() throws Exception { - runTest("../../../idea/tests/testData/quickfix/specifyRemainingRequiredArgumentsByName/multipleOptionalArguments.kt"); - } - - @TestMetadata("simpleFunctionOverload.kt") - public void testSimpleFunctionOverload() throws Exception { - runTest("../../../idea/tests/testData/quickfix/specifyRemainingRequiredArgumentsByName/simpleFunctionOverload.kt"); - } - - @TestMetadata("singleArgument.kt") - public void testSingleArgument() throws Exception { - runTest("../../../idea/tests/testData/quickfix/specifyRemainingRequiredArgumentsByName/singleArgument.kt"); - } - - @TestMetadata("singleArgumentAndVararg.kt") - public void testSingleArgumentAndVararg() throws Exception { - runTest("../../../idea/tests/testData/quickfix/specifyRemainingRequiredArgumentsByName/singleArgumentAndVararg.kt"); - } - - @TestMetadata("singleRequiredArgument.kt") - public void testSingleRequiredArgument() throws Exception { - runTest("../../../idea/tests/testData/quickfix/specifyRemainingRequiredArgumentsByName/singleRequiredArgument.kt"); - } - } - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/specifySuperExplicitly") - public static class SpecifySuperExplicitly extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("abstractSuperCall.kt") - public void testAbstractSuperCall() throws Exception { - runTest("../../../idea/tests/testData/quickfix/specifySuperExplicitly/abstractSuperCall.kt"); - } - - @TestMetadata("abstractSuperCall2.kt") - public void testAbstractSuperCall2() throws Exception { - runTest("../../../idea/tests/testData/quickfix/specifySuperExplicitly/abstractSuperCall2.kt"); - } - - @TestMetadata("abstractSuperCall3.kt") - public void testAbstractSuperCall3() throws Exception { - runTest("../../../idea/tests/testData/quickfix/specifySuperExplicitly/abstractSuperCall3.kt"); - } - - @TestMetadata("abstractSuperCallEquals.kt") - public void testAbstractSuperCallEquals() throws Exception { - runTest("../../../idea/tests/testData/quickfix/specifySuperExplicitly/abstractSuperCallEquals.kt"); - } - - @TestMetadata("abstractSuperCallFromNested.kt") - public void testAbstractSuperCallFromNested() throws Exception { - runTest("../../../idea/tests/testData/quickfix/specifySuperExplicitly/abstractSuperCallFromNested.kt"); - } - - @TestMetadata("abstractSuperCallFromObject.kt") - public void testAbstractSuperCallFromObject() throws Exception { - runTest("../../../idea/tests/testData/quickfix/specifySuperExplicitly/abstractSuperCallFromObject.kt"); - } - - @TestMetadata("abstractSuperCallHashCode.kt") - public void testAbstractSuperCallHashCode() throws Exception { - runTest("../../../idea/tests/testData/quickfix/specifySuperExplicitly/abstractSuperCallHashCode.kt"); - } - - @TestMetadata("abstractSuperCallToString.kt") - public void testAbstractSuperCallToString() throws Exception { - runTest("../../../idea/tests/testData/quickfix/specifySuperExplicitly/abstractSuperCallToString.kt"); - } - - @TestMetadata("abstractSuperCallWithExplicitSuper.kt") - public void testAbstractSuperCallWithExplicitSuper() throws Exception { - runTest("../../../idea/tests/testData/quickfix/specifySuperExplicitly/abstractSuperCallWithExplicitSuper.kt"); - } - - @TestMetadata("abstractSuperCallWithExplicitSuper2.kt") - public void testAbstractSuperCallWithExplicitSuper2() throws Exception { - runTest("../../../idea/tests/testData/quickfix/specifySuperExplicitly/abstractSuperCallWithExplicitSuper2.kt"); - } - } - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/specifyTypeExplicitly") - public static class SpecifyTypeExplicitly extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("approximatedLocalTypeWillBecomeNullable.kt") - public void testApproximatedLocalTypeWillBecomeNullable() throws Exception { - runTest("../../../idea/tests/testData/quickfix/specifyTypeExplicitly/approximatedLocalTypeWillBecomeNullable.kt"); - } - } - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/superTypeIsExtensionType") - public static class SuperTypeIsExtensionType extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("typeWith1Argument.kt") - public void testTypeWith1Argument() throws Exception { - runTest("../../../idea/tests/testData/quickfix/superTypeIsExtensionType/typeWith1Argument.kt"); - } - - @TestMetadata("typeWithAnnotations.kt") - public void testTypeWithAnnotations() throws Exception { - runTest("../../../idea/tests/testData/quickfix/superTypeIsExtensionType/typeWithAnnotations.kt"); - } - - @TestMetadata("typeWithNoArgument.kt") - public void testTypeWithNoArgument() throws Exception { - runTest("../../../idea/tests/testData/quickfix/superTypeIsExtensionType/typeWithNoArgument.kt"); - } - - @TestMetadata("typeWithTypeArgument.kt") - public void testTypeWithTypeArgument() throws Exception { - runTest("../../../idea/tests/testData/quickfix/superTypeIsExtensionType/typeWithTypeArgument.kt"); - } - } - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/surroundWithNullCheck") - public static class SurroundWithNullCheck extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("argumentNullable.kt") - public void testArgumentNullable() throws Exception { - runTest("../../../idea/tests/testData/quickfix/surroundWithNullCheck/argumentNullable.kt"); - } - - @TestMetadata("assignment.kt") - public void testAssignment() throws Exception { - runTest("../../../idea/tests/testData/quickfix/surroundWithNullCheck/assignment.kt"); - } - - @TestMetadata("chainedUnsafeCall.kt") - public void testChainedUnsafeCall() throws Exception { - runTest("../../../idea/tests/testData/quickfix/surroundWithNullCheck/chainedUnsafeCall.kt"); - } - - @TestMetadata("expressionUnsafeCall.kt") - public void testExpressionUnsafeCall() throws Exception { - runTest("../../../idea/tests/testData/quickfix/surroundWithNullCheck/expressionUnsafeCall.kt"); - } - - @TestMetadata("in.kt") - public void testIn() throws Exception { - runTest("../../../idea/tests/testData/quickfix/surroundWithNullCheck/in.kt"); - } - - @TestMetadata("inLambda.kt") - public void testInLambda() throws Exception { - runTest("../../../idea/tests/testData/quickfix/surroundWithNullCheck/inLambda.kt"); - } - - @TestMetadata("inLambda2.kt") - public void testInLambda2() throws Exception { - runTest("../../../idea/tests/testData/quickfix/surroundWithNullCheck/inLambda2.kt"); - } - - @TestMetadata("inLambda3.kt") - public void testInLambda3() throws Exception { - runTest("../../../idea/tests/testData/quickfix/surroundWithNullCheck/inLambda3.kt"); - } - - @TestMetadata("infixUnsafeCall.kt") - public void testInfixUnsafeCall() throws Exception { - runTest("../../../idea/tests/testData/quickfix/surroundWithNullCheck/infixUnsafeCall.kt"); - } - - @TestMetadata("invokeFuncUnsafe.kt") - public void testInvokeFuncUnsafe() throws Exception { - runTest("../../../idea/tests/testData/quickfix/surroundWithNullCheck/invokeFuncUnsafe.kt"); - } - - @TestMetadata("invokeUnsafe.kt") - public void testInvokeUnsafe() throws Exception { - runTest("../../../idea/tests/testData/quickfix/surroundWithNullCheck/invokeUnsafe.kt"); - } - - @TestMetadata("iteratorUnsafe.kt") - public void testIteratorUnsafe() throws Exception { - runTest("../../../idea/tests/testData/quickfix/surroundWithNullCheck/iteratorUnsafe.kt"); - } - - @TestMetadata("nullableInCondition.kt") - public void testNullableInCondition() throws Exception { - runTest("../../../idea/tests/testData/quickfix/surroundWithNullCheck/nullableInCondition.kt"); - } - - @TestMetadata("objectNestedQualifiers.kt") - public void testObjectNestedQualifiers() throws Exception { - runTest("../../../idea/tests/testData/quickfix/surroundWithNullCheck/objectNestedQualifiers.kt"); - } - - @TestMetadata("objectQualifier.kt") - public void testObjectQualifier() throws Exception { - runTest("../../../idea/tests/testData/quickfix/surroundWithNullCheck/objectQualifier.kt"); - } - - @TestMetadata("simpleUnsafeCall.kt") - public void testSimpleUnsafeCall() throws Exception { - runTest("../../../idea/tests/testData/quickfix/surroundWithNullCheck/simpleUnsafeCall.kt"); - } - - @TestMetadata("unsafeCallInBinary.kt") - public void testUnsafeCallInBinary() throws Exception { - runTest("../../../idea/tests/testData/quickfix/surroundWithNullCheck/unsafeCallInBinary.kt"); - } - - @TestMetadata("unsafeCallInDeclaration.kt") - public void testUnsafeCallInDeclaration() throws Exception { - runTest("../../../idea/tests/testData/quickfix/surroundWithNullCheck/unsafeCallInDeclaration.kt"); - } - - @TestMetadata("unsafeCallInGetter.kt") - public void testUnsafeCallInGetter() throws Exception { - runTest("../../../idea/tests/testData/quickfix/surroundWithNullCheck/unsafeCallInGetter.kt"); - } - - @TestMetadata("unsafeCallInsideAnonymous.kt") - public void testUnsafeCallInsideAnonymous() throws Exception { - runTest("../../../idea/tests/testData/quickfix/surroundWithNullCheck/unsafeCallInsideAnonymous.kt"); - } - - @TestMetadata("unsafeCallInsideIf.kt") - public void testUnsafeCallInsideIf() throws Exception { - runTest("../../../idea/tests/testData/quickfix/surroundWithNullCheck/unsafeCallInsideIf.kt"); - } - - @TestMetadata("unsafeCallInsideWhen.kt") - public void testUnsafeCallInsideWhen() throws Exception { - runTest("../../../idea/tests/testData/quickfix/surroundWithNullCheck/unsafeCallInsideWhen.kt"); - } - - @TestMetadata("unsafeCallInsideWhile.kt") - public void testUnsafeCallInsideWhile() throws Exception { - runTest("../../../idea/tests/testData/quickfix/surroundWithNullCheck/unsafeCallInsideWhile.kt"); - } - - @TestMetadata("unstableTopLevelValueWithGetter.kt") - public void testUnstableTopLevelValueWithGetter() throws Exception { - runTest("../../../idea/tests/testData/quickfix/surroundWithNullCheck/unstableTopLevelValueWithGetter.kt"); - } - - @TestMetadata("unstableTopLevelVariable.kt") - public void testUnstableTopLevelVariable() throws Exception { - runTest("../../../idea/tests/testData/quickfix/surroundWithNullCheck/unstableTopLevelVariable.kt"); - } - - @TestMetadata("unstableValue.kt") - public void testUnstableValue() throws Exception { - runTest("../../../idea/tests/testData/quickfix/surroundWithNullCheck/unstableValue.kt"); - } - } - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/suspiciousCollectionReassignment") - public abstract static class SuspiciousCollectionReassignment extends AbstractHighLevelQuickFixTest { - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/suspiciousCollectionReassignment/changeTypeToMutable") - public static class ChangeTypeToMutable extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("hasType.kt") - public void testHasType() throws Exception { - runTest("../../../idea/tests/testData/quickfix/suspiciousCollectionReassignment/changeTypeToMutable/hasType.kt"); - } - - @TestMetadata("hasType2.kt") - public void testHasType2() throws Exception { - runTest("../../../idea/tests/testData/quickfix/suspiciousCollectionReassignment/changeTypeToMutable/hasType2.kt"); - } - - @TestMetadata("mutableListOf.kt") - public void testMutableListOf() throws Exception { - runTest("../../../idea/tests/testData/quickfix/suspiciousCollectionReassignment/changeTypeToMutable/mutableListOf.kt"); - } - - @TestMetadata("mutableMapOf.kt") - public void testMutableMapOf() throws Exception { - runTest("../../../idea/tests/testData/quickfix/suspiciousCollectionReassignment/changeTypeToMutable/mutableMapOf.kt"); - } - - @TestMetadata("mutableSetOf.kt") - public void testMutableSetOf() throws Exception { - runTest("../../../idea/tests/testData/quickfix/suspiciousCollectionReassignment/changeTypeToMutable/mutableSetOf.kt"); - } - - @TestMetadata("noInitializer.kt") - public void testNoInitializer() throws Exception { - runTest("../../../idea/tests/testData/quickfix/suspiciousCollectionReassignment/changeTypeToMutable/noInitializer.kt"); - } - - @TestMetadata("notLocal.kt") - public void testNotLocal() throws Exception { - runTest("../../../idea/tests/testData/quickfix/suspiciousCollectionReassignment/changeTypeToMutable/notLocal.kt"); - } - - @TestMetadata("toMutableList.kt") - public void testToMutableList() throws Exception { - runTest("../../../idea/tests/testData/quickfix/suspiciousCollectionReassignment/changeTypeToMutable/toMutableList.kt"); - } - - @TestMetadata("toMutableList2.kt") - public void testToMutableList2() throws Exception { - runTest("../../../idea/tests/testData/quickfix/suspiciousCollectionReassignment/changeTypeToMutable/toMutableList2.kt"); - } - - @TestMetadata("toMutableMap.kt") - public void testToMutableMap() throws Exception { - runTest("../../../idea/tests/testData/quickfix/suspiciousCollectionReassignment/changeTypeToMutable/toMutableMap.kt"); - } - - @TestMetadata("toMutableSet.kt") - public void testToMutableSet() throws Exception { - runTest("../../../idea/tests/testData/quickfix/suspiciousCollectionReassignment/changeTypeToMutable/toMutableSet.kt"); - } - } - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/suspiciousCollectionReassignment/joinWithInitializer") - public static class JoinWithInitializer extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("noInitializer.kt") - public void testNoInitializer() throws Exception { - runTest("../../../idea/tests/testData/quickfix/suspiciousCollectionReassignment/joinWithInitializer/noInitializer.kt"); - } - - @TestMetadata("notLocal.kt") - public void testNotLocal() throws Exception { - runTest("../../../idea/tests/testData/quickfix/suspiciousCollectionReassignment/joinWithInitializer/notLocal.kt"); - } - - @TestMetadata("simple.kt") - public void testSimple() throws Exception { - runTest("../../../idea/tests/testData/quickfix/suspiciousCollectionReassignment/joinWithInitializer/simple.kt"); - } - - @TestMetadata("used.kt") - public void testUsed() throws Exception { - runTest("../../../idea/tests/testData/quickfix/suspiciousCollectionReassignment/joinWithInitializer/used.kt"); - } - } - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/suspiciousCollectionReassignment/replaceWithAssignment") - public static class ReplaceWithAssignment extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("differentType.kt") - public void testDifferentType() throws Exception { - runTest("../../../idea/tests/testData/quickfix/suspiciousCollectionReassignment/replaceWithAssignment/differentType.kt"); - } - - @TestMetadata("emptyList.kt") - public void testEmptyList() throws Exception { - runTest("../../../idea/tests/testData/quickfix/suspiciousCollectionReassignment/replaceWithAssignment/emptyList.kt"); - } - - @TestMetadata("emptyListOf.kt") - public void testEmptyListOf() throws Exception { - runTest("../../../idea/tests/testData/quickfix/suspiciousCollectionReassignment/replaceWithAssignment/emptyListOf.kt"); - } - - @TestMetadata("emptyMap.kt") - public void testEmptyMap() throws Exception { - runTest("../../../idea/tests/testData/quickfix/suspiciousCollectionReassignment/replaceWithAssignment/emptyMap.kt"); - } - - @TestMetadata("emptyMapOf.kt") - public void testEmptyMapOf() throws Exception { - runTest("../../../idea/tests/testData/quickfix/suspiciousCollectionReassignment/replaceWithAssignment/emptyMapOf.kt"); - } - - @TestMetadata("emptySet.kt") - public void testEmptySet() throws Exception { - runTest("../../../idea/tests/testData/quickfix/suspiciousCollectionReassignment/replaceWithAssignment/emptySet.kt"); - } - - @TestMetadata("emptySetOf.kt") - public void testEmptySetOf() throws Exception { - runTest("../../../idea/tests/testData/quickfix/suspiciousCollectionReassignment/replaceWithAssignment/emptySetOf.kt"); - } - - @TestMetadata("listOf.kt") - public void testListOf() throws Exception { - runTest("../../../idea/tests/testData/quickfix/suspiciousCollectionReassignment/replaceWithAssignment/listOf.kt"); - } - - @TestMetadata("mapOf.kt") - public void testMapOf() throws Exception { - runTest("../../../idea/tests/testData/quickfix/suspiciousCollectionReassignment/replaceWithAssignment/mapOf.kt"); - } - - @TestMetadata("minusEq.kt") - public void testMinusEq() throws Exception { - runTest("../../../idea/tests/testData/quickfix/suspiciousCollectionReassignment/replaceWithAssignment/minusEq.kt"); - } - - @TestMetadata("noInitializer.kt") - public void testNoInitializer() throws Exception { - runTest("../../../idea/tests/testData/quickfix/suspiciousCollectionReassignment/replaceWithAssignment/noInitializer.kt"); - } - - @TestMetadata("notEmpty.kt") - public void testNotEmpty() throws Exception { - runTest("../../../idea/tests/testData/quickfix/suspiciousCollectionReassignment/replaceWithAssignment/notEmpty.kt"); - } - - @TestMetadata("notLocal.kt") - public void testNotLocal() throws Exception { - runTest("../../../idea/tests/testData/quickfix/suspiciousCollectionReassignment/replaceWithAssignment/notLocal.kt"); - } - - @TestMetadata("setOf.kt") - public void testSetOf() throws Exception { - runTest("../../../idea/tests/testData/quickfix/suspiciousCollectionReassignment/replaceWithAssignment/setOf.kt"); - } - - @TestMetadata("used.kt") - public void testUsed() throws Exception { - runTest("../../../idea/tests/testData/quickfix/suspiciousCollectionReassignment/replaceWithAssignment/used.kt"); - } - } - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/suspiciousCollectionReassignment/replaceWithFilter") - public static class ReplaceWithFilter extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("map.kt") - public void testMap() throws Exception { - runTest("../../../idea/tests/testData/quickfix/suspiciousCollectionReassignment/replaceWithFilter/map.kt"); - } - - @TestMetadata("minusEq.kt") - public void testMinusEq() throws Exception { - runTest("../../../idea/tests/testData/quickfix/suspiciousCollectionReassignment/replaceWithFilter/minusEq.kt"); - } - - @TestMetadata("notIterable.kt") - public void testNotIterable() throws Exception { - runTest("../../../idea/tests/testData/quickfix/suspiciousCollectionReassignment/replaceWithFilter/notIterable.kt"); - } - - @TestMetadata("plusEq.kt") - public void testPlusEq() throws Exception { - runTest("../../../idea/tests/testData/quickfix/suspiciousCollectionReassignment/replaceWithFilter/plusEq.kt"); - } - } - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/suspiciousCollectionReassignment/replaceWithOrdinaryAssignment") - public static class ReplaceWithOrdinaryAssignment extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("simple.kt") - public void testSimple() throws Exception { - runTest("../../../idea/tests/testData/quickfix/suspiciousCollectionReassignment/replaceWithOrdinaryAssignment/simple.kt"); - } - } - } - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/tooLongCharLiteralToString") - public static class TooLongCharLiteralToString extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("backslash.kt") - public void testBackslash() throws Exception { - runTest("../../../idea/tests/testData/quickfix/tooLongCharLiteralToString/backslash.kt"); - } - - @TestMetadata("backslashShouldNotBeEscaped.kt") - public void testBackslashShouldNotBeEscaped() throws Exception { - runTest("../../../idea/tests/testData/quickfix/tooLongCharLiteralToString/backslashShouldNotBeEscaped.kt"); - } - - @TestMetadata("dollarShouldNotBeEscaped.kt") - public void testDollarShouldNotBeEscaped() throws Exception { - runTest("../../../idea/tests/testData/quickfix/tooLongCharLiteralToString/dollarShouldNotBeEscaped.kt"); - } - - @TestMetadata("doubleQuotesShouldBeEscaped.kt") - public void testDoubleQuotesShouldBeEscaped() throws Exception { - runTest("../../../idea/tests/testData/quickfix/tooLongCharLiteralToString/doubleQuotesShouldBeEscaped.kt"); - } - - @TestMetadata("ecapedDoubleQuotesShouldNotBeEscaped.kt") - public void testEcapedDoubleQuotesShouldNotBeEscaped() throws Exception { - runTest("../../../idea/tests/testData/quickfix/tooLongCharLiteralToString/ecapedDoubleQuotesShouldNotBeEscaped.kt"); - } - - @TestMetadata("startWithBackslash.kt") - public void testStartWithBackslash() throws Exception { - runTest("../../../idea/tests/testData/quickfix/tooLongCharLiteralToString/startWithBackslash.kt"); - } - - @TestMetadata("startWithBackslashInString.kt") - public void testStartWithBackslashInString() throws Exception { - runTest("../../../idea/tests/testData/quickfix/tooLongCharLiteralToString/startWithBackslashInString.kt"); - } - } - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/typeImports") - public static class TypeImports extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("hasThisImport.kt") - public void testHasThisImport() throws Exception { - runTest("../../../idea/tests/testData/quickfix/typeImports/hasThisImport.kt"); - } - - @TestMetadata("noImportFromTheSameFile.kt") - public void testNoImportFromTheSameFile() throws Exception { - runTest("../../../idea/tests/testData/quickfix/typeImports/noImportFromTheSameFile.kt"); - } - - @TestMetadata("noImportJavaLang.kt") - public void testNoImportJavaLang() throws Exception { - runTest("../../../idea/tests/testData/quickfix/typeImports/noImportJavaLang.kt"); - } - - @TestMetadata("noImportJetStandard.kt") - public void testNoImportJetStandard() throws Exception { - runTest("../../../idea/tests/testData/quickfix/typeImports/noImportJetStandard.kt"); - } - - @TestMetadata("toImport1.kt") - public void testToImport1() throws Exception { - runTest("../../../idea/tests/testData/quickfix/typeImports/toImport1.kt"); - } - } - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/typeInferenceExpectedTypeMismatch") - public static class TypeInferenceExpectedTypeMismatch extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("argument.kt") - public void testArgument() throws Exception { - runTest("../../../idea/tests/testData/quickfix/typeInferenceExpectedTypeMismatch/argument.kt"); - } - - @TestMetadata("assignment.kt") - public void testAssignment() throws Exception { - runTest("../../../idea/tests/testData/quickfix/typeInferenceExpectedTypeMismatch/assignment.kt"); - } - - @TestMetadata("initializer.kt") - public void testInitializer() throws Exception { - runTest("../../../idea/tests/testData/quickfix/typeInferenceExpectedTypeMismatch/initializer.kt"); - } - - @TestMetadata("notKClass.kt") - public void testNotKClass() throws Exception { - runTest("../../../idea/tests/testData/quickfix/typeInferenceExpectedTypeMismatch/notKClass.kt"); - } - - @TestMetadata("return.kt") - public void testReturn() throws Exception { - runTest("../../../idea/tests/testData/quickfix/typeInferenceExpectedTypeMismatch/return.kt"); - } - } - @RunWith(JUnit3RunnerWithInners.class) @TestMetadata("../../../idea/tests/testData/quickfix/typeOfAnnotationMember") public static class TypeOfAnnotationMember extends AbstractHighLevelQuickFixTest { @@ -16290,79 +16033,6 @@ public abstract class HighLevelQuickFixTestGenerated extends AbstractHighLevelQu } } - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/renameUnresolvedReference") - public static class RenameUnresolvedReference extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("qualifiedFunRef.kt") - public void testQualifiedFunRef() throws Exception { - runTest("../../../idea/tests/testData/quickfix/renameUnresolvedReference/qualifiedFunRef.kt"); - } - - @TestMetadata("qualifiedPropertyRef.kt") - public void testQualifiedPropertyRef() throws Exception { - runTest("../../../idea/tests/testData/quickfix/renameUnresolvedReference/qualifiedPropertyRef.kt"); - } - - @TestMetadata("typeRef.kt") - public void testTypeRef() throws Exception { - runTest("../../../idea/tests/testData/quickfix/renameUnresolvedReference/typeRef.kt"); - } - - @TestMetadata("unqualifiedFunRef.kt") - public void testUnqualifiedFunRef() throws Exception { - runTest("../../../idea/tests/testData/quickfix/renameUnresolvedReference/unqualifiedFunRef.kt"); - } - - @TestMetadata("unqualifiedPropertyRef.kt") - public void testUnqualifiedPropertyRef() throws Exception { - runTest("../../../idea/tests/testData/quickfix/renameUnresolvedReference/unqualifiedPropertyRef.kt"); - } - - @TestMetadata("unqualifiedPropertyRefWithPackageError.kt") - public void testUnqualifiedPropertyRefWithPackageError() throws Exception { - runTest("../../../idea/tests/testData/quickfix/renameUnresolvedReference/unqualifiedPropertyRefWithPackageError.kt"); - } - } - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/removeRedundantLabel") - public static class RemoveRedundantLabel extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("simple.kt") - public void testSimple() throws Exception { - runTest("../../../idea/tests/testData/quickfix/removeRedundantLabel/simple.kt"); - } - - @TestMetadata("simple2.kt") - public void testSimple2() throws Exception { - runTest("../../../idea/tests/testData/quickfix/removeRedundantLabel/simple2.kt"); - } - - @TestMetadata("simple3.kt") - public void testSimple3() throws Exception { - runTest("../../../idea/tests/testData/quickfix/removeRedundantLabel/simple3.kt"); - } - } - @RunWith(JUnit3RunnerWithInners.class) @TestMetadata("../../../idea/tests/testData/quickfix/unnecessaryLateinit") public static class UnnecessaryLateinit extends AbstractHighLevelQuickFixTest { @@ -16751,6 +16421,225 @@ public abstract class HighLevelQuickFixTestGenerated extends AbstractHighLevelQu } } + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/when") + public static class When extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("addElseBranchBooleanWarning.kt") + public void testAddElseBranchBooleanWarning() throws Exception { + runTest("../../../idea/tests/testData/quickfix/when/addElseBranchBooleanWarning.kt"); + } + + @TestMetadata("addElseBranchEnumStatement.kt") + public void testAddElseBranchEnumStatement() throws Exception { + runTest("../../../idea/tests/testData/quickfix/when/addElseBranchEnumStatement.kt"); + } + + @TestMetadata("addElseBranchSealed.kt") + public void testAddElseBranchSealed() throws Exception { + runTest("../../../idea/tests/testData/quickfix/when/addElseBranchSealed.kt"); + } + + @TestMetadata("addElseBranchSealedWarning.kt") + public void testAddElseBranchSealedWarning() throws Exception { + runTest("../../../idea/tests/testData/quickfix/when/addElseBranchSealedWarning.kt"); + } + + @TestMetadata("addRemainingBranchesBlankLine.kt") + public void testAddRemainingBranchesBlankLine() throws Exception { + runTest("../../../idea/tests/testData/quickfix/when/addRemainingBranchesBlankLine.kt"); + } + + @TestMetadata("addRemainingBranchesBlankLineWithComment.kt") + public void testAddRemainingBranchesBlankLineWithComment() throws Exception { + runTest("../../../idea/tests/testData/quickfix/when/addRemainingBranchesBlankLineWithComment.kt"); + } + + @TestMetadata("addRemainingBranchesBoolean.kt") + public void testAddRemainingBranchesBoolean() throws Exception { + runTest("../../../idea/tests/testData/quickfix/when/addRemainingBranchesBoolean.kt"); + } + + @TestMetadata("addRemainingBranchesEnum.kt") + public void testAddRemainingBranchesEnum() throws Exception { + runTest("../../../idea/tests/testData/quickfix/when/addRemainingBranchesEnum.kt"); + } + + @TestMetadata("addRemainingBranchesEnumBackTicks.kt") + public void testAddRemainingBranchesEnumBackTicks() throws Exception { + runTest("../../../idea/tests/testData/quickfix/when/addRemainingBranchesEnumBackTicks.kt"); + } + + @TestMetadata("addRemainingBranchesEnumImport1.kt") + public void testAddRemainingBranchesEnumImport1() throws Exception { + runTest("../../../idea/tests/testData/quickfix/when/addRemainingBranchesEnumImport1.kt"); + } + + @TestMetadata("addRemainingBranchesEnumImport2.kt") + public void testAddRemainingBranchesEnumImport2() throws Exception { + runTest("../../../idea/tests/testData/quickfix/when/addRemainingBranchesEnumImport2.kt"); + } + + @TestMetadata("addRemainingBranchesEnumImport3.kt") + public void testAddRemainingBranchesEnumImport3() throws Exception { + runTest("../../../idea/tests/testData/quickfix/when/addRemainingBranchesEnumImport3.kt"); + } + + @TestMetadata("addRemainingBranchesEnumImport4.kt") + public void testAddRemainingBranchesEnumImport4() throws Exception { + runTest("../../../idea/tests/testData/quickfix/when/addRemainingBranchesEnumImport4.kt"); + } + + @TestMetadata("addRemainingBranchesEnumStatement.kt") + public void testAddRemainingBranchesEnumStatement() throws Exception { + runTest("../../../idea/tests/testData/quickfix/when/addRemainingBranchesEnumStatement.kt"); + } + + @TestMetadata("addRemainingBranchesGeneric.kt") + public void testAddRemainingBranchesGeneric() throws Exception { + runTest("../../../idea/tests/testData/quickfix/when/addRemainingBranchesGeneric.kt"); + } + + @TestMetadata("addRemainingBranchesGeneric2.kt") + public void testAddRemainingBranchesGeneric2() throws Exception { + runTest("../../../idea/tests/testData/quickfix/when/addRemainingBranchesGeneric2.kt"); + } + + @TestMetadata("addRemainingBranchesInNonDefaultPackage.kt") + public void testAddRemainingBranchesInNonDefaultPackage() throws Exception { + runTest("../../../idea/tests/testData/quickfix/when/addRemainingBranchesInNonDefaultPackage.kt"); + } + + @TestMetadata("addRemainingBranchesMissingLeftBracket.kt") + public void testAddRemainingBranchesMissingLeftBracket() throws Exception { + runTest("../../../idea/tests/testData/quickfix/when/addRemainingBranchesMissingLeftBracket.kt"); + } + + @TestMetadata("addRemainingBranchesMissingRightBracket.kt") + public void testAddRemainingBranchesMissingRightBracket() throws Exception { + runTest("../../../idea/tests/testData/quickfix/when/addRemainingBranchesMissingRightBracket.kt"); + } + + @TestMetadata("addRemainingBranchesMissingRightParenthesis.kt") + public void testAddRemainingBranchesMissingRightParenthesis() throws Exception { + runTest("../../../idea/tests/testData/quickfix/when/addRemainingBranchesMissingRightParenthesis.kt"); + } + + @TestMetadata("addRemainingBranchesSealed.kt") + public void testAddRemainingBranchesSealed() throws Exception { + runTest("../../../idea/tests/testData/quickfix/when/addRemainingBranchesSealed.kt"); + } + + @TestMetadata("addRemainingBranchesSealedBackTicks.kt") + public void testAddRemainingBranchesSealedBackTicks() throws Exception { + runTest("../../../idea/tests/testData/quickfix/when/addRemainingBranchesSealedBackTicks.kt"); + } + + @TestMetadata("addRemainingBranchesSealedStatement.kt") + public void testAddRemainingBranchesSealedStatement() throws Exception { + runTest("../../../idea/tests/testData/quickfix/when/addRemainingBranchesSealedStatement.kt"); + } + + @TestMetadata("addRemainingBranchesSealedWarning.kt") + public void testAddRemainingBranchesSealedWarning() throws Exception { + runTest("../../../idea/tests/testData/quickfix/when/addRemainingBranchesSealedWarning.kt"); + } + + @TestMetadata("breakInWhen.kt") + public void testBreakInWhen() throws Exception { + runTest("../../../idea/tests/testData/quickfix/when/breakInWhen.kt"); + } + + @TestMetadata("breakInWhenInLabeled.kt") + public void testBreakInWhenInLabeled() throws Exception { + runTest("../../../idea/tests/testData/quickfix/when/breakInWhenInLabeled.kt"); + } + + @TestMetadata("commasInConditionWithNoArguments.kt") + public void testCommasInConditionWithNoArguments() throws Exception { + runTest("../../../idea/tests/testData/quickfix/when/commasInConditionWithNoArguments.kt"); + } + + @TestMetadata("commasInConditionWithNoArguments2.kt") + public void testCommasInConditionWithNoArguments2() throws Exception { + runTest("../../../idea/tests/testData/quickfix/when/commasInConditionWithNoArguments2.kt"); + } + + @TestMetadata("continueInWhen.kt") + public void testContinueInWhen() throws Exception { + runTest("../../../idea/tests/testData/quickfix/when/continueInWhen.kt"); + } + + @TestMetadata("continueInWhenInLabeled.kt") + public void testContinueInWhenInLabeled() throws Exception { + runTest("../../../idea/tests/testData/quickfix/when/continueInWhenInLabeled.kt"); + } + + @TestMetadata("continueInWhenWithLabel.kt") + public void testContinueInWhenWithLabel() throws Exception { + runTest("../../../idea/tests/testData/quickfix/when/continueInWhenWithLabel.kt"); + } + + @TestMetadata("elseNotLastInWhen.kt") + public void testElseNotLastInWhen() throws Exception { + runTest("../../../idea/tests/testData/quickfix/when/elseNotLastInWhen.kt"); + } + + @TestMetadata("localSealedClassInheritorExhaustive.kt") + public void testLocalSealedClassInheritorExhaustive() throws Exception { + runTest("../../../idea/tests/testData/quickfix/when/localSealedClassInheritorExhaustive.kt"); + } + + @TestMetadata("noElseInWhenWithBranches.kt") + public void testNoElseInWhenWithBranches() throws Exception { + runTest("../../../idea/tests/testData/quickfix/when/noElseInWhenWithBranches.kt"); + } + + @TestMetadata("noElseInWhenWithoutBranches.kt") + public void testNoElseInWhenWithoutBranches() throws Exception { + runTest("../../../idea/tests/testData/quickfix/when/noElseInWhenWithoutBranches.kt"); + } + + @TestMetadata("notRedundantBranch.kt") + public void testNotRedundantBranch() throws Exception { + runTest("../../../idea/tests/testData/quickfix/when/notRedundantBranch.kt"); + } + + @TestMetadata("removeRedundantBranch.kt") + public void testRemoveRedundantBranch() throws Exception { + runTest("../../../idea/tests/testData/quickfix/when/removeRedundantBranch.kt"); + } + + @TestMetadata("removeRedundantCondition.kt") + public void testRemoveRedundantCondition() throws Exception { + runTest("../../../idea/tests/testData/quickfix/when/removeRedundantCondition.kt"); + } + + @TestMetadata("removeRedundantElse.kt") + public void testRemoveRedundantElse() throws Exception { + runTest("../../../idea/tests/testData/quickfix/when/removeRedundantElse.kt"); + } + + @TestMetadata("removeRedundantElseForSealedClasses.kt") + public void testRemoveRedundantElseForSealedClasses() throws Exception { + runTest("../../../idea/tests/testData/quickfix/when/removeRedundantElseForSealedClasses.kt"); + } + + @TestMetadata("twoElseBranchesInWhen.kt") + public void testTwoElseBranchesInWhen() throws Exception { + runTest("../../../idea/tests/testData/quickfix/when/twoElseBranchesInWhen.kt"); + } + } + @RunWith(JUnit3RunnerWithInners.class) @TestMetadata("../../../idea/tests/testData/quickfix/wrapArgumentWithParentheses") public static class WrapArgumentWithParentheses extends AbstractHighLevelQuickFixTest { @@ -16794,6 +16683,190 @@ public abstract class HighLevelQuickFixTestGenerated extends AbstractHighLevelQu } } + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/wrapWithSafeLetCall") + public static class WrapWithSafeLetCall extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("argumentNullable.kt") + public void testArgumentNullable() throws Exception { + runTest("../../../idea/tests/testData/quickfix/wrapWithSafeLetCall/argumentNullable.kt"); + } + + @TestMetadata("callWithLambdaArgument.kt") + public void testCallWithLambdaArgument() throws Exception { + runTest("../../../idea/tests/testData/quickfix/wrapWithSafeLetCall/callWithLambdaArgument.kt"); + } + + @TestMetadata("chainedCallTypeMismatch.kt") + public void testChainedCallTypeMismatch() throws Exception { + runTest("../../../idea/tests/testData/quickfix/wrapWithSafeLetCall/chainedCallTypeMismatch.kt"); + } + + @TestMetadata("chainedCallTypeMismatch2.kt") + public void testChainedCallTypeMismatch2() throws Exception { + runTest("../../../idea/tests/testData/quickfix/wrapWithSafeLetCall/chainedCallTypeMismatch2.kt"); + } + + @TestMetadata("chainedUnsafeCall.kt") + public void testChainedUnsafeCall() throws Exception { + runTest("../../../idea/tests/testData/quickfix/wrapWithSafeLetCall/chainedUnsafeCall.kt"); + } + + @TestMetadata("elvisArgument.kt") + public void testElvisArgument() throws Exception { + runTest("../../../idea/tests/testData/quickfix/wrapWithSafeLetCall/elvisArgument.kt"); + } + + @TestMetadata("expressionUnsafeCall.kt") + public void testExpressionUnsafeCall() throws Exception { + runTest("../../../idea/tests/testData/quickfix/wrapWithSafeLetCall/expressionUnsafeCall.kt"); + } + + @TestMetadata("extensionMethod.kt") + public void testExtensionMethod() throws Exception { + runTest("../../../idea/tests/testData/quickfix/wrapWithSafeLetCall/extensionMethod.kt"); + } + + @TestMetadata("extentionFunctionCall.kt") + public void testExtentionFunctionCall() throws Exception { + runTest("../../../idea/tests/testData/quickfix/wrapWithSafeLetCall/extentionFunctionCall.kt"); + } + + @TestMetadata("extentionFunctionCall2.kt") + public void testExtentionFunctionCall2() throws Exception { + runTest("../../../idea/tests/testData/quickfix/wrapWithSafeLetCall/extentionFunctionCall2.kt"); + } + + @TestMetadata("inOperator.kt") + public void testInOperator() throws Exception { + runTest("../../../idea/tests/testData/quickfix/wrapWithSafeLetCall/inOperator.kt"); + } + + @TestMetadata("insideLet.kt") + public void testInsideLet() throws Exception { + runTest("../../../idea/tests/testData/quickfix/wrapWithSafeLetCall/insideLet.kt"); + } + + @TestMetadata("invokeFuncUnsafe.kt") + public void testInvokeFuncUnsafe() throws Exception { + runTest("../../../idea/tests/testData/quickfix/wrapWithSafeLetCall/invokeFuncUnsafe.kt"); + } + + @TestMetadata("invokeFunctionType.kt") + public void testInvokeFunctionType() throws Exception { + runTest("../../../idea/tests/testData/quickfix/wrapWithSafeLetCall/invokeFunctionType.kt"); + } + + @TestMetadata("invokeFunctionType2.kt") + public void testInvokeFunctionType2() throws Exception { + runTest("../../../idea/tests/testData/quickfix/wrapWithSafeLetCall/invokeFunctionType2.kt"); + } + + @TestMetadata("invokeOperator.kt") + public void testInvokeOperator() throws Exception { + runTest("../../../idea/tests/testData/quickfix/wrapWithSafeLetCall/invokeOperator.kt"); + } + + @TestMetadata("invokeOperator2.kt") + public void testInvokeOperator2() throws Exception { + runTest("../../../idea/tests/testData/quickfix/wrapWithSafeLetCall/invokeOperator2.kt"); + } + + @TestMetadata("invokeUnsafe.kt") + public void testInvokeUnsafe() throws Exception { + runTest("../../../idea/tests/testData/quickfix/wrapWithSafeLetCall/invokeUnsafe.kt"); + } + + @TestMetadata("nameAlreadyInScope.kt") + public void testNameAlreadyInScope() throws Exception { + runTest("../../../idea/tests/testData/quickfix/wrapWithSafeLetCall/nameAlreadyInScope.kt"); + } + + @TestMetadata("nullableBinaryExpression.kt") + public void testNullableBinaryExpression() throws Exception { + runTest("../../../idea/tests/testData/quickfix/wrapWithSafeLetCall/nullableBinaryExpression.kt"); + } + + @TestMetadata("nullableReceiver.kt") + public void testNullableReceiver() throws Exception { + runTest("../../../idea/tests/testData/quickfix/wrapWithSafeLetCall/nullableReceiver.kt"); + } + + @TestMetadata("objectQualifier.kt") + public void testObjectQualifier() throws Exception { + runTest("../../../idea/tests/testData/quickfix/wrapWithSafeLetCall/objectQualifier.kt"); + } + + @TestMetadata("refactorNullableFunctionTypeProperty1.kt") + public void testRefactorNullableFunctionTypeProperty1() throws Exception { + runTest("../../../idea/tests/testData/quickfix/wrapWithSafeLetCall/refactorNullableFunctionTypeProperty1.kt"); + } + + @TestMetadata("refactorNullableFunctionTypeProperty2.kt") + public void testRefactorNullableFunctionTypeProperty2() throws Exception { + runTest("../../../idea/tests/testData/quickfix/wrapWithSafeLetCall/refactorNullableFunctionTypeProperty2.kt"); + } + + @TestMetadata("unsafe.kt") + public void testUnsafe() throws Exception { + runTest("../../../idea/tests/testData/quickfix/wrapWithSafeLetCall/unsafe.kt"); + } + + @TestMetadata("unsafe2.kt") + public void testUnsafe2() throws Exception { + runTest("../../../idea/tests/testData/quickfix/wrapWithSafeLetCall/unsafe2.kt"); + } + + @TestMetadata("unsafeForNullableParameter.kt") + public void testUnsafeForNullableParameter() throws Exception { + runTest("../../../idea/tests/testData/quickfix/wrapWithSafeLetCall/unsafeForNullableParameter.kt"); + } + + @TestMetadata("unstableValue.kt") + public void testUnstableValue() throws Exception { + runTest("../../../idea/tests/testData/quickfix/wrapWithSafeLetCall/unstableValue.kt"); + } + + @TestMetadata("wrapAllNonNullablePositions1.kt") + public void testWrapAllNonNullablePositions1() throws Exception { + runTest("../../../idea/tests/testData/quickfix/wrapWithSafeLetCall/wrapAllNonNullablePositions1.kt"); + } + + @TestMetadata("wrapAllNonNullablePositions2.kt") + public void testWrapAllNonNullablePositions2() throws Exception { + runTest("../../../idea/tests/testData/quickfix/wrapWithSafeLetCall/wrapAllNonNullablePositions2.kt"); + } + + @TestMetadata("wrapAllNonNullablePositions3.kt") + public void testWrapAllNonNullablePositions3() throws Exception { + runTest("../../../idea/tests/testData/quickfix/wrapWithSafeLetCall/wrapAllNonNullablePositions3.kt"); + } + + @TestMetadata("wrapAllNonNullablePositions4.kt") + public void testWrapAllNonNullablePositions4() throws Exception { + runTest("../../../idea/tests/testData/quickfix/wrapWithSafeLetCall/wrapAllNonNullablePositions4.kt"); + } + + @TestMetadata("wrapAllNonNullablePositions5.kt") + public void testWrapAllNonNullablePositions5() throws Exception { + runTest("../../../idea/tests/testData/quickfix/wrapWithSafeLetCall/wrapAllNonNullablePositions5.kt"); + } + + @TestMetadata("wrapAllNonNullablePositions6.kt") + public void testWrapAllNonNullablePositions6() throws Exception { + runTest("../../../idea/tests/testData/quickfix/wrapWithSafeLetCall/wrapAllNonNullablePositions6.kt"); + } + } + @RunWith(JUnit3RunnerWithInners.class) @TestMetadata("../../../idea/tests/testData/quickfix/wrongLongSuffix") public static class WrongLongSuffix extends AbstractHighLevelQuickFixTest { @@ -16814,77 +16887,4 @@ public abstract class HighLevelQuickFixTestGenerated extends AbstractHighLevelQu } - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/changeSuperTypeListEntryTypeArgument") - public static class ChangeSuperTypeListEntryTypeArgument extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("propertyTypeMismatchOnOverride.kt") - public void testPropertyTypeMismatchOnOverride() throws Exception { - runTest("../../../idea/tests/testData/quickfix/changeSuperTypeListEntryTypeArgument/propertyTypeMismatchOnOverride.kt"); - } - - @TestMetadata("propertyTypeMismatchOnOverride2.kt") - public void testPropertyTypeMismatchOnOverride2() throws Exception { - runTest("../../../idea/tests/testData/quickfix/changeSuperTypeListEntryTypeArgument/propertyTypeMismatchOnOverride2.kt"); - } - - @TestMetadata("propertyTypeMismatchWithNameAmbiguity.kt") - public void testPropertyTypeMismatchWithNameAmbiguity() throws Exception { - runTest("../../../idea/tests/testData/quickfix/changeSuperTypeListEntryTypeArgument/propertyTypeMismatchWithNameAmbiguity.kt"); - } - - @TestMetadata("propertyTypeMismatchWithNameCollision.kt") - public void testPropertyTypeMismatchWithNameCollision() throws Exception { - runTest("../../../idea/tests/testData/quickfix/changeSuperTypeListEntryTypeArgument/propertyTypeMismatchWithNameCollision.kt"); - } - - @TestMetadata("returnTypeMismatchOnOverride.kt") - public void testReturnTypeMismatchOnOverride() throws Exception { - runTest("../../../idea/tests/testData/quickfix/changeSuperTypeListEntryTypeArgument/returnTypeMismatchOnOverride.kt"); - } - - @TestMetadata("returnTypeMismatchOnOverride2.kt") - public void testReturnTypeMismatchOnOverride2() throws Exception { - runTest("../../../idea/tests/testData/quickfix/changeSuperTypeListEntryTypeArgument/returnTypeMismatchOnOverride2.kt"); - } - - @TestMetadata("returnTypeMismatchWithNameAmbiguity.kt") - public void testReturnTypeMismatchWithNameAmbiguity() throws Exception { - runTest("../../../idea/tests/testData/quickfix/changeSuperTypeListEntryTypeArgument/returnTypeMismatchWithNameAmbiguity.kt"); - } - - @TestMetadata("returnTypeMismatchWithNameCollision.kt") - public void testReturnTypeMismatchWithNameCollision() throws Exception { - runTest("../../../idea/tests/testData/quickfix/changeSuperTypeListEntryTypeArgument/returnTypeMismatchWithNameCollision.kt"); - } - } - - @RunWith(JUnit3RunnerWithInners.class) - @TestMetadata("../../../idea/tests/testData/quickfix/publicApiImplicitType") - public static class PublicApiImplicitType extends AbstractHighLevelQuickFixTest { - @java.lang.Override - @org.jetbrains.annotations.NotNull - public final KotlinPluginMode getPluginMode() { - return KotlinPluginMode.K2; - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("fixAllProblemsInFile.kt") - public void testFixAllProblemsInFile() throws Exception { - runTest("../../../idea/tests/testData/quickfix/publicApiImplicitType/fixAllProblemsInFile.kt"); - } - } } diff --git a/plugins/kotlin/util/test-generator-fir/test/org/jetbrains/kotlin/fir/testGenerator/codeinsight/GenerateK2QuickFixTests.kt b/plugins/kotlin/util/test-generator-fir/test/org/jetbrains/kotlin/fir/testGenerator/codeinsight/GenerateK2QuickFixTests.kt index ee518f2f4621..01e462f057b5 100644 --- a/plugins/kotlin/util/test-generator-fir/test/org/jetbrains/kotlin/fir/testGenerator/codeinsight/GenerateK2QuickFixTests.kt +++ b/plugins/kotlin/util/test-generator-fir/test/org/jetbrains/kotlin/fir/testGenerator/codeinsight/GenerateK2QuickFixTests.kt @@ -17,38 +17,6 @@ internal fun MutableTWorkspace.generateK2FixTests() { val pattern = Patterns.forRegex("^([\\w\\-_]+)\\.kt$") model("$idea/quickfix/abstract", pattern = pattern) model("$idea/quickfix/addExclExclCall", pattern = pattern) - model("$idea/quickfix/addInitializer", pattern = pattern) - model("$idea/quickfix/addPropertyAccessors", pattern = pattern) - model("$idea/quickfix/addValVar", pattern = pattern) - model("$idea/quickfix/autoImports", pattern = KT_WITHOUT_DOTS) - model("$idea/quickfix/changeToMutableCollection", pattern = pattern) - model("$idea/quickfix/checkArguments", pattern = pattern) - model("$idea/quickfix/conflictingImports", pattern = pattern) - model("$idea/quickfix/expressions", pattern = pattern) - model("$idea/quickfix/explicitlyIgnoreReturnValue", pattern = pattern) - model("$idea/quickfix/lateinit", pattern = pattern) - model("$idea/quickfix/localVariableWithTypeParameters", pattern = pattern) - model("$idea/quickfix/modifiers", pattern = pattern) - model("$idea/quickfix/nullables", pattern = pattern) - model("$idea/quickfix/override", pattern = pattern) - model("$idea/quickfix/removeRedundantSpreadOperator", pattern = pattern) - model("$idea/quickfix/replaceAndWithWhenGuard", pattern = pattern) - model("$idea/quickfix/replaceInfixOrOperatorCall", pattern = pattern) - model("$idea/quickfix/replaceWithArrayCallInAnnotation", pattern = pattern) - model("$idea/quickfix/replaceWithDotCall", pattern = pattern) - model("$idea/quickfix/replaceWithSafeCall", pattern = pattern) - model("$idea/quickfix/specifyVisibilityInExplicitApiMode", pattern = pattern) - model("$idea/quickfix/supercalls", pattern = pattern) - model("$idea/quickfix/surroundWithArrayOfForNamedArgumentsToVarargs", pattern = pattern) - model("$idea/quickfix/when", pattern = pattern) - model("$idea/quickfix/wrapWithSafeLetCall", pattern = pattern) - model("$idea/quickfix/typeAddition", pattern = pattern) - model("$idea/quickfix/typeMismatch", pattern = pattern) - model("$idea/quickfix/toString", pattern = pattern) - model("$idea/quickfix/specifySuperType", pattern = pattern) - model("$idea/quickfix/convertToBlockBody", pattern = pattern) - model("$idea/quickfix/supertypeInitialization", pattern = pattern) - model("$idea/quickfix/dataClassConstructorVsCopyVisibility", pattern = pattern) model("$idea/quickfix/addAnnotationTarget", pattern = pattern, isIgnored = true) model("$idea/quickfix/addAnnotationUseSiteTarget", pattern = pattern) model("$idea/quickfix/addAnnotationUseSiteTargetForConstructorParameter", pattern = pattern) @@ -63,6 +31,8 @@ internal fun MutableTWorkspace.generateK2FixTests() { model("$idea/quickfix/addEqEqTrue", pattern = pattern) model("$idea/quickfix/addFunModifier", pattern = pattern) model("$idea/quickfix/addGenericUpperBound", pattern = pattern) + model("$idea/quickfix/autoImports", pattern = KT_WITHOUT_DOTS) + model("$idea/quickfix/addInitializer", pattern = pattern) model("$idea/quickfix/addInline", pattern = pattern) model("$idea/quickfix/addInlineToReifiedFunctionFix", pattern = pattern) model("$idea/quickfix/addIsToWhenCondition", pattern = pattern) @@ -70,6 +40,7 @@ internal fun MutableTWorkspace.generateK2FixTests() { model("$idea/quickfix/addJvmStaticAnnotation", pattern = pattern) model("$idea/quickfix/addNewLineAfterAnnotations", pattern = pattern, isIgnored = true) model("$idea/quickfix/addNoinline", pattern = pattern) + model("$idea/quickfix/addPropertyAccessors", pattern = pattern) model("$idea/quickfix/addReifiedToTypeParameterOfFunctionFix", pattern = pattern) model("$idea/quickfix/addReturnExpression", pattern = pattern) model("$idea/quickfix/addReturnToLastExpressionInFunction", pattern = pattern) @@ -81,15 +52,20 @@ internal fun MutableTWorkspace.generateK2FixTests() { model("$idea/quickfix/addSuspend", pattern = pattern, isIgnored = true) model("$idea/quickfix/addTypeAnnotationToValueParameter", pattern = pattern) model("$idea/quickfix/addUnsafeVarianceAnnotation", pattern = pattern) + model("$idea/quickfix/addValVar", pattern = pattern) model("$idea/quickfix/addVarianceModifier", pattern = pattern, isIgnored = true) model("$idea/quickfix/assignToProperty", pattern = pattern) model("$idea/quickfix/callFromPublicInline", pattern = pattern) model("$idea/quickfix/canBeParameter", pattern = pattern) model("$idea/quickfix/canBePrimaryConstructorProperty", pattern = pattern) model("$idea/quickfix/castDueToProgressionResolveChange", pattern = pattern, isIgnored = true) + model("$idea/quickfix/changeToMutableCollection", pattern = pattern) + model("$idea/quickfix/checkArguments", pattern = pattern) model("$idea/quickfix/changeObjectToClass", pattern = pattern) + model("$idea/quickfix/changeSuperTypeListEntryTypeArgument", pattern = pattern) model("$idea/quickfix/changeToLabeledReturn", pattern = pattern) model("$idea/quickfix/changeToUseSpreadOperator", pattern = pattern) + model("$idea/quickfix/conflictingImports", pattern = pattern) model("$idea/quickfix/compilerError", pattern = pattern, isIgnored = true) model("$idea/quickfix/convertCollectionLiteralToIntArrayOf", pattern = pattern) model("$idea/quickfix/convertIllegalEscapeToUnicodeEscape", pattern = pattern) @@ -97,19 +73,22 @@ internal fun MutableTWorkspace.generateK2FixTests() { model("$idea/quickfix/convertLateinitPropertyToNotNullDelegate", pattern = pattern) model("$idea/quickfix/convertPropertyInitializerToGetter", pattern = pattern) model("$idea/quickfix/convertToAnonymousObject", pattern = pattern, isIgnored = true) + model("$idea/quickfix/convertToBlockBody", pattern = pattern) model("$idea/quickfix/convertToIsArrayOfCall", pattern = pattern) model("$idea/quickfix/createFromUsage/createClass", pattern = pattern, excludedDirectories = listOf("importDirective/kt21515", "callExpression/typeArguments")) - model("$idea/quickfix/createFromUsage/createVariable", pattern = pattern) model("$idea/quickfix/createFromUsage/createFunction/call", pattern = pattern, excludedDirectories = listOf("extensionByExtensionReceiver", "typeArguments")) - // binaryOperations, callableReferences, component, delegateAccessors, get, hasNext, invoke, iterator, next, set, unaryOperations + model("$idea/quickfix/createFromUsage/createVariable", pattern = pattern) model("$idea/quickfix/createLabel", pattern = pattern) + model("$idea/quickfix/dataClassConstructorVsCopyVisibility", pattern = pattern) model("$idea/quickfix/declarationCantBeInlined", pattern = pattern) model("$idea/quickfix/declaringJavaClass", pattern = pattern, isIgnored = true) model("$idea/quickfix/decreaseVisibility", pattern = pattern) model("$idea/quickfix/deprecatedJavaAnnotation", pattern = pattern, isIgnored = true) model("$idea/quickfix/deprecatedSymbolUsage", pattern = pattern, isIgnored = false) model("$idea/quickfix/equalityNotApplicable", pattern = pattern) + model("$idea/quickfix/explicitlyIgnoreReturnValue", pattern = pattern) + model("$idea/quickfix/expressions", pattern = pattern) model("$idea/quickfix/final", pattern = pattern) model("$idea/quickfix/foldTryCatch", pattern = pattern) model("$idea/quickfix/functionWithLambdaExpressionBody", pattern = pattern, isIgnored = true) @@ -123,8 +102,10 @@ internal fun MutableTWorkspace.generateK2FixTests() { model("$idea/quickfix/isEnumEntry", pattern = pattern) model("$idea/quickfix/javaClassOnCompanion", pattern = pattern) model("$idea/quickfix/kdocMissingDocumentation", pattern = pattern, isIgnored = true) + model("$idea/quickfix/lateinit", pattern = pattern) model("$idea/quickfix/leakingThis", pattern = pattern, isIgnored = true) model("$idea/quickfix/libraries", pattern = pattern) + model("$idea/quickfix/localVariableWithTypeParameters", pattern = pattern) model("$idea/quickfix/makeConstructorParameterProperty", pattern = pattern) model("$idea/quickfix/makePrivateAndOverrideMember", pattern = pattern, isIgnored = true) model("$idea/quickfix/makeTypeParameterReified", pattern = pattern) @@ -135,26 +116,29 @@ internal fun MutableTWorkspace.generateK2FixTests() { model("$idea/quickfix/migration/removeNameFromFunctionExpression", pattern = pattern) model("$idea/quickfix/migration/typeParameterList", pattern = pattern) model("$idea/quickfix/missingConstructorBrackets", pattern = pattern) + model("$idea/quickfix/modifiers", pattern = pattern) model("$idea/quickfix/moveMemberToCompanionObject", pattern = pattern, isIgnored = true) model("$idea/quickfix/moveReceiverAnnotation", pattern = pattern) model("$idea/quickfix/moveToConstructorParameters", pattern = pattern) model("$idea/quickfix/moveToSealedParent", pattern = pattern, isIgnored = true) model("$idea/quickfix/moveTypeAliasToTopLevel", pattern = pattern) model("$idea/quickfix/namedLambdaContextParameter", pattern = pattern) + model("$idea/quickfix/nullables", pattern = pattern) model("$idea/quickfix/obsoleteKotlinJsPackages", pattern = pattern, isIgnored = true) model("$idea/quickfix/optimizeImports", pattern = pattern, isIgnored = true) + model("$idea/quickfix/override", pattern = pattern) model("$idea/quickfix/platformClasses", pattern = pattern, isIgnored = true) model("$idea/quickfix/platformTypesInspection", pattern = pattern, isIgnored = true) model("$idea/quickfix/primitiveCastToConversion", pattern = pattern) model("$idea/quickfix/properties", pattern = pattern) model("$idea/quickfix/protectedInFinal", pattern = pattern) + model("$idea/quickfix/publicApiImplicitType", pattern = pattern) model("$idea/quickfix/redundantConst", pattern = pattern) model("$idea/quickfix/redundantFun", pattern = pattern) model("$idea/quickfix/redundantInline", pattern = pattern) model("$idea/quickfix/redundantLateinit", pattern = pattern) model("$idea/quickfix/redundantModalityModifier", pattern = pattern) model("$idea/quickfix/redundantSuspend", pattern = pattern, isIgnored = true) - model("$idea/quickfix/runBlockingInSuspendFunction", pattern = pattern) model("$idea/quickfix/redundantVisibilityModifier", pattern = pattern) model("$idea/quickfix/removeAnnotation", pattern = pattern, isIgnored = true) model("$idea/quickfix/removeArgument", pattern = pattern) @@ -165,6 +149,8 @@ internal fun MutableTWorkspace.generateK2FixTests() { model("$idea/quickfix/removeRedundantAssignment", pattern = pattern) model("$idea/quickfix/removeRedundantInitializer", pattern = pattern) model("$idea/quickfix/removeRedundantLabel", pattern = pattern, isIgnored = true) + model("$idea/quickfix/removeRedundantLabel", pattern = pattern) + model("$idea/quickfix/removeRedundantSpreadOperator", pattern = pattern) model("$idea/quickfix/removeSingleLambdaParameter", pattern = pattern, isIgnored = true) model("$idea/quickfix/removeSuspend", pattern = pattern, isIgnored = true) model("$idea/quickfix/removeToStringInStringTemplate", pattern = pattern) @@ -175,9 +161,16 @@ internal fun MutableTWorkspace.generateK2FixTests() { model("$idea/quickfix/removeUseSiteTarget", pattern = pattern) model("$idea/quickfix/renameToUnderscore", pattern = pattern, isIgnored = true) model("$idea/quickfix/renameUnresolvedReference", pattern = pattern, isIgnored = true) + model("$idea/quickfix/renameUnresolvedReference", pattern = pattern) model("$idea/quickfix/reorderParameters", pattern = pattern) + model("$idea/quickfix/replaceAndWithWhenGuard", pattern = pattern) + model("$idea/quickfix/replaceInfixOrOperatorCall", pattern = pattern) model("$idea/quickfix/replaceJvmFieldWithConst", pattern = pattern) + model("$idea/quickfix/replaceWithArrayCallInAnnotation", pattern = pattern) + model("$idea/quickfix/replaceWithDotCall", pattern = pattern) + model("$idea/quickfix/replaceWithSafeCall", pattern = pattern) model("$idea/quickfix/restrictedRetentionForExpressionAnnotation", pattern = pattern) + model("$idea/quickfix/runBlockingInSuspendFunction", pattern = pattern) model("$idea/quickfix/simplifyComparison", pattern = pattern) model("$idea/quickfix/simplifyExpression", pattern = pattern) model("$idea/quickfix/smartCastImpossibleInIfThen", pattern = pattern) @@ -185,27 +178,33 @@ internal fun MutableTWorkspace.generateK2FixTests() { model("$idea/quickfix/specifyOverrideExplicitly", pattern = pattern) model("$idea/quickfix/specifyRemainingRequiredArgumentsByName", pattern = pattern) model("$idea/quickfix/specifySuperExplicitly", pattern = pattern) + model("$idea/quickfix/specifySuperType", pattern = pattern) model("$idea/quickfix/specifyTypeExplicitly", pattern = pattern) + model("$idea/quickfix/specifyVisibilityInExplicitApiMode", pattern = pattern) + model("$idea/quickfix/supercalls", pattern = pattern) + model("$idea/quickfix/supertypeInitialization", pattern = pattern) model("$idea/quickfix/superTypeIsExtensionType", pattern = pattern) + model("$idea/quickfix/surroundWithArrayOfForNamedArgumentsToVarargs", pattern = pattern) model("$idea/quickfix/surroundWithNullCheck", pattern = pattern) model("$idea/quickfix/suspiciousCollectionReassignment", pattern = pattern) model("$idea/quickfix/tooLongCharLiteralToString", pattern = pattern) + model("$idea/quickfix/toString", pattern = pattern) + model("$idea/quickfix/typeAddition", pattern = pattern) model("$idea/quickfix/typeImports", pattern = pattern) model("$idea/quickfix/typeInferenceExpectedTypeMismatch", pattern = pattern) + model("$idea/quickfix/typeMismatch", pattern = pattern) model("$idea/quickfix/typeOfAnnotationMember", pattern = pattern) model("$idea/quickfix/typeParameters", pattern = pattern) model("$idea/quickfix/typeProjection", pattern = pattern) - model("$idea/quickfix/renameUnresolvedReference", pattern = pattern) - model("$idea/quickfix/removeRedundantLabel", pattern = pattern) model("$idea/quickfix/unnecessaryLateinit", pattern = pattern) model("$idea/quickfix/unusedSuppressAnnotation", pattern = pattern, isIgnored = true) model("$idea/quickfix/variables", pattern = pattern) + model("$idea/quickfix/when", pattern = pattern) model("$idea/quickfix/wrapArgumentWithParentheses", pattern = pattern) model("$idea/quickfix/wrapWhenExpressionInParentheses", pattern = pattern) + model("$idea/quickfix/wrapWithSafeLetCall", pattern = pattern) model("$idea/quickfix/wrongLongSuffix", pattern = pattern) model("$idea/quickfix/yieldUnsupported", pattern = pattern, isIgnored = true) - model("$idea/quickfix/changeSuperTypeListEntryTypeArgument", pattern = pattern) - model("$idea/quickfix/publicApiImplicitType", pattern = pattern) } testClass {