/*
* Copyright 2010-2017 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.jetbrains.kotlin.idea.quickfix;
import com.intellij.testFramework.TestDataPath;
import org.jetbrains.kotlin.test.JUnit3RunnerWithInners;
import org.jetbrains.kotlin.test.KotlinTestUtils;
import org.jetbrains.kotlin.test.TargetBackend;
import org.jetbrains.kotlin.test.TestMetadata;
import org.junit.runner.RunWith;
import java.io.File;
import java.util.regex.Pattern;
/** This class is generated by {@link org.jetbrains.kotlin.generators.tests.TestsPackage}. DO NOT MODIFY MANUALLY */
@SuppressWarnings("all")
@TestMetadata("idea/testData/quickfix")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public class QuickFixMultiFileTestGenerated extends AbstractQuickFixMultiFileTest {
public void testAllFilesPresentInQuickfix() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/quickfix"), Pattern.compile("^(\\w+)\\.((before\\.Main\\.\\w+)|(test))$"), TargetBackend.ANY, true);
}
@TestMetadata("idea/testData/quickfix/addStarProjections")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class AddStarProjections extends AbstractQuickFixMultiFileTest {
public void testAllFilesPresentInAddStarProjections() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/quickfix/addStarProjections"), Pattern.compile("^(\\w+)\\.((before\\.Main\\.\\w+)|(test))$"), TargetBackend.ANY, true);
}
}
@TestMetadata("idea/testData/quickfix/autoImports")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class AutoImports extends AbstractQuickFixMultiFileTest {
public void testAllFilesPresentInAutoImports() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/quickfix/autoImports"), Pattern.compile("^(\\w+)\\.((before\\.Main\\.\\w+)|(test))$"), TargetBackend.ANY, true);
}
@TestMetadata("ambiguousNamePreferFromJdk.before.Main.kt")
public void testAmbiguousNamePreferFromJdk() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/autoImports/ambiguousNamePreferFromJdk.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("ambiguousNamePreferWithImportsFromPackage.before.Main.kt")
public void testAmbiguousNamePreferWithImportsFromPackage() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/autoImports/ambiguousNamePreferWithImportsFromPackage.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("callableReferenceExtension.before.Main.kt")
public void testCallableReferenceExtension() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/autoImports/callableReferenceExtension.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("callableReferenceExtension2.before.Main.kt")
public void testCallableReferenceExtension2() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/autoImports/callableReferenceExtension2.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("callableReferenceTopLevel.before.Main.kt")
public void testCallableReferenceTopLevel() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/autoImports/callableReferenceTopLevel.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("classImport.before.Main.kt")
public void testClassImport() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/autoImports/classImport.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("constructorParameterAnnotation.test")
public void testConstructorParameterAnnotation() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/autoImports/constructorParameterAnnotation.test");
doTestWithExtraFile(fileName);
}
@TestMetadata("constructorReference.before.Main.kt")
public void testConstructorReference() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/autoImports/constructorReference.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("delegateExtensionBoth.test")
public void testDelegateExtensionBoth() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/autoImports/delegateExtensionBoth.test");
doTestWithExtraFile(fileName);
}
@TestMetadata("delegateExtensionGet.test")
public void testDelegateExtensionGet() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/autoImports/delegateExtensionGet.test");
doTestWithExtraFile(fileName);
}
@TestMetadata("delegateExtensionSet.test")
public void testDelegateExtensionSet() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/autoImports/delegateExtensionSet.test");
doTestWithExtraFile(fileName);
}
@TestMetadata("delegateNoOperator.test")
public void testDelegateNoOperator() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/autoImports/delegateNoOperator.test");
doTestWithExtraFile(fileName);
}
@TestMetadata("divOperator.before.Main.kt")
public void testDivOperator() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/autoImports/divOperator.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("extensionFunctionImport.before.Main.kt")
public void testExtensionFunctionImport() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/autoImports/extensionFunctionImport.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("extensionFunctionImportImplicitReceiver.before.Main.kt")
public void testExtensionFunctionImportImplicitReceiver() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/autoImports/extensionFunctionImportImplicitReceiver.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("extensionPropertyImport.before.Main.kt")
public void testExtensionPropertyImport() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/autoImports/extensionPropertyImport.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("extensionPropertyOnTypeAliasFromExpansion.before.Main.kt")
public void testExtensionPropertyOnTypeAliasFromExpansion() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/autoImports/extensionPropertyOnTypeAliasFromExpansion.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("extensionPropertyOnTypeAliasFromOtherTypeAlias.before.Main.kt")
public void testExtensionPropertyOnTypeAliasFromOtherTypeAlias() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/autoImports/extensionPropertyOnTypeAliasFromOtherTypeAlias.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("factoryFunctionFromLambda.before.Main.kt")
public void testFactoryFunctionFromLambda() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/autoImports/factoryFunctionFromLambda.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("falsePostfixOperator.before.Main.kt")
public void testFalsePostfixOperator() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/autoImports/falsePostfixOperator.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("functionImport.before.Main.kt")
public void testFunctionImport() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/autoImports/functionImport.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("importInFirstPartInQualifiedExpression.before.Main.kt")
public void testImportInFirstPartInQualifiedExpression() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/autoImports/importInFirstPartInQualifiedExpression.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("importInFirstPartInUserType.test")
public void testImportInFirstPartInUserType() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/autoImports/importInFirstPartInUserType.test");
doTestWithExtraFile(fileName);
}
@TestMetadata("importKotlinCompanionPropertyAsFieldFromJava.test")
public void testImportKotlinCompanionPropertyAsFieldFromJava() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/autoImports/importKotlinCompanionPropertyAsFieldFromJava.test");
doTestWithExtraFile(fileName);
}
@TestMetadata("importKotlinCompanionStaticFunctionFromJava.test")
public void testImportKotlinCompanionStaticFunctionFromJava() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/autoImports/importKotlinCompanionStaticFunctionFromJava.test");
doTestWithExtraFile(fileName);
}
@TestMetadata("importKotlinCompanionStaticPropertyDefaultGetterFromJava.test")
public void testImportKotlinCompanionStaticPropertyDefaultGetterFromJava() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/autoImports/importKotlinCompanionStaticPropertyDefaultGetterFromJava.test");
doTestWithExtraFile(fileName);
}
@TestMetadata("importKotlinCompanionStaticPropertyDefaultSetterFromJava.test")
public void testImportKotlinCompanionStaticPropertyDefaultSetterFromJava() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/autoImports/importKotlinCompanionStaticPropertyDefaultSetterFromJava.test");
doTestWithExtraFile(fileName);
}
@TestMetadata("importKotlinCompanionStaticPropertyOverloadedGetterFromJava.test")
public void testImportKotlinCompanionStaticPropertyOverloadedGetterFromJava() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/autoImports/importKotlinCompanionStaticPropertyOverloadedGetterFromJava.test");
doTestWithExtraFile(fileName);
}
@TestMetadata("importKotlinCompanionStaticPropertyOverloadedSetterFromJava.test")
public void testImportKotlinCompanionStaticPropertyOverloadedSetterFromJava() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/autoImports/importKotlinCompanionStaticPropertyOverloadedSetterFromJava.test");
doTestWithExtraFile(fileName);
}
@TestMetadata("importKotlinPropertyAsFieldFromJava.test")
public void testImportKotlinPropertyAsFieldFromJava() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/autoImports/importKotlinPropertyAsFieldFromJava.test");
doTestWithExtraFile(fileName);
}
@TestMetadata("importKotlinStaticFunctionFromJava.test")
public void testImportKotlinStaticFunctionFromJava() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/autoImports/importKotlinStaticFunctionFromJava.test");
doTestWithExtraFile(fileName);
}
@TestMetadata("importKotlinStaticPropertyDefaultGetterFromJava.test")
public void testImportKotlinStaticPropertyDefaultGetterFromJava() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/autoImports/importKotlinStaticPropertyDefaultGetterFromJava.test");
doTestWithExtraFile(fileName);
}
@TestMetadata("importKotlinStaticPropertyDefaultSetterFromJava.test")
public void testImportKotlinStaticPropertyDefaultSetterFromJava() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/autoImports/importKotlinStaticPropertyDefaultSetterFromJava.test");
doTestWithExtraFile(fileName);
}
@TestMetadata("importKotlinStaticPropertyOverloadedGetterFromJava.test")
public void testImportKotlinStaticPropertyOverloadedGetterFromJava() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/autoImports/importKotlinStaticPropertyOverloadedGetterFromJava.test");
doTestWithExtraFile(fileName);
}
@TestMetadata("importKotlinStaticPropertyOverloadedSetterFromJava.test")
public void testImportKotlinStaticPropertyOverloadedSetterFromJava() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/autoImports/importKotlinStaticPropertyOverloadedSetterFromJava.test");
doTestWithExtraFile(fileName);
}
@TestMetadata("importTrait.before.Main.kt")
public void testImportTrait() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/autoImports/importTrait.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("indexCallExtensionGet.test")
public void testIndexCallExtensionGet() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/autoImports/indexCallExtensionGet.test");
doTestWithExtraFile(fileName);
}
@TestMetadata("indexCallExtensionGetNoOperator.test")
public void testIndexCallExtensionGetNoOperator() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/autoImports/indexCallExtensionGetNoOperator.test");
doTestWithExtraFile(fileName);
}
@TestMetadata("indexCallExtensionImportGetOnNoOperatorWarning.test")
public void testIndexCallExtensionImportGetOnNoOperatorWarning() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/autoImports/indexCallExtensionImportGetOnNoOperatorWarning.test");
doTestWithExtraFile(fileName);
}
@TestMetadata("indexCallExtensionImportSetOnNoOperatorWarning.test")
public void testIndexCallExtensionImportSetOnNoOperatorWarning() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/autoImports/indexCallExtensionImportSetOnNoOperatorWarning.test");
doTestWithExtraFile(fileName);
}
@TestMetadata("indexCallExtensionSet.test")
public void testIndexCallExtensionSet() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/autoImports/indexCallExtensionSet.test");
doTestWithExtraFile(fileName);
}
@TestMetadata("indexCallNoImportWhenGetNeededButSetAvailable.test")
public void testIndexCallNoImportWhenGetNeededButSetAvailable() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/autoImports/indexCallNoImportWhenGetNeededButSetAvailable.test");
doTestWithExtraFile(fileName);
}
@TestMetadata("indexCallNoImportWhenSetNeededButGetAvailable.test")
public void testIndexCallNoImportWhenSetNeededButGetAvailable() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/autoImports/indexCallNoImportWhenSetNeededButGetAvailable.test");
doTestWithExtraFile(fileName);
}
@TestMetadata("infixCall.before.Main.kt")
public void testInfixCall() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/autoImports/infixCall.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("infixCall2.before.Main.kt")
public void testInfixCall2() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/autoImports/infixCall2.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("invokeExtension.test")
public void testInvokeExtension() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/autoImports/invokeExtension.test");
doTestWithExtraFile(fileName);
}
@TestMetadata("invokeExtensionNoOperator.test")
public void testInvokeExtensionNoOperator() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/autoImports/invokeExtensionNoOperator.test");
doTestWithExtraFile(fileName);
}
@TestMetadata("memberImportFunction.test")
public void testMemberImportFunction() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/autoImports/memberImportFunction.test");
doTestWithExtraFile(fileName);
}
@TestMetadata("memberImportJavaField.test")
public void testMemberImportJavaField() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/autoImports/memberImportJavaField.test");
doTestWithExtraFile(fileName);
}
@TestMetadata("memberImportJavaMethod.test")
public void testMemberImportJavaMethod() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/autoImports/memberImportJavaMethod.test");
doTestWithExtraFile(fileName);
}
@TestMetadata("memberImportNotForClassFunction.test")
public void testMemberImportNotForClassFunction() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/autoImports/memberImportNotForClassFunction.test");
doTestWithExtraFile(fileName);
}
@TestMetadata("memberImportNotForClassProperty.test")
public void testMemberImportNotForClassProperty() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/autoImports/memberImportNotForClassProperty.test");
doTestWithExtraFile(fileName);
}
@TestMetadata("memberImportNotForJavaNonStaticField.test")
public void testMemberImportNotForJavaNonStaticField() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/autoImports/memberImportNotForJavaNonStaticField.test");
doTestWithExtraFile(fileName);
}
@TestMetadata("memberImportNotForJavaNonStaticMethod.test")
public void testMemberImportNotForJavaNonStaticMethod() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/autoImports/memberImportNotForJavaNonStaticMethod.test");
doTestWithExtraFile(fileName);
}
@TestMetadata("memberImportNotForTopLevelFunction.test")
public void testMemberImportNotForTopLevelFunction() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/autoImports/memberImportNotForTopLevelFunction.test");
doTestWithExtraFile(fileName);
}
@TestMetadata("memberImportProperty.test")
public void testMemberImportProperty() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/autoImports/memberImportProperty.test");
doTestWithExtraFile(fileName);
}
@TestMetadata("memberWithTopLevelConflict.before.Main.kt")
public void testMemberWithTopLevelConflict() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/autoImports/memberWithTopLevelConflict.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("minusOperator.before.Main.kt")
public void testMinusOperator() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/autoImports/minusOperator.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("multiDeclarationExtensionAllComponents.test")
public void testMultiDeclarationExtensionAllComponents() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/autoImports/multiDeclarationExtensionAllComponents.test");
doTestWithExtraFile(fileName);
}
@TestMetadata("multiDeclarationExtensionAllComponentsMany.test")
public void testMultiDeclarationExtensionAllComponentsMany() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/autoImports/multiDeclarationExtensionAllComponentsMany.test");
doTestWithExtraFile(fileName);
}
@TestMetadata("multiDeclarationExtensionAllComponentsPrefereFull.test")
public void testMultiDeclarationExtensionAllComponentsPrefereFull() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/autoImports/multiDeclarationExtensionAllComponentsPrefereFull.test");
doTestWithExtraFile(fileName);
}
@TestMetadata("multiDeclarationExtensionAllComponentsPrefereNotDeprecated.test")
public void testMultiDeclarationExtensionAllComponentsPrefereNotDeprecated() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/autoImports/multiDeclarationExtensionAllComponentsPrefereNotDeprecated.test");
doTestWithExtraFile(fileName);
}
@TestMetadata("multiDeclarationExtensionComponent1.test")
public void testMultiDeclarationExtensionComponent1() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/autoImports/multiDeclarationExtensionComponent1.test");
doTestWithExtraFile(fileName);
}
@TestMetadata("multiDeclarationExtensionComponent2.test")
public void testMultiDeclarationExtensionComponent2() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/autoImports/multiDeclarationExtensionComponent2.test");
doTestWithExtraFile(fileName);
}
@TestMetadata("multiDeclarationExtensionComponentNoOperator.test")
public void testMultiDeclarationExtensionComponentNoOperator() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/autoImports/multiDeclarationExtensionComponentNoOperator.test");
doTestWithExtraFile(fileName);
}
@TestMetadata("nestedClass.before.Main.kt")
public void testNestedClass() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/autoImports/nestedClass.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("noFunctionImportOnSimpleName.test")
public void testNoFunctionImportOnSimpleName() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/autoImports/noFunctionImportOnSimpleName.test");
doTestWithExtraFile(fileName);
}
@TestMetadata("noImportForFunInQualifiedNotFirst.before.Main.kt")
public void testNoImportForFunInQualifiedNotFirst() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/autoImports/noImportForFunInQualifiedNotFirst.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("noImportForNestedInPrivate.before.Main.kt")
public void testNoImportForNestedInPrivate() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/autoImports/noImportForNestedInPrivate.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("noImportForPrivateClass.before.Main.kt")
public void testNoImportForPrivateClass() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/autoImports/noImportForPrivateClass.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("noImportInImports.before.Main.kt")
public void testNoImportInImports() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/autoImports/noImportInImports.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("noImportInQualifiedExpressionNotFirst.before.Main.kt")
public void testNoImportInQualifiedExpressionNotFirst() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/autoImports/noImportInQualifiedExpressionNotFirst.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("noImportInQualifiedUserTypeNotFirst.before.Main.kt")
public void testNoImportInQualifiedUserTypeNotFirst() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/autoImports/noImportInQualifiedUserTypeNotFirst.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("noImportInSafeQualifiedExpressionNotFirst.before.Main.kt")
public void testNoImportInSafeQualifiedExpressionNotFirst() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/autoImports/noImportInSafeQualifiedExpressionNotFirst.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("noImportInterfaceRefAsConstructor.before.Main.kt")
public void testNoImportInterfaceRefAsConstructor() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/autoImports/noImportInterfaceRefAsConstructor.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("noImportsForClassInExcludedPackage.before.Main.kt")
public void testNoImportsForClassInExcludedPackage() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/autoImports/noImportsForClassInExcludedPackage.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("noImportsForExcludedClass.before.Main.kt")
public void testNoImportsForExcludedClass() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/autoImports/noImportsForExcludedClass.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("noImportsForFunctionInExcludedPackage.before.Main.kt")
public void testNoImportsForFunctionInExcludedPackage() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/autoImports/noImportsForFunctionInExcludedPackage.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("noMemberFunctionImportOnSimpleName.test")
public void testNoMemberFunctionImportOnSimpleName() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/autoImports/noMemberFunctionImportOnSimpleName.test");
doTestWithExtraFile(fileName);
}
@TestMetadata("noneApplicableFromInstanceButExtension.before.Main.kt")
public void testNoneApplicableFromInstanceButExtension() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/autoImports/noneApplicableFromInstanceButExtension.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("notExcludedClass.before.Main.kt")
public void testNotExcludedClass() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/autoImports/notExcludedClass.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("objectImport.before.Main.kt")
public void testObjectImport() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/autoImports/objectImport.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("operatorAssignPlus.test")
public void testOperatorAssignPlus() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/autoImports/operatorAssignPlus.test");
doTestWithExtraFile(fileName);
}
@TestMetadata("operatorAssignPlusAssign.test")
public void testOperatorAssignPlusAssign() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/autoImports/operatorAssignPlusAssign.test");
doTestWithExtraFile(fileName);
}
@TestMetadata("operatorAssignPlusTwoVariantsDifferentPackages.test")
public void testOperatorAssignPlusTwoVariantsDifferentPackages() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/autoImports/operatorAssignPlusTwoVariantsDifferentPackages.test");
doTestWithExtraFile(fileName);
}
@TestMetadata("packageClass.before.Main.kt")
public void testPackageClass() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/autoImports/packageClass.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("plusOperator.before.Main.kt")
public void testPlusOperator() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/autoImports/plusOperator.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("plusOperatorWithTypeMismatch.before.Main.kt")
public void testPlusOperatorWithTypeMismatch() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/autoImports/plusOperatorWithTypeMismatch.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("postfixOperator.before.Main.kt")
public void testPostfixOperator() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/autoImports/postfixOperator.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("propertyImport.before.Main.kt")
public void testPropertyImport() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/autoImports/propertyImport.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("sameModuleImportPriority.before.Main.kt")
public void testSameModuleImportPriority() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/autoImports/sameModuleImportPriority.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("timesAssign.before.Main.kt")
public void testTimesAssign() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/autoImports/timesAssign.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("typeAliasExtensionFunction.before.Main.kt")
public void testTypeAliasExtensionFunction() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/autoImports/typeAliasExtensionFunction.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("typeAliasExtensionFunctionInTypeAliasChain.before.Main.kt")
public void testTypeAliasExtensionFunctionInTypeAliasChain() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/autoImports/typeAliasExtensionFunctionInTypeAliasChain.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("typeAliasExtensionProperty.before.Main.kt")
public void testTypeAliasExtensionProperty() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/autoImports/typeAliasExtensionProperty.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("typeAliasImport.before.Main.kt")
public void testTypeAliasImport() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/autoImports/typeAliasImport.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("unaryMinusOperator.before.Main.kt")
public void testUnaryMinusOperator() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/autoImports/unaryMinusOperator.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("unaryPlusOperator.before.Main.kt")
public void testUnaryPlusOperator() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/autoImports/unaryPlusOperator.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("withSmartCastQualifier.before.Main.kt")
public void testWithSmartCastQualifier() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/autoImports/withSmartCastQualifier.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("idea/testData/quickfix/autoImports/mismatchingArgs")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class MismatchingArgs extends AbstractQuickFixMultiFileTest {
public void testAllFilesPresentInMismatchingArgs() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/quickfix/autoImports/mismatchingArgs"), Pattern.compile("^(\\w+)\\.((before\\.Main\\.\\w+)|(test))$"), TargetBackend.ANY, true);
}
@TestMetadata("checkArgumentTypes.test")
public void testCheckArgumentTypes() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/autoImports/mismatchingArgs/checkArgumentTypes.test");
doTestWithExtraFile(fileName);
}
@TestMetadata("constantExpectedTypeMismatch.test")
public void testConstantExpectedTypeMismatch() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/autoImports/mismatchingArgs/constantExpectedTypeMismatch.test");
doTestWithExtraFile(fileName);
}
@TestMetadata("expectedTypeRequired.test")
public void testExpectedTypeRequired() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/autoImports/mismatchingArgs/expectedTypeRequired.test");
doTestWithExtraFile(fileName);
}
@TestMetadata("extensionExplicitReceiver.test")
public void testExtensionExplicitReceiver() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/autoImports/mismatchingArgs/extensionExplicitReceiver.test");
doTestWithExtraFile(fileName);
}
@TestMetadata("extensionImplicitReceiver.test")
public void testExtensionImplicitReceiver() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/autoImports/mismatchingArgs/extensionImplicitReceiver.test");
doTestWithExtraFile(fileName);
}
@TestMetadata("extensionWrongReceiver.test")
public void testExtensionWrongReceiver() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/autoImports/mismatchingArgs/extensionWrongReceiver.test");
doTestWithExtraFile(fileName);
}
@TestMetadata("ignoreErrorsOutsideCall.test")
public void testIgnoreErrorsOutsideCall() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/autoImports/mismatchingArgs/ignoreErrorsOutsideCall.test");
doTestWithExtraFile(fileName);
}
@TestMetadata("lambdaArgument.test")
public void testLambdaArgument() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/autoImports/mismatchingArgs/lambdaArgument.test");
doTestWithExtraFile(fileName);
}
@TestMetadata("namedArgument.test")
public void testNamedArgument() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/autoImports/mismatchingArgs/namedArgument.test");
doTestWithExtraFile(fileName);
}
@TestMetadata("notForIncompleteCall.test")
public void testNotForIncompleteCall() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/autoImports/mismatchingArgs/notForIncompleteCall.test");
doTestWithExtraFile(fileName);
}
@TestMetadata("smartCast.test")
public void testSmartCast() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/autoImports/mismatchingArgs/smartCast.test");
doTestWithExtraFile(fileName);
}
@TestMetadata("topLevelFun.test")
public void testTopLevelFun() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/autoImports/mismatchingArgs/topLevelFun.test");
doTestWithExtraFile(fileName);
}
@TestMetadata("topLevelFun_notWithReceiver.test")
public void testTopLevelFun_notWithReceiver() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/autoImports/mismatchingArgs/topLevelFun_notWithReceiver.test");
doTestWithExtraFile(fileName);
}
@TestMetadata("typeMismatch.test")
public void testTypeMismatch() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/autoImports/mismatchingArgs/typeMismatch.test");
doTestWithExtraFile(fileName);
}
}
}
@TestMetadata("idea/testData/quickfix/changeSignature")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class ChangeSignature extends AbstractQuickFixMultiFileTest {
@TestMetadata("addJavaMethodParameter.before.Main.kt")
public void testAddJavaMethodParameter() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/changeSignature/addJavaMethodParameter.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("addParameterWithImport.before.Main.kt")
public void testAddParameterWithImport() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/changeSignature/addParameterWithImport.before.Main.kt");
doTestWithExtraFile(fileName);
}
public void testAllFilesPresentInChangeSignature() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/quickfix/changeSignature"), Pattern.compile("^(\\w+)\\.((before\\.Main\\.\\w+)|(test))$"), TargetBackend.ANY, true);
}
@TestMetadata("matchFunctionLiteralWithSAMType.before.Main.kt")
public void testMatchFunctionLiteralWithSAMType() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/changeSignature/matchFunctionLiteralWithSAMType.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("removeJavaMethodParameter.before.Main.kt")
public void testRemoveJavaMethodParameter() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/changeSignature/removeJavaMethodParameter.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("idea/testData/quickfix/changeSignature/jk")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Jk extends AbstractQuickFixMultiFileTest {
public void testAllFilesPresentInJk() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/quickfix/changeSignature/jk"), Pattern.compile("^(\\w+)\\.((before\\.Main\\.\\w+)|(test))$"), TargetBackend.ANY, true);
}
@TestMetadata("jkAddFunctionParameter.before.Main.java")
public void testJkAddFunctionParameter() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/changeSignature/jk/jkAddFunctionParameter.before.Main.java");
doTestWithExtraFile(fileName);
}
@TestMetadata("jkAddImplicitPrimaryConstructorParameter.before.Main.java")
public void testJkAddImplicitPrimaryConstructorParameter() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/changeSignature/jk/jkAddImplicitPrimaryConstructorParameter.before.Main.java");
doTestWithExtraFile(fileName);
}
@TestMetadata("jkAddPrimaryConstructorParameter.before.Main.java")
public void testJkAddPrimaryConstructorParameter() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/changeSignature/jk/jkAddPrimaryConstructorParameter.before.Main.java");
doTestWithExtraFile(fileName);
}
@TestMetadata("jkAddSecondaryConstructorParameter.before.Main.java")
public void testJkAddSecondaryConstructorParameter() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/changeSignature/jk/jkAddSecondaryConstructorParameter.before.Main.java");
doTestWithExtraFile(fileName);
}
@TestMetadata("jkChangeFunctionParameter.before.Main.java")
public void testJkChangeFunctionParameter() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/changeSignature/jk/jkChangeFunctionParameter.before.Main.java");
doTestWithExtraFile(fileName);
}
@TestMetadata("jkChangePrimaryConstructorParameter.before.Main.java")
public void testJkChangePrimaryConstructorParameter() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/changeSignature/jk/jkChangePrimaryConstructorParameter.before.Main.java");
doTestWithExtraFile(fileName);
}
@TestMetadata("jkChangeSecondaryConstructorParameter.before.Main.java")
public void testJkChangeSecondaryConstructorParameter() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/changeSignature/jk/jkChangeSecondaryConstructorParameter.before.Main.java");
doTestWithExtraFile(fileName);
}
@TestMetadata("jkRemoveFunctionParameter.before.Main.java")
public void testJkRemoveFunctionParameter() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/changeSignature/jk/jkRemoveFunctionParameter.before.Main.java");
doTestWithExtraFile(fileName);
}
@TestMetadata("jkRemovePrimaryConstructorParameter.before.Main.java")
public void testJkRemovePrimaryConstructorParameter() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/changeSignature/jk/jkRemovePrimaryConstructorParameter.before.Main.java");
doTestWithExtraFile(fileName);
}
@TestMetadata("jkRemoveSecondaryConstructorParameter.before.Main.java")
public void testJkRemoveSecondaryConstructorParameter() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/changeSignature/jk/jkRemoveSecondaryConstructorParameter.before.Main.java");
doTestWithExtraFile(fileName);
}
}
}
@TestMetadata("idea/testData/quickfix/checkArguments")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class CheckArguments extends AbstractQuickFixMultiFileTest {
public void testAllFilesPresentInCheckArguments() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/quickfix/checkArguments"), Pattern.compile("^(\\w+)\\.((before\\.Main\\.\\w+)|(test))$"), TargetBackend.ANY, true);
}
}
@TestMetadata("idea/testData/quickfix/convertJavaInterfaceToClass")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class ConvertJavaInterfaceToClass extends AbstractQuickFixMultiFileTest {
public void testAllFilesPresentInConvertJavaInterfaceToClass() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/quickfix/convertJavaInterfaceToClass"), Pattern.compile("^(\\w+)\\.((before\\.Main\\.\\w+)|(test))$"), TargetBackend.ANY, true);
}
@TestMetadata("kotlinInheritor.before.Main.java")
public void testKotlinInheritor() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/convertJavaInterfaceToClass/kotlinInheritor.before.Main.java");
doTestWithExtraFile(fileName);
}
}
@TestMetadata("idea/testData/quickfix/createFromUsage")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class CreateFromUsage extends AbstractQuickFixMultiFileTest {
public void testAllFilesPresentInCreateFromUsage() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/quickfix/createFromUsage"), Pattern.compile("^(\\w+)\\.((before\\.Main\\.\\w+)|(test))$"), TargetBackend.ANY, true);
}
@TestMetadata("idea/testData/quickfix/createFromUsage/createClass")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class CreateClass extends AbstractQuickFixMultiFileTest {
public void testAllFilesPresentInCreateClass() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/quickfix/createFromUsage/createClass"), Pattern.compile("^(\\w+)\\.((before\\.Main\\.\\w+)|(test))$"), TargetBackend.ANY, true);
}
@TestMetadata("idea/testData/quickfix/createFromUsage/createClass/annotationEntry")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class AnnotationEntry extends AbstractQuickFixMultiFileTest {
public void testAllFilesPresentInAnnotationEntry() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/quickfix/createFromUsage/createClass/annotationEntry"), Pattern.compile("^(\\w+)\\.((before\\.Main\\.\\w+)|(test))$"), TargetBackend.ANY, true);
}
@TestMetadata("nestedGroovyAnnotation.before.Main.kt")
public void testNestedGroovyAnnotation() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/createFromUsage/createClass/annotationEntry/nestedGroovyAnnotation.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("nestedJavaAnnotation.before.Main.kt")
public void testNestedJavaAnnotation() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/createFromUsage/createClass/annotationEntry/nestedJavaAnnotation.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("nestedJavaAnnotationWithNamedArgs.before.Main.kt")
public void testNestedJavaAnnotationWithNamedArgs() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/createFromUsage/createClass/annotationEntry/nestedJavaAnnotationWithNamedArgs.before.Main.kt");
doTestWithExtraFile(fileName);
}
}
@TestMetadata("idea/testData/quickfix/createFromUsage/createClass/callExpression")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class CallExpression extends AbstractQuickFixMultiFileTest {
public void testAllFilesPresentInCallExpression() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/quickfix/createFromUsage/createClass/callExpression"), Pattern.compile("^(\\w+)\\.((before\\.Main\\.\\w+)|(test))$"), TargetBackend.ANY, true);
}
@TestMetadata("callInAnnotationEntryWithJavaQualifier.before.Main.kt")
public void testCallInAnnotationEntryWithJavaQualifier() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/createFromUsage/createClass/callExpression/callInAnnotationEntryWithJavaQualifier.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("callWithExplicitParamNamesAndJavaQualifier.before.Main.kt")
public void testCallWithExplicitParamNamesAndJavaQualifier() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/createFromUsage/createClass/callExpression/callWithExplicitParamNamesAndJavaQualifier.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("callWithFinalJavaSupertype.before.Main.kt")
public void testCallWithFinalJavaSupertype() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/createFromUsage/createClass/callExpression/callWithFinalJavaSupertype.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("callWithGenericJavaReceiver.before.Main.kt")
public void testCallWithGenericJavaReceiver() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/createFromUsage/createClass/callExpression/callWithGenericJavaReceiver.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("callWithGroovyClassQualifier.before.Main.kt")
public void testCallWithGroovyClassQualifier() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/createFromUsage/createClass/callExpression/callWithGroovyClassQualifier.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("callWithJavaClassQualifier.before.Main.kt")
public void testCallWithJavaClassQualifier() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/createFromUsage/createClass/callExpression/callWithJavaClassQualifier.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("callWithJavaClassReceiver.before.Main.kt")
public void testCallWithJavaClassReceiver() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/createFromUsage/createClass/callExpression/callWithJavaClassReceiver.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("callWithJavaQualifierInMemberValDelegate.before.Main.kt")
public void testCallWithJavaQualifierInMemberValDelegate() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/createFromUsage/createClass/callExpression/callWithJavaQualifierInMemberValDelegate.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("callWithSuperclassAndJavaReceiverNoConstructorParams.before.Main.kt")
public void testCallWithSuperclassAndJavaReceiverNoConstructorParams() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/createFromUsage/createClass/callExpression/callWithSuperclassAndJavaReceiverNoConstructorParams.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("callWithSuperclassConstructorParamsAndJavaReceiver.before.Main.kt")
public void testCallWithSuperclassConstructorParamsAndJavaReceiver() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/createFromUsage/createClass/callExpression/callWithSuperclassConstructorParamsAndJavaReceiver.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("callWithSupertraitAndJavaReceiver.before.Main.kt")
public void testCallWithSupertraitAndJavaReceiver() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/createFromUsage/createClass/callExpression/callWithSupertraitAndJavaReceiver.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("idea/testData/quickfix/createFromUsage/createClass/callExpression/typeArguments")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class TypeArguments extends AbstractQuickFixMultiFileTest {
public void testAllFilesPresentInTypeArguments() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/quickfix/createFromUsage/createClass/callExpression/typeArguments"), Pattern.compile("^(\\w+)\\.((before\\.Main\\.\\w+)|(test))$"), TargetBackend.ANY, true);
}
@TestMetadata("javaClassMember.before.Main.kt")
public void testJavaClassMember() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/createFromUsage/createClass/callExpression/typeArguments/javaClassMember.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("javaClassMemberInner.before.Main.kt")
public void testJavaClassMemberInner() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/createFromUsage/createClass/callExpression/typeArguments/javaClassMemberInner.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("javaClassMemberInnerPartialSubstitution.before.Main.kt")
public void testJavaClassMemberInnerPartialSubstitution() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/createFromUsage/createClass/callExpression/typeArguments/javaClassMemberInnerPartialSubstitution.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("javaClassMemberInnerWithReceiverArg.before.Main.kt")
public void testJavaClassMemberInnerWithReceiverArg() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/createFromUsage/createClass/callExpression/typeArguments/javaClassMemberInnerWithReceiverArg.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("javaClassMemberPartialSubstitution.before.Main.kt")
public void testJavaClassMemberPartialSubstitution() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/createFromUsage/createClass/callExpression/typeArguments/javaClassMemberPartialSubstitution.before.Main.kt");
doTestWithExtraFile(fileName);
}
}
}
@TestMetadata("idea/testData/quickfix/createFromUsage/createClass/delegationSpecifier")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class DelegationSpecifier extends AbstractQuickFixMultiFileTest {
public void testAllFilesPresentInDelegationSpecifier() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/quickfix/createFromUsage/createClass/delegationSpecifier"), Pattern.compile("^(\\w+)\\.((before\\.Main\\.\\w+)|(test))$"), TargetBackend.ANY, true);
}
@TestMetadata("delegatorToNestedJavaSupercall.before.Main.kt")
public void testDelegatorToNestedJavaSupercall() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/createFromUsage/createClass/delegationSpecifier/delegatorToNestedJavaSupercall.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("delegatorToNestedJavaSupercallWithParamNames.before.Main.kt")
public void testDelegatorToNestedJavaSupercallWithParamNames() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/createFromUsage/createClass/delegationSpecifier/delegatorToNestedJavaSupercallWithParamNames.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("traitDelegatorToNestedGroovySuperclass.before.Main.kt")
public void testTraitDelegatorToNestedGroovySuperclass() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/createFromUsage/createClass/delegationSpecifier/traitDelegatorToNestedGroovySuperclass.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("traitDelegatorToNestedJavaSuperclass.before.Main.kt")
public void testTraitDelegatorToNestedJavaSuperclass() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/createFromUsage/createClass/delegationSpecifier/traitDelegatorToNestedJavaSuperclass.before.Main.kt");
doTestWithExtraFile(fileName);
}
}
@TestMetadata("idea/testData/quickfix/createFromUsage/createClass/importDirective")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class ImportDirective extends AbstractQuickFixMultiFileTest {
public void testAllFilesPresentInImportDirective() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/quickfix/createFromUsage/createClass/importDirective"), Pattern.compile("^(\\w+)\\.((before\\.Main\\.\\w+)|(test))$"), TargetBackend.ANY, true);
}
@TestMetadata("annotationWithJavaQualifier.before.Main.kt")
public void testAnnotationWithJavaQualifier() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/createFromUsage/createClass/importDirective/annotationWithJavaQualifier.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("classWithGroovyQualifier.before.Main.kt")
public void testClassWithGroovyQualifier() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/createFromUsage/createClass/importDirective/classWithGroovyQualifier.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("classWithJavaQualifier.before.Main.kt")
public void testClassWithJavaQualifier() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/createFromUsage/createClass/importDirective/classWithJavaQualifier.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("enumEntryInJavaEnum.before.Main.kt")
public void testEnumEntryInJavaEnum() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/createFromUsage/createClass/importDirective/enumEntryInJavaEnum.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("enumWithJavaQualifier.before.Main.kt")
public void testEnumWithJavaQualifier() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/createFromUsage/createClass/importDirective/enumWithJavaQualifier.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("objectWithJavaQualifier.before.Main.kt")
public void testObjectWithJavaQualifier() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/createFromUsage/createClass/importDirective/objectWithJavaQualifier.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("traitWithJavaQualifier.before.Main.kt")
public void testTraitWithJavaQualifier() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/createFromUsage/createClass/importDirective/traitWithJavaQualifier.before.Main.kt");
doTestWithExtraFile(fileName);
}
}
@TestMetadata("idea/testData/quickfix/createFromUsage/createClass/referenceExpression")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class ReferenceExpression extends AbstractQuickFixMultiFileTest {
public void testAllFilesPresentInReferenceExpression() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/quickfix/createFromUsage/createClass/referenceExpression"), Pattern.compile("^(\\w+)\\.((before\\.Main\\.\\w+)|(test))$"), TargetBackend.ANY, true);
}
@TestMetadata("classByNestedGroovyQualifier.before.Main.kt")
public void testClassByNestedGroovyQualifier() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/createFromUsage/createClass/referenceExpression/classByNestedGroovyQualifier.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("classByNestedJavaQualifier.before.Main.kt")
public void testClassByNestedJavaQualifier() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/createFromUsage/createClass/referenceExpression/classByNestedJavaQualifier.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("enumByNestedJavaQualifier.before.Main.kt")
public void testEnumByNestedJavaQualifier() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/createFromUsage/createClass/referenceExpression/enumByNestedJavaQualifier.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("enumEntryWithJavaEnumQualifier.before.Main.kt")
public void testEnumEntryWithJavaEnumQualifier() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/createFromUsage/createClass/referenceExpression/enumEntryWithJavaEnumQualifier.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("enumEntryWithJavaEnumSuperclass.before.Main.kt")
public void testEnumEntryWithJavaEnumSuperclass() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/createFromUsage/createClass/referenceExpression/enumEntryWithJavaEnumSuperclass.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("enumEntryWithJavaNonEnumQualifier.before.Main.kt")
public void testEnumEntryWithJavaNonEnumQualifier() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/createFromUsage/createClass/referenceExpression/enumEntryWithJavaNonEnumQualifier.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("enumEntryWithJavaNonEnumSuperclass.before.Main.kt")
public void testEnumEntryWithJavaNonEnumSuperclass() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/createFromUsage/createClass/referenceExpression/enumEntryWithJavaNonEnumSuperclass.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("objectWithJavaQualifier.before.Main.kt")
public void testObjectWithJavaQualifier() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/createFromUsage/createClass/referenceExpression/objectWithJavaQualifier.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("traitByNestedJavaQualifier.before.Main.kt")
public void testTraitByNestedJavaQualifier() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/createFromUsage/createClass/referenceExpression/traitByNestedJavaQualifier.before.Main.kt");
doTestWithExtraFile(fileName);
}
}
@TestMetadata("idea/testData/quickfix/createFromUsage/createClass/typeReference")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class TypeReference extends AbstractQuickFixMultiFileTest {
public void testAllFilesPresentInTypeReference() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/quickfix/createFromUsage/createClass/typeReference"), Pattern.compile("^(\\w+)\\.((before\\.Main\\.\\w+)|(test))$"), TargetBackend.ANY, true);
}
@TestMetadata("annotationJavaTypeReceiver.before.Main.kt")
public void testAnnotationJavaTypeReceiver() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/createFromUsage/createClass/typeReference/annotationJavaTypeReceiver.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("classGroovyTypeReceiver.before.Main.kt")
public void testClassGroovyTypeReceiver() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/createFromUsage/createClass/typeReference/classGroovyTypeReceiver.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("classJavaTypeReceiver.before.Main.kt")
public void testClassJavaTypeReceiver() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/createFromUsage/createClass/typeReference/classJavaTypeReceiver.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("enumEntryJavaEnumReceiver.before.Main.kt")
public void testEnumEntryJavaEnumReceiver() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/createFromUsage/createClass/typeReference/enumEntryJavaEnumReceiver.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("enumJavaTypeReceiver.before.Main.kt")
public void testEnumJavaTypeReceiver() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/createFromUsage/createClass/typeReference/enumJavaTypeReceiver.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("traitJavaTypeReceiver.before.Main.kt")
public void testTraitJavaTypeReceiver() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/createFromUsage/createClass/typeReference/traitJavaTypeReceiver.before.Main.kt");
doTestWithExtraFile(fileName);
}
}
}
@TestMetadata("idea/testData/quickfix/createFromUsage/createFunction")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class CreateFunction extends AbstractQuickFixMultiFileTest {
public void testAllFilesPresentInCreateFunction() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/quickfix/createFromUsage/createFunction"), Pattern.compile("^(\\w+)\\.((before\\.Main\\.\\w+)|(test))$"), TargetBackend.ANY, true);
}
@TestMetadata("idea/testData/quickfix/createFromUsage/createFunction/call")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Call extends AbstractQuickFixMultiFileTest {
public void testAllFilesPresentInCall() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/quickfix/createFromUsage/createFunction/call"), Pattern.compile("^(\\w+)\\.((before\\.Main\\.\\w+)|(test))$"), TargetBackend.ANY, true);
}
@TestMetadata("extensionFunOnGroovyType.before.Main.kt")
public void testExtensionFunOnGroovyType() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/createFromUsage/createFunction/call/extensionFunOnGroovyType.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("extensionFunOnJavaType.before.Main.kt")
public void testExtensionFunOnJavaType() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/createFromUsage/createFunction/call/extensionFunOnJavaType.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("extensionFunOnTypeFromAnotherPackage.before.Main.kt")
public void testExtensionFunOnTypeFromAnotherPackage() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/createFromUsage/createFunction/call/extensionFunOnTypeFromAnotherPackage.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("funOnGroovyType.before.Main.kt")
public void testFunOnGroovyType() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/createFromUsage/createFunction/call/funOnGroovyType.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("funOnJavaInterface.before.Main.kt")
public void testFunOnJavaInterface() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/createFromUsage/createFunction/call/funOnJavaInterface.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("funOnJavaType.before.Main.kt")
public void testFunOnJavaType() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/createFromUsage/createFunction/call/funOnJavaType.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("genericFunOnJavaType.before.Main.kt")
public void testGenericFunOnJavaType() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/createFromUsage/createFunction/call/genericFunOnJavaType.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("staticExtensionFunOnJavaClass.before.Main.kt")
public void testStaticExtensionFunOnJavaClass() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/createFromUsage/createFunction/call/staticExtensionFunOnJavaClass.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("staticFunOnJavaClass.before.Main.kt")
public void testStaticFunOnJavaClass() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/createFromUsage/createFunction/call/staticFunOnJavaClass.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("staticFunOnJavaInterface.before.Main.kt")
public void testStaticFunOnJavaInterface() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/createFromUsage/createFunction/call/staticFunOnJavaInterface.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("idea/testData/quickfix/createFromUsage/createFunction/call/typeArguments")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class TypeArguments extends AbstractQuickFixMultiFileTest {
public void testAllFilesPresentInTypeArguments() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/quickfix/createFromUsage/createFunction/call/typeArguments"), Pattern.compile("^(\\w+)\\.((before\\.Main\\.\\w+)|(test))$"), TargetBackend.ANY, true);
}
@TestMetadata("javaClassMember.before.Main.kt")
public void testJavaClassMember() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/createFromUsage/createFunction/call/typeArguments/javaClassMember.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("javaClassMemberPartialSubstitution.before.Main.kt")
public void testJavaClassMemberPartialSubstitution() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/createFromUsage/createFunction/call/typeArguments/javaClassMemberPartialSubstitution.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("javaClassMemberWithReceiverArg.before.Main.kt")
public void testJavaClassMemberWithReceiverArg() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/createFromUsage/createFunction/call/typeArguments/javaClassMemberWithReceiverArg.before.Main.kt");
doTestWithExtraFile(fileName);
}
}
}
}
@TestMetadata("idea/testData/quickfix/createFromUsage/createSecondaryConstructor")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class CreateSecondaryConstructor extends AbstractQuickFixMultiFileTest {
public void testAllFilesPresentInCreateSecondaryConstructor() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/quickfix/createFromUsage/createSecondaryConstructor"), Pattern.compile("^(\\w+)\\.((before\\.Main\\.\\w+)|(test))$"), TargetBackend.ANY, true);
}
@TestMetadata("delegatorToSuperCallJavaClass.before.Main.kt")
public void testDelegatorToSuperCallJavaClass() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/createFromUsage/createSecondaryConstructor/delegatorToSuperCallJavaClass.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("groovyConstructor.before.Main.kt")
public void testGroovyConstructor() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/createFromUsage/createSecondaryConstructor/groovyConstructor.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("javaConstructor.before.Main.kt")
public void testJavaConstructor() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/createFromUsage/createSecondaryConstructor/javaConstructor.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("superCallJavaClass.before.Main.kt")
public void testSuperCallJavaClass() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/createFromUsage/createSecondaryConstructor/superCallJavaClass.before.Main.kt");
doTestWithExtraFile(fileName);
}
}
@TestMetadata("idea/testData/quickfix/createFromUsage/createTypeAlias")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class CreateTypeAlias extends AbstractQuickFixMultiFileTest {
public void testAllFilesPresentInCreateTypeAlias() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/quickfix/createFromUsage/createTypeAlias"), Pattern.compile("^(\\w+)\\.((before\\.Main\\.\\w+)|(test))$"), TargetBackend.ANY, true);
}
}
@TestMetadata("idea/testData/quickfix/createFromUsage/createTypeParameter")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class CreateTypeParameter extends AbstractQuickFixMultiFileTest {
public void testAllFilesPresentInCreateTypeParameter() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/quickfix/createFromUsage/createTypeParameter"), Pattern.compile("^(\\w+)\\.((before\\.Main\\.\\w+)|(test))$"), TargetBackend.ANY, true);
}
}
@TestMetadata("idea/testData/quickfix/createFromUsage/createVariable")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class CreateVariable extends AbstractQuickFixMultiFileTest {
public void testAllFilesPresentInCreateVariable() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/quickfix/createFromUsage/createVariable"), Pattern.compile("^(\\w+)\\.((before\\.Main\\.\\w+)|(test))$"), TargetBackend.ANY, true);
}
@TestMetadata("idea/testData/quickfix/createFromUsage/createVariable/parameter")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Parameter extends AbstractQuickFixMultiFileTest {
public void testAllFilesPresentInParameter() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/quickfix/createFromUsage/createVariable/parameter"), Pattern.compile("^(\\w+)\\.((before\\.Main\\.\\w+)|(test))$"), TargetBackend.ANY, true);
}
@TestMetadata("platformType.before.Main.kt")
public void testPlatformType() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/createFromUsage/createVariable/parameter/platformType.before.Main.kt");
doTestWithExtraFile(fileName);
}
}
@TestMetadata("idea/testData/quickfix/createFromUsage/createVariable/primaryParameter")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class PrimaryParameter extends AbstractQuickFixMultiFileTest {
public void testAllFilesPresentInPrimaryParameter() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/quickfix/createFromUsage/createVariable/primaryParameter"), Pattern.compile("^(\\w+)\\.((before\\.Main\\.\\w+)|(test))$"), TargetBackend.ANY, true);
}
@TestMetadata("staticValOnJavaClass.before.Main.kt")
public void testStaticValOnJavaClass() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/createFromUsage/createVariable/primaryParameter/staticValOnJavaClass.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("valOnJavaType.before.Main.kt")
public void testValOnJavaType() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/createFromUsage/createVariable/primaryParameter/valOnJavaType.before.Main.kt");
doTestWithExtraFile(fileName);
}
}
@TestMetadata("idea/testData/quickfix/createFromUsage/createVariable/property")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Property extends AbstractQuickFixMultiFileTest {
public void testAllFilesPresentInProperty() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/quickfix/createFromUsage/createVariable/property"), Pattern.compile("^(\\w+)\\.((before\\.Main\\.\\w+)|(test))$"), TargetBackend.ANY, true);
}
@TestMetadata("extensionPropertyOnTypeFromAnotherPackage.before.Main.kt")
public void testExtensionPropertyOnTypeFromAnotherPackage() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/createFromUsage/createVariable/property/extensionPropertyOnTypeFromAnotherPackage.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("extensionValOnGroovyType.before.Main.kt")
public void testExtensionValOnGroovyType() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/createFromUsage/createVariable/property/extensionValOnGroovyType.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("extensionValOnJavaType.before.Main.kt")
public void testExtensionValOnJavaType() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/createFromUsage/createVariable/property/extensionValOnJavaType.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("staticExtensionValOnJavaType.before.Main.kt")
public void testStaticExtensionValOnJavaType() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/createFromUsage/createVariable/property/staticExtensionValOnJavaType.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("staticValOnJavaClass.before.Main.kt")
public void testStaticValOnJavaClass() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/createFromUsage/createVariable/property/staticValOnJavaClass.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("staticValOnJavaInterface.before.Main.kt")
public void testStaticValOnJavaInterface() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/createFromUsage/createVariable/property/staticValOnJavaInterface.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("staticVarOnJavaInterface.before.Main.kt")
public void testStaticVarOnJavaInterface() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/createFromUsage/createVariable/property/staticVarOnJavaInterface.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("valOnGroovyType.before.Main.kt")
public void testValOnGroovyType() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/createFromUsage/createVariable/property/valOnGroovyType.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("valOnJavaInterface.before.Main.kt")
public void testValOnJavaInterface() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/createFromUsage/createVariable/property/valOnJavaInterface.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("valOnJavaType.before.Main.kt")
public void testValOnJavaType() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/createFromUsage/createVariable/property/valOnJavaType.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("varOnJavaType.before.Main.kt")
public void testVarOnJavaType() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/createFromUsage/createVariable/property/varOnJavaType.before.Main.kt");
doTestWithExtraFile(fileName);
}
}
}
}
@TestMetadata("idea/testData/quickfix/deprecatedSymbolUsage")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class DeprecatedSymbolUsage extends AbstractQuickFixMultiFileTest {
public void testAllFilesPresentInDeprecatedSymbolUsage() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/quickfix/deprecatedSymbolUsage"), Pattern.compile("^(\\w+)\\.((before\\.Main\\.\\w+)|(test))$"), TargetBackend.ANY, true);
}
@TestMetadata("javaDeprecated.before.Main.kt")
public void testJavaDeprecated() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/deprecatedSymbolUsage/javaDeprecated.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("toMethodFromCompanionObject.before.Main.kt")
public void testToMethodFromCompanionObject() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/deprecatedSymbolUsage/toMethodFromCompanionObject.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("idea/testData/quickfix/deprecatedSymbolUsage/classUsages")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class ClassUsages extends AbstractQuickFixMultiFileTest {
@TestMetadata("addImportFromSamePackage.before.Main.kt")
public void testAddImportFromSamePackage() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/deprecatedSymbolUsage/classUsages/addImportFromSamePackage.before.Main.kt");
doTestWithExtraFile(fileName);
}
public void testAllFilesPresentInClassUsages() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/quickfix/deprecatedSymbolUsage/classUsages"), Pattern.compile("^(\\w+)\\.((before\\.Main\\.\\w+)|(test))$"), TargetBackend.ANY, true);
}
@TestMetadata("idea/testData/quickfix/deprecatedSymbolUsage/classUsages/wholeProject")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class WholeProject extends AbstractQuickFixMultiFileTest {
public void testAllFilesPresentInWholeProject() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/quickfix/deprecatedSymbolUsage/classUsages/wholeProject"), Pattern.compile("^(\\w+)\\.((before\\.Main\\.\\w+)|(test))$"), TargetBackend.ANY, true);
}
@TestMetadata("annotation.before.Main.kt")
public void testAnnotation() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/deprecatedSymbolUsage/classUsages/wholeProject/annotation.before.Main.kt");
doTestWithExtraFile(fileName);
}
}
}
@TestMetadata("idea/testData/quickfix/deprecatedSymbolUsage/imports")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Imports extends AbstractQuickFixMultiFileTest {
@TestMetadata("addImportForOperator.before.Main.kt")
public void testAddImportForOperator() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/deprecatedSymbolUsage/imports/addImportForOperator.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("addImportFromSamePackage.before.Main.kt")
public void testAddImportFromSamePackage() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/deprecatedSymbolUsage/imports/addImportFromSamePackage.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("addImportFromSamePackage2.before.Main.kt")
public void testAddImportFromSamePackage2() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/deprecatedSymbolUsage/imports/addImportFromSamePackage2.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("addImportFromSamePackage3.before.Main.kt")
public void testAddImportFromSamePackage3() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/deprecatedSymbolUsage/imports/addImportFromSamePackage3.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("addImports.before.Main.kt")
public void testAddImports() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/deprecatedSymbolUsage/imports/addImports.before.Main.kt");
doTestWithExtraFile(fileName);
}
public void testAllFilesPresentInImports() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/quickfix/deprecatedSymbolUsage/imports"), Pattern.compile("^(\\w+)\\.((before\\.Main\\.\\w+)|(test))$"), TargetBackend.ANY, true);
}
@TestMetadata("rootPackage.before.Main.kt")
public void testRootPackage() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/deprecatedSymbolUsage/imports/rootPackage.before.Main.kt");
doTestWithExtraFile(fileName);
}
}
@TestMetadata("idea/testData/quickfix/deprecatedSymbolUsage/typeArguments")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class TypeArguments extends AbstractQuickFixMultiFileTest {
public void testAllFilesPresentInTypeArguments() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/quickfix/deprecatedSymbolUsage/typeArguments"), Pattern.compile("^(\\w+)\\.((before\\.Main\\.\\w+)|(test))$"), TargetBackend.ANY, true);
}
@TestMetadata("platformType.before.Main.kt")
public void testPlatformType() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/deprecatedSymbolUsage/typeArguments/platformType.before.Main.kt");
doTestWithExtraFile(fileName);
}
}
@TestMetadata("idea/testData/quickfix/deprecatedSymbolUsage/wholeProject")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class WholeProject extends AbstractQuickFixMultiFileTest {
public void testAllFilesPresentInWholeProject() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/quickfix/deprecatedSymbolUsage/wholeProject"), Pattern.compile("^(\\w+)\\.((before\\.Main\\.\\w+)|(test))$"), TargetBackend.ANY, true);
}
@TestMetadata("function.before.Main.kt")
public void testFunction() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/deprecatedSymbolUsage/wholeProject/function.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("property.before.Main.kt")
public void testProperty() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/deprecatedSymbolUsage/wholeProject/property.before.Main.kt");
doTestWithExtraFile(fileName);
}
}
}
@TestMetadata("idea/testData/quickfix/increaseVisibility")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class IncreaseVisibility extends AbstractQuickFixMultiFileTest {
public void testAllFilesPresentInIncreaseVisibility() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/quickfix/increaseVisibility"), Pattern.compile("^(\\w+)\\.((before\\.Main\\.\\w+)|(test))$"), TargetBackend.ANY, true);
}
@TestMetadata("privateMemberToInternalMultiFile.before.Main.kt")
public void testPrivateMemberToInternalMultiFile() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/increaseVisibility/privateMemberToInternalMultiFile.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("privateTopLevelFunInFile.before.Main.kt")
public void testPrivateTopLevelFunInFile() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/increaseVisibility/privateTopLevelFunInFile.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("privateTopLevelValInFile.before.Main.kt")
public void testPrivateTopLevelValInFile() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/increaseVisibility/privateTopLevelValInFile.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("privateTopLevelVarInFile.before.Main.kt")
public void testPrivateTopLevelVarInFile() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/increaseVisibility/privateTopLevelVarInFile.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("privateTopLevelVarWithSetterInFile.before.Main.kt")
public void testPrivateTopLevelVarWithSetterInFile() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/increaseVisibility/privateTopLevelVarWithSetterInFile.before.Main.kt");
doTestWithExtraFile(fileName);
}
}
@TestMetadata("idea/testData/quickfix/migration")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Migration extends AbstractQuickFixMultiFileTest {
public void testAllFilesPresentInMigration() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/quickfix/migration"), Pattern.compile("^(\\w+)\\.((before\\.Main\\.\\w+)|(test))$"), TargetBackend.ANY, true);
}
@TestMetadata("idea/testData/quickfix/migration/conflictingExtension")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class ConflictingExtension extends AbstractQuickFixMultiFileTest {
public void testAllFilesPresentInConflictingExtension() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/quickfix/migration/conflictingExtension"), Pattern.compile("^(\\w+)\\.((before\\.Main\\.\\w+)|(test))$"), TargetBackend.ANY, true);
}
@TestMetadata("removeImports.before.Main.kt")
public void testRemoveImports() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/migration/conflictingExtension/removeImports.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("removeImportsOverloads.before.Main.kt")
public void testRemoveImportsOverloads() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/migration/conflictingExtension/removeImportsOverloads.before.Main.kt");
doTestWithExtraFile(fileName);
}
}
@TestMetadata("idea/testData/quickfix/migration/javaAnnotationPositionedArguments")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class JavaAnnotationPositionedArguments extends AbstractQuickFixMultiFileTest {
public void testAllFilesPresentInJavaAnnotationPositionedArguments() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/quickfix/migration/javaAnnotationPositionedArguments"), Pattern.compile("^(\\w+)\\.((before\\.Main\\.\\w+)|(test))$"), TargetBackend.ANY, true);
}
@TestMetadata("basicMultiple.before.Main.kt")
public void testBasicMultiple() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/migration/javaAnnotationPositionedArguments/basicMultiple.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("noValueForArgumentMultiple.before.Main.kt")
public void testNoValueForArgumentMultiple() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/migration/javaAnnotationPositionedArguments/noValueForArgumentMultiple.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("wrongTypeMultiple.before.Main.kt")
public void testWrongTypeMultiple() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/migration/javaAnnotationPositionedArguments/wrongTypeMultiple.before.Main.kt");
doTestWithExtraFile(fileName);
}
}
}
@TestMetadata("idea/testData/quickfix/modifiers")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Modifiers extends AbstractQuickFixMultiFileTest {
public void testAllFilesPresentInModifiers() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/quickfix/modifiers"), Pattern.compile("^(\\w+)\\.((before\\.Main\\.\\w+)|(test))$"), TargetBackend.ANY, true);
}
@TestMetadata("constVal.before.Main.kt")
public void testConstVal() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/modifiers/constVal.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("idea/testData/quickfix/modifiers/addOpenToClassDeclaration")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class AddOpenToClassDeclaration extends AbstractQuickFixMultiFileTest {
public void testAllFilesPresentInAddOpenToClassDeclaration() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/quickfix/modifiers/addOpenToClassDeclaration"), Pattern.compile("^(\\w+)\\.((before\\.Main\\.\\w+)|(test))$"), TargetBackend.ANY, true);
}
@TestMetadata("finalJavaSupertype.before.Main.kt")
public void testFinalJavaSupertype() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/modifiers/addOpenToClassDeclaration/finalJavaSupertype.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("finalJavaUpperBound.before.Main.kt")
public void testFinalJavaUpperBound() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/modifiers/addOpenToClassDeclaration/finalJavaUpperBound.before.Main.kt");
doTestWithExtraFile(fileName);
}
}
}
@TestMetadata("idea/testData/quickfix/nullables")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Nullables extends AbstractQuickFixMultiFileTest {
public void testAllFilesPresentInNullables() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/quickfix/nullables"), Pattern.compile("^(\\w+)\\.((before\\.Main\\.\\w+)|(test))$"), TargetBackend.ANY, true);
}
}
@TestMetadata("idea/testData/quickfix/optimizeImports")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class OptimizeImports extends AbstractQuickFixMultiFileTest {
public void testAllFilesPresentInOptimizeImports() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/quickfix/optimizeImports"), Pattern.compile("^(\\w+)\\.((before\\.Main\\.\\w+)|(test))$"), TargetBackend.ANY, true);
}
@TestMetadata("notRemoveImportsForTypeAliases.before.Main.kt")
public void testNotRemoveImportsForTypeAliases() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/optimizeImports/notRemoveImportsForTypeAliases.before.Main.kt");
doTestWithExtraFile(fileName);
}
}
@TestMetadata("idea/testData/quickfix/override")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Override extends AbstractQuickFixMultiFileTest {
public void testAllFilesPresentInOverride() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/quickfix/override"), Pattern.compile("^(\\w+)\\.((before\\.Main\\.\\w+)|(test))$"), TargetBackend.ANY, true);
}
@TestMetadata("idea/testData/quickfix/override/nothingToOverride")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class NothingToOverride extends AbstractQuickFixMultiFileTest {
public void testAllFilesPresentInNothingToOverride() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/quickfix/override/nothingToOverride"), Pattern.compile("^(\\w+)\\.((before\\.Main\\.\\w+)|(test))$"), TargetBackend.ANY, true);
}
@TestMetadata("import.before.Main.kt")
public void testImport() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/override/nothingToOverride/import.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("twoPackages.before.Main.kt")
public void testTwoPackages() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/override/nothingToOverride/twoPackages.before.Main.kt");
doTestWithExtraFile(fileName);
}
}
}
@TestMetadata("idea/testData/quickfix/properties")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Properties extends AbstractQuickFixMultiFileTest {
public void testAllFilesPresentInProperties() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/quickfix/properties"), Pattern.compile("^(\\w+)\\.((before\\.Main\\.\\w+)|(test))$"), TargetBackend.ANY, true);
}
}
@TestMetadata("idea/testData/quickfix/removeUnused")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class RemoveUnused extends AbstractQuickFixMultiFileTest {
public void testAllFilesPresentInRemoveUnused() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/quickfix/removeUnused"), Pattern.compile("^(\\w+)\\.((before\\.Main\\.\\w+)|(test))$"), TargetBackend.ANY, true);
}
@TestMetadata("javaTriangle.before.Main.kt")
public void testJavaTriangle() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/removeUnused/javaTriangle.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("javaTriangle2.before.Main.kt")
public void testJavaTriangle2() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/removeUnused/javaTriangle2.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("javaTriangle3.before.Main.kt")
public void testJavaTriangle3() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/removeUnused/javaTriangle3.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("javaTriangleUnused.before.Main.kt")
public void testJavaTriangleUnused() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/removeUnused/javaTriangleUnused.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("javaTriangleUnused2.before.Main.kt")
public void testJavaTriangleUnused2() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/removeUnused/javaTriangleUnused2.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("secondaryConstructorFromJava.before.Main.kt")
public void testSecondaryConstructorFromJava() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/removeUnused/secondaryConstructorFromJava.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("secondaryConstructorFromJavaDelegate.before.Main.kt")
public void testSecondaryConstructorFromJavaDelegate() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/removeUnused/secondaryConstructorFromJavaDelegate.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("usedObjectAsAliasMulti.before.Main.kt")
public void testUsedObjectAsAliasMulti() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/removeUnused/usedObjectAsAliasMulti.before.Main.kt");
doTestWithExtraFile(fileName);
}
}
@TestMetadata("idea/testData/quickfix/suppress")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Suppress extends AbstractQuickFixMultiFileTest {
public void testAllFilesPresentInSuppress() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/quickfix/suppress"), Pattern.compile("^(\\w+)\\.((before\\.Main\\.\\w+)|(test))$"), TargetBackend.ANY, true);
}
@TestMetadata("idea/testData/quickfix/suppress/forStatement")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class ForStatement extends AbstractQuickFixMultiFileTest {
public void testAllFilesPresentInForStatement() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/quickfix/suppress/forStatement"), Pattern.compile("^(\\w+)\\.((before\\.Main\\.\\w+)|(test))$"), TargetBackend.ANY, true);
}
}
}
@TestMetadata("idea/testData/quickfix/typeImports")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class TypeImports extends AbstractQuickFixMultiFileTest {
public void testAllFilesPresentInTypeImports() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/quickfix/typeImports"), Pattern.compile("^(\\w+)\\.((before\\.Main\\.\\w+)|(test))$"), TargetBackend.ANY, true);
}
@TestMetadata("importFromAnotherFile.before.Main.kt")
public void testImportFromAnotherFile() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/typeImports/importFromAnotherFile.before.Main.kt");
doTestWithExtraFile(fileName);
}
}
@TestMetadata("idea/testData/quickfix/typeMismatch")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class TypeMismatch extends AbstractQuickFixMultiFileTest {
@TestMetadata("addArrayOfTypeForJavaAnnotation.before.Main.kt")
public void testAddArrayOfTypeForJavaAnnotation() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/typeMismatch/addArrayOfTypeForJavaAnnotation.before.Main.kt");
doTestWithExtraFile(fileName);
}
public void testAllFilesPresentInTypeMismatch() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/quickfix/typeMismatch"), Pattern.compile("^(\\w+)\\.((before\\.Main\\.\\w+)|(test))$"), TargetBackend.ANY, true);
}
@TestMetadata("paramTypeInOverrides.before.Main.kt")
public void testParamTypeInOverrides() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/typeMismatch/paramTypeInOverrides.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("idea/testData/quickfix/typeMismatch/genericVarianceViolation")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class GenericVarianceViolation extends AbstractQuickFixMultiFileTest {
public void testAllFilesPresentInGenericVarianceViolation() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/quickfix/typeMismatch/genericVarianceViolation"), Pattern.compile("^(\\w+)\\.((before\\.Main\\.\\w+)|(test))$"), TargetBackend.ANY, true);
}
@TestMetadata("basicMultiple.before.Main.kt")
public void testBasicMultiple() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/typeMismatch/genericVarianceViolation/basicMultiple.before.Main.kt");
doTestWithExtraFile(fileName);
}
}
}
@TestMetadata("idea/testData/quickfix/variables")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Variables extends AbstractQuickFixMultiFileTest {
public void testAllFilesPresentInVariables() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/quickfix/variables"), Pattern.compile("^(\\w+)\\.((before\\.Main\\.\\w+)|(test))$"), TargetBackend.ANY, true);
}
@TestMetadata("idea/testData/quickfix/variables/changeMutability")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class ChangeMutability extends AbstractQuickFixMultiFileTest {
public void testAllFilesPresentInChangeMutability() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/quickfix/variables/changeMutability"), Pattern.compile("^(\\w+)\\.((before\\.Main\\.\\w+)|(test))$"), TargetBackend.ANY, true);
}
}
}
}