Regenerate tests

This commit is contained in:
Zalim Bashorov
2018-04-13 19:30:55 +03:00
parent a63b2e1bbd
commit ab03ab84bb
296 changed files with 76225 additions and 123189 deletions
@@ -21,181 +21,156 @@ import java.util.regex.Pattern;
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public class CompiledKotlinInJavaCompletionTestGenerated extends AbstractCompiledKotlinInJavaCompletionTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.ANY, testDataFilePath);
}
public void testAllFilesPresentInInjava() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/idea-completion/testData/injava"), Pattern.compile("^(.+)\\.java$"), TargetBackend.ANY, false);
}
@TestMetadata("AnnotationParameter.java")
public void testAnnotationParameter() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/injava/AnnotationParameter.java");
doTest(fileName);
runTest("idea/idea-completion/testData/injava/AnnotationParameter.java");
}
@TestMetadata("Class.java")
public void testClass() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/injava/Class.java");
doTest(fileName);
runTest("idea/idea-completion/testData/injava/Class.java");
}
@TestMetadata("ClassMembers.java")
public void testClassMembers() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/injava/ClassMembers.java");
doTest(fileName);
runTest("idea/idea-completion/testData/injava/ClassMembers.java");
}
@TestMetadata("ClassObject.java")
public void testClassObject() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/injava/ClassObject.java");
doTest(fileName);
runTest("idea/idea-completion/testData/injava/ClassObject.java");
}
@TestMetadata("ClassObjectField.java")
public void testClassObjectField() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/injava/ClassObjectField.java");
doTest(fileName);
runTest("idea/idea-completion/testData/injava/ClassObjectField.java");
}
@TestMetadata("ClassesFromNamespace.java")
public void testClassesFromNamespace() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/injava/ClassesFromNamespace.java");
doTest(fileName);
runTest("idea/idea-completion/testData/injava/ClassesFromNamespace.java");
}
@TestMetadata("EnumConstants.java")
public void testEnumConstants() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/injava/EnumConstants.java");
doTest(fileName);
runTest("idea/idea-completion/testData/injava/EnumConstants.java");
}
@TestMetadata("InterfaceDefaultImpl.java")
public void testInterfaceDefaultImpl() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/injava/InterfaceDefaultImpl.java");
doTest(fileName);
runTest("idea/idea-completion/testData/injava/InterfaceDefaultImpl.java");
}
@TestMetadata("InterfaceDefaultImplImportedMembers.java")
public void testInterfaceDefaultImplImportedMembers() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/injava/InterfaceDefaultImplImportedMembers.java");
doTest(fileName);
runTest("idea/idea-completion/testData/injava/InterfaceDefaultImplImportedMembers.java");
}
@TestMetadata("InterfaceDefaultImplMembers.java")
public void testInterfaceDefaultImplMembers() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/injava/InterfaceDefaultImplMembers.java");
doTest(fileName);
runTest("idea/idea-completion/testData/injava/InterfaceDefaultImplMembers.java");
}
@TestMetadata("InterfaceDefaultImplStaticImportedMembers.java")
public void testInterfaceDefaultImplStaticImportedMembers() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/injava/InterfaceDefaultImplStaticImportedMembers.java");
doTest(fileName);
runTest("idea/idea-completion/testData/injava/InterfaceDefaultImplStaticImportedMembers.java");
}
@TestMetadata("InterfaceDefaultImplsNonImported.java")
public void testInterfaceDefaultImplsNonImported() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/injava/InterfaceDefaultImplsNonImported.java");
doTest(fileName);
runTest("idea/idea-completion/testData/injava/InterfaceDefaultImplsNonImported.java");
}
@TestMetadata("MultiFileFacade.java")
public void testMultiFileFacade() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/injava/MultiFileFacade.java");
doTest(fileName);
runTest("idea/idea-completion/testData/injava/MultiFileFacade.java");
}
@TestMetadata("MultiFileFacadeMembers.java")
public void testMultiFileFacadeMembers() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/injava/MultiFileFacadeMembers.java");
doTest(fileName);
runTest("idea/idea-completion/testData/injava/MultiFileFacadeMembers.java");
}
@TestMetadata("MultiFileFacadeNoImport.java")
public void testMultiFileFacadeNoImport() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/injava/MultiFileFacadeNoImport.java");
doTest(fileName);
runTest("idea/idea-completion/testData/injava/MultiFileFacadeNoImport.java");
}
@TestMetadata("Nested.java")
public void testNested() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/injava/Nested.java");
doTest(fileName);
runTest("idea/idea-completion/testData/injava/Nested.java");
}
@TestMetadata("NestedClassMembers.java")
public void testNestedClassMembers() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/injava/NestedClassMembers.java");
doTest(fileName);
runTest("idea/idea-completion/testData/injava/NestedClassMembers.java");
}
@TestMetadata("NestedClassMembers2.java")
public void testNestedClassMembers2() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/injava/NestedClassMembers2.java");
doTest(fileName);
runTest("idea/idea-completion/testData/injava/NestedClassMembers2.java");
}
@TestMetadata("NestedNoImport.java")
public void testNestedNoImport() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/injava/NestedNoImport.java");
doTest(fileName);
runTest("idea/idea-completion/testData/injava/NestedNoImport.java");
}
@TestMetadata("NestedObjectInstance.java")
public void testNestedObjectInstance() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/injava/NestedObjectInstance.java");
doTest(fileName);
runTest("idea/idea-completion/testData/injava/NestedObjectInstance.java");
}
@TestMetadata("ObjectInClassObjects.java")
public void testObjectInClassObjects() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/injava/ObjectInClassObjects.java");
doTest(fileName);
runTest("idea/idea-completion/testData/injava/ObjectInClassObjects.java");
}
@TestMetadata("ObjectInstance.java")
public void testObjectInstance() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/injava/ObjectInstance.java");
doTest(fileName);
runTest("idea/idea-completion/testData/injava/ObjectInstance.java");
}
@TestMetadata("RenamedFacade.java")
public void testRenamedFacade() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/injava/RenamedFacade.java");
doTest(fileName);
runTest("idea/idea-completion/testData/injava/RenamedFacade.java");
}
@TestMetadata("SingleFileFacade.java")
public void testSingleFileFacade() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/injava/SingleFileFacade.java");
doTest(fileName);
runTest("idea/idea-completion/testData/injava/SingleFileFacade.java");
}
@TestMetadata("SingleFileFacadeMembers.java")
public void testSingleFileFacadeMembers() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/injava/SingleFileFacadeMembers.java");
doTest(fileName);
runTest("idea/idea-completion/testData/injava/SingleFileFacadeMembers.java");
}
@TestMetadata("SingleFileFacadeNoImport.java")
public void testSingleFileFacadeNoImport() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/injava/SingleFileFacadeNoImport.java");
doTest(fileName);
runTest("idea/idea-completion/testData/injava/SingleFileFacadeNoImport.java");
}
@TestMetadata("Subpackage.java")
public void testSubpackage() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/injava/Subpackage.java");
doTest(fileName);
runTest("idea/idea-completion/testData/injava/Subpackage.java");
}
@TestMetadata("TopLevelMembers.java")
public void testTopLevelMembers() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/injava/TopLevelMembers.java");
doTest(fileName);
runTest("idea/idea-completion/testData/injava/TopLevelMembers.java");
}
@TestMetadata("TraitMember.java")
public void testTraitMember() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/injava/TraitMember.java");
doTest(fileName);
runTest("idea/idea-completion/testData/injava/TraitMember.java");
}
}
@@ -21,67 +21,61 @@ import java.util.regex.Pattern;
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public class CompletionIncrementalResolveTestGenerated extends AbstractCompletionIncrementalResolveTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.ANY, testDataFilePath);
}
public void testAllFilesPresentInIncrementalResolve() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/idea-completion/testData/incrementalResolve"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
}
@TestMetadata("codeAboveChanged.kt")
public void testCodeAboveChanged() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/incrementalResolve/codeAboveChanged.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/incrementalResolve/codeAboveChanged.kt");
}
@TestMetadata("codeAboveChanged2.kt")
public void testCodeAboveChanged2() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/incrementalResolve/codeAboveChanged2.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/incrementalResolve/codeAboveChanged2.kt");
}
@TestMetadata("dataFlowInfoFromPrevStatement.kt")
public void testDataFlowInfoFromPrevStatement() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/incrementalResolve/dataFlowInfoFromPrevStatement.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/incrementalResolve/dataFlowInfoFromPrevStatement.kt");
}
@TestMetadata("dataFlowInfoFromSameStatement.kt")
public void testDataFlowInfoFromSameStatement() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/incrementalResolve/dataFlowInfoFromSameStatement.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/incrementalResolve/dataFlowInfoFromSameStatement.kt");
}
@TestMetadata("doNotAnalyzeComplexStatement.kt")
public void testDoNotAnalyzeComplexStatement() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/incrementalResolve/doNotAnalyzeComplexStatement.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/incrementalResolve/doNotAnalyzeComplexStatement.kt");
}
@TestMetadata("noDataFlowFromOldStatement.kt")
public void testNoDataFlowFromOldStatement() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/incrementalResolve/noDataFlowFromOldStatement.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/incrementalResolve/noDataFlowFromOldStatement.kt");
}
@TestMetadata("noPrevStatement.kt")
public void testNoPrevStatement() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/incrementalResolve/noPrevStatement.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/incrementalResolve/noPrevStatement.kt");
}
@TestMetadata("outOfBlockModification.kt")
public void testOutOfBlockModification() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/incrementalResolve/outOfBlockModification.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/incrementalResolve/outOfBlockModification.kt");
}
@TestMetadata("prevStatementNotResolved.kt")
public void testPrevStatementNotResolved() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/incrementalResolve/prevStatementNotResolved.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/incrementalResolve/prevStatementNotResolved.kt");
}
@TestMetadata("sameStatement.kt")
public void testSameStatement() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/incrementalResolve/sameStatement.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/incrementalResolve/sameStatement.kt");
}
}
@@ -21,19 +21,21 @@ import java.util.regex.Pattern;
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public class Java8BasicCompletionTestGenerated extends AbstractJava8BasicCompletionTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.ANY, testDataFilePath);
}
public void testAllFilesPresentInJava8() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/idea-completion/testData/basic/java8"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
}
@TestMetadata("CollectionMethods.kt")
public void testCollectionMethods() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/basic/java8/CollectionMethods.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/basic/java8/CollectionMethods.kt");
}
@TestMetadata("StreamMethods.kt")
public void testStreamMethods() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/basic/java8/StreamMethods.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/basic/java8/StreamMethods.kt");
}
}
@@ -21,55 +21,51 @@ import java.util.regex.Pattern;
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public class JvmWithLibBasicCompletionTestGenerated extends AbstractJvmWithLibBasicCompletionTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.ANY, testDataFilePath);
}
public void testAllFilesPresentInWithLib() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/idea-completion/testData/basic/withLib"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, false);
}
@TestMetadata("NamedArgumentsJava.kt")
public void testNamedArgumentsJava() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/basic/withLib/NamedArgumentsJava.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/basic/withLib/NamedArgumentsJava.kt");
}
@TestMetadata("NamedArgumentsKotlin.kt")
public void testNamedArgumentsKotlin() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/basic/withLib/NamedArgumentsKotlin.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/basic/withLib/NamedArgumentsKotlin.kt");
}
@TestMetadata("SamAdapter.kt")
public void testSamAdapter() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/basic/withLib/SamAdapter.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/basic/withLib/SamAdapter.kt");
}
@TestMetadata("SamAdapterAndGenerics.kt")
public void testSamAdapterAndGenerics() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/basic/withLib/SamAdapterAndGenerics.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/basic/withLib/SamAdapterAndGenerics.kt");
}
@TestMetadata("TopLevelNonImportedExtFun.kt")
public void testTopLevelNonImportedExtFun() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/basic/withLib/TopLevelNonImportedExtFun.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/basic/withLib/TopLevelNonImportedExtFun.kt");
}
@TestMetadata("TopLevelNonImportedExtProp.kt")
public void testTopLevelNonImportedExtProp() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/basic/withLib/TopLevelNonImportedExtProp.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/basic/withLib/TopLevelNonImportedExtProp.kt");
}
@TestMetadata("TopLevelNonImportedFun.kt")
public void testTopLevelNonImportedFun() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/basic/withLib/TopLevelNonImportedFun.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/basic/withLib/TopLevelNonImportedFun.kt");
}
@TestMetadata("TopLevelNonImportedProperty.kt")
public void testTopLevelNonImportedProperty() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/basic/withLib/TopLevelNonImportedProperty.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/basic/withLib/TopLevelNonImportedProperty.kt");
}
}
@@ -21,10 +21,13 @@ import java.util.regex.Pattern;
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public class KDocCompletionTestGenerated extends AbstractJvmBasicCompletionTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.ANY, testDataFilePath);
}
@TestMetadata("AfterPackageName.kt")
public void testAfterPackageName() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/kdoc/AfterPackageName.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/kdoc/AfterPackageName.kt");
}
public void testAllFilesPresentInKdoc() throws Exception {
@@ -33,121 +36,101 @@ public class KDocCompletionTestGenerated extends AbstractJvmBasicCompletionTest
@TestMetadata("ExtensionsFQLink.kt")
public void testExtensionsFQLink() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/kdoc/ExtensionsFQLink.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/kdoc/ExtensionsFQLink.kt");
}
@TestMetadata("ExtensionsForNestedClassFQLink.kt")
public void testExtensionsForNestedClassFQLink() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/kdoc/ExtensionsForNestedClassFQLink.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/kdoc/ExtensionsForNestedClassFQLink.kt");
}
@TestMetadata("FQLink.kt")
public void testFQLink() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/kdoc/FQLink.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/kdoc/FQLink.kt");
}
@TestMetadata("FQLinkInTag1.kt")
public void testFQLinkInTag1() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/kdoc/FQLinkInTag1.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/kdoc/FQLinkInTag1.kt");
}
@TestMetadata("FQLinkInTag2.kt")
public void testFQLinkInTag2() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/kdoc/FQLinkInTag2.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/kdoc/FQLinkInTag2.kt");
}
@TestMetadata("Link.kt")
public void testLink() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/kdoc/Link.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/kdoc/Link.kt");
}
@TestMetadata("MemberEnumEntryFQLink.kt")
public void testMemberEnumEntryFQLink() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/kdoc/MemberEnumEntryFQLink.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/kdoc/MemberEnumEntryFQLink.kt");
}
@TestMetadata("MemberEnumEntryLink.kt")
public void testMemberEnumEntryLink() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/kdoc/MemberEnumEntryLink.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/kdoc/MemberEnumEntryLink.kt");
}
@TestMetadata("MemberLink.kt")
public void testMemberLink() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/kdoc/MemberLink.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/kdoc/MemberLink.kt");
}
@TestMetadata("NoCompletionAfterFunName.kt")
public void testNoCompletionAfterFunName() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/kdoc/NoCompletionAfterFunName.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/kdoc/NoCompletionAfterFunName.kt");
}
@TestMetadata("NoTopLevelForQualified.kt")
public void testNoTopLevelForQualified() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/kdoc/NoTopLevelForQualified.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/kdoc/NoTopLevelForQualified.kt");
}
@TestMetadata("NotTagName.kt")
public void testNotTagName() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/kdoc/NotTagName.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/kdoc/NotTagName.kt");
}
@TestMetadata("ParamTag.kt")
public void testParamTag() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/kdoc/ParamTag.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/kdoc/ParamTag.kt");
}
@TestMetadata("SkipExistingParamTag.kt")
public void testSkipExistingParamTag() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/kdoc/SkipExistingParamTag.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/kdoc/SkipExistingParamTag.kt");
}
@TestMetadata("TagName.kt")
public void testTagName() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/kdoc/TagName.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/kdoc/TagName.kt");
}
@TestMetadata("TagNameAfterAt.kt")
public void testTagNameAfterAt() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/kdoc/TagNameAfterAt.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/kdoc/TagNameAfterAt.kt");
}
@TestMetadata("TagNameInClass.kt")
public void testTagNameInClass() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/kdoc/TagNameInClass.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/kdoc/TagNameInClass.kt");
}
@TestMetadata("TagNameInExtensionFunction.kt")
public void testTagNameInExtensionFunction() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/kdoc/TagNameInExtensionFunction.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/kdoc/TagNameInExtensionFunction.kt");
}
@TestMetadata("TagNameMiddle.kt")
public void testTagNameMiddle() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/kdoc/TagNameMiddle.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/kdoc/TagNameMiddle.kt");
}
@TestMetadata("TagNameStart.kt")
public void testTagNameStart() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/kdoc/TagNameStart.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/kdoc/TagNameStart.kt");
}
}
@@ -21,82 +21,73 @@ import java.util.regex.Pattern;
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public class KeywordCompletionTestGenerated extends AbstractKeywordCompletionTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.ANY, testDataFilePath);
}
@TestMetadata("AfterClassProperty.kt")
public void testAfterClassProperty() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/keywords/AfterClassProperty.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/keywords/AfterClassProperty.kt");
}
@TestMetadata("AfterClasses.kt")
public void testAfterClasses() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/keywords/AfterClasses.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/keywords/AfterClasses.kt");
}
@TestMetadata("AfterClasses_LangLevel10.kt")
public void testAfterClasses_LangLevel10() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/keywords/AfterClasses_LangLevel10.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/keywords/AfterClasses_LangLevel10.kt");
}
@TestMetadata("AfterClasses_LangLevel11.kt")
public void testAfterClasses_LangLevel11() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/keywords/AfterClasses_LangLevel11.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/keywords/AfterClasses_LangLevel11.kt");
}
@TestMetadata("AfterDot.kt")
public void testAfterDot() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/keywords/AfterDot.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/keywords/AfterDot.kt");
}
@TestMetadata("AfterFuns.kt")
public void testAfterFuns() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/keywords/AfterFuns.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/keywords/AfterFuns.kt");
}
@TestMetadata("AfterIf.kt")
public void testAfterIf() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/keywords/AfterIf.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/keywords/AfterIf.kt");
}
@TestMetadata("AfterSafeDot.kt")
public void testAfterSafeDot() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/keywords/AfterSafeDot.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/keywords/AfterSafeDot.kt");
}
@TestMetadata("AfterSpaceAndDot.kt")
public void testAfterSpaceAndDot() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/keywords/AfterSpaceAndDot.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/keywords/AfterSpaceAndDot.kt");
}
@TestMetadata("AfterTry.kt")
public void testAfterTry() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/keywords/AfterTry.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/keywords/AfterTry.kt");
}
@TestMetadata("AfterTryCatch.kt")
public void testAfterTryCatch() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/keywords/AfterTryCatch.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/keywords/AfterTryCatch.kt");
}
@TestMetadata("AfterTryFinally.kt")
public void testAfterTryFinally() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/keywords/AfterTryFinally.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/keywords/AfterTryFinally.kt");
}
@TestMetadata("AfterTryInAssignment.kt")
public void testAfterTryInAssignment() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/keywords/AfterTryInAssignment.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/keywords/AfterTryInAssignment.kt");
}
public void testAllFilesPresentInKeywords() throws Exception {
@@ -105,517 +96,431 @@ public class KeywordCompletionTestGenerated extends AbstractKeywordCompletionTes
@TestMetadata("BeforeClass.kt")
public void testBeforeClass() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/keywords/BeforeClass.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/keywords/BeforeClass.kt");
}
@TestMetadata("BeforeDelegationCall.kt")
public void testBeforeDelegationCall() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/keywords/BeforeDelegationCall.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/keywords/BeforeDelegationCall.kt");
}
@TestMetadata("BreakContinue.kt")
public void testBreakContinue() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/keywords/BreakContinue.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/keywords/BreakContinue.kt");
}
@TestMetadata("BreakWithLabel.kt")
public void testBreakWithLabel() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/keywords/BreakWithLabel.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/keywords/BreakWithLabel.kt");
}
@TestMetadata("CommaExpected.kt")
public void testCommaExpected() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/keywords/CommaExpected.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/keywords/CommaExpected.kt");
}
@TestMetadata("CompanionObjectBeforeObject.kt")
public void testCompanionObjectBeforeObject() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/keywords/CompanionObjectBeforeObject.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/keywords/CompanionObjectBeforeObject.kt");
}
@TestMetadata("ContinueWithLabel.kt")
public void testContinueWithLabel() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/keywords/ContinueWithLabel.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/keywords/ContinueWithLabel.kt");
}
@TestMetadata("Else1.kt")
public void testElse1() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/keywords/Else1.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/keywords/Else1.kt");
}
@TestMetadata("Else2.kt")
public void testElse2() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/keywords/Else2.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/keywords/Else2.kt");
}
@TestMetadata("FileKeyword.kt")
public void testFileKeyword() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/keywords/FileKeyword.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/keywords/FileKeyword.kt");
}
@TestMetadata("GlobalPropertyAccessors.kt")
public void testGlobalPropertyAccessors() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/keywords/GlobalPropertyAccessors.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/keywords/GlobalPropertyAccessors.kt");
}
@TestMetadata("IfTry.kt")
public void testIfTry() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/keywords/IfTry.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/keywords/IfTry.kt");
}
@TestMetadata("IfTryCatch.kt")
public void testIfTryCatch() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/keywords/IfTryCatch.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/keywords/IfTryCatch.kt");
}
@TestMetadata("InAnnotationClassScope.kt")
public void testInAnnotationClassScope() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/keywords/InAnnotationClassScope.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/keywords/InAnnotationClassScope.kt");
}
@TestMetadata("InArgumentList.kt")
public void testInArgumentList() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/keywords/InArgumentList.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/keywords/InArgumentList.kt");
}
@TestMetadata("InBlockComment.kt")
public void testInBlockComment() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/keywords/InBlockComment.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/keywords/InBlockComment.kt");
}
@TestMetadata("InChar.kt")
public void testInChar() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/keywords/InChar.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/keywords/InChar.kt");
}
@TestMetadata("InClassBeforeFun.kt")
public void testInClassBeforeFun() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/keywords/InClassBeforeFun.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/keywords/InClassBeforeFun.kt");
}
@TestMetadata("InClassNoCompletionInValName.kt")
public void testInClassNoCompletionInValName() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/keywords/InClassNoCompletionInValName.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/keywords/InClassNoCompletionInValName.kt");
}
@TestMetadata("InClassProperty.kt")
public void testInClassProperty() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/keywords/InClassProperty.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/keywords/InClassProperty.kt");
}
@TestMetadata("InClassScope.kt")
public void testInClassScope() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/keywords/InClassScope.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/keywords/InClassScope.kt");
}
@TestMetadata("InClassTypeParameters.kt")
public void testInClassTypeParameters() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/keywords/InClassTypeParameters.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/keywords/InClassTypeParameters.kt");
}
@TestMetadata("InCodeBlock.kt")
public void testInCodeBlock() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/keywords/InCodeBlock.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/keywords/InCodeBlock.kt");
}
@TestMetadata("InElse.kt")
public void testInElse() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/keywords/InElse.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/keywords/InElse.kt");
}
@TestMetadata("InEnumScope1.kt")
public void testInEnumScope1() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/keywords/InEnumScope1.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/keywords/InEnumScope1.kt");
}
@TestMetadata("InEnumScope2.kt")
public void testInEnumScope2() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/keywords/InEnumScope2.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/keywords/InEnumScope2.kt");
}
@TestMetadata("InFunctionExpressionBody.kt")
public void testInFunctionExpressionBody() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/keywords/InFunctionExpressionBody.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/keywords/InFunctionExpressionBody.kt");
}
@TestMetadata("InFunctionName.kt")
public void testInFunctionName() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/keywords/InFunctionName.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/keywords/InFunctionName.kt");
}
@TestMetadata("InFunctionRecieverType.kt")
public void testInFunctionRecieverType() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/keywords/InFunctionRecieverType.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/keywords/InFunctionRecieverType.kt");
}
@TestMetadata("InFunctionTypePosition.kt")
public void testInFunctionTypePosition() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/keywords/InFunctionTypePosition.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/keywords/InFunctionTypePosition.kt");
}
@TestMetadata("InGetterExpressionBody.kt")
public void testInGetterExpressionBody() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/keywords/InGetterExpressionBody.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/keywords/InGetterExpressionBody.kt");
}
@TestMetadata("InIf.kt")
public void testInIf() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/keywords/InIf.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/keywords/InIf.kt");
}
@TestMetadata("InInterfaceScope.kt")
public void testInInterfaceScope() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/keywords/InInterfaceScope.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/keywords/InInterfaceScope.kt");
}
@TestMetadata("InMemberFunParametersList.kt")
public void testInMemberFunParametersList() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/keywords/InMemberFunParametersList.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/keywords/InMemberFunParametersList.kt");
}
@TestMetadata("InModifierListInsideClass.kt")
public void testInModifierListInsideClass() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/keywords/InModifierListInsideClass.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/keywords/InModifierListInsideClass.kt");
}
@TestMetadata("InNotFinishedGenericWithFunAfter.kt")
public void testInNotFinishedGenericWithFunAfter() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/keywords/InNotFinishedGenericWithFunAfter.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/keywords/InNotFinishedGenericWithFunAfter.kt");
}
@TestMetadata("InObjectScope.kt")
public void testInObjectScope() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/keywords/InObjectScope.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/keywords/InObjectScope.kt");
}
@TestMetadata("InParameterDefaultValue.kt")
public void testInParameterDefaultValue() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/keywords/InParameterDefaultValue.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/keywords/InParameterDefaultValue.kt");
}
@TestMetadata("InPrimaryConstructorParametersList.kt")
public void testInPrimaryConstructorParametersList() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/keywords/InPrimaryConstructorParametersList.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/keywords/InPrimaryConstructorParametersList.kt");
}
@TestMetadata("InPropertyInitializer.kt")
public void testInPropertyInitializer() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/keywords/InPropertyInitializer.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/keywords/InPropertyInitializer.kt");
}
@TestMetadata("InPropertyTypeReference.kt")
public void testInPropertyTypeReference() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/keywords/InPropertyTypeReference.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/keywords/InPropertyTypeReference.kt");
}
@TestMetadata("InString.kt")
public void testInString() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/keywords/InString.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/keywords/InString.kt");
}
@TestMetadata("InTopFunParametersList.kt")
public void testInTopFunParametersList() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/keywords/InTopFunParametersList.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/keywords/InTopFunParametersList.kt");
}
@TestMetadata("InTopScopeAfterPackage.kt")
public void testInTopScopeAfterPackage() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/keywords/InTopScopeAfterPackage.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/keywords/InTopScopeAfterPackage.kt");
}
@TestMetadata("InTypePosition.kt")
public void testInTypePosition() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/keywords/InTypePosition.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/keywords/InTypePosition.kt");
}
@TestMetadata("LabeledLambdaThis.kt")
public void testLabeledLambdaThis() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/keywords/LabeledLambdaThis.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/keywords/LabeledLambdaThis.kt");
}
@TestMetadata("LineComment.kt")
public void testLineComment() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/keywords/LineComment.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/keywords/LineComment.kt");
}
@TestMetadata("NoBreak1.kt")
public void testNoBreak1() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/keywords/NoBreak1.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/keywords/NoBreak1.kt");
}
@TestMetadata("NoBreak2.kt")
public void testNoBreak2() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/keywords/NoBreak2.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/keywords/NoBreak2.kt");
}
@TestMetadata("NoCompanionThis.kt")
public void testNoCompanionThis() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/keywords/NoCompanionThis.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/keywords/NoCompanionThis.kt");
}
@TestMetadata("NoCompletionForCapitalPrefix.kt")
public void testNoCompletionForCapitalPrefix() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/keywords/NoCompletionForCapitalPrefix.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/keywords/NoCompletionForCapitalPrefix.kt");
}
@TestMetadata("NoContinue.kt")
public void testNoContinue() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/keywords/NoContinue.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/keywords/NoContinue.kt");
}
@TestMetadata("NoFinalInParameterList.kt")
public void testNoFinalInParameterList() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/keywords/NoFinalInParameterList.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/keywords/NoFinalInParameterList.kt");
}
@TestMetadata("NotInNotIs.kt")
public void testNotInNotIs() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/keywords/NotInNotIs.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/keywords/NotInNotIs.kt");
}
@TestMetadata("NotInNotIs2.kt")
public void testNotInNotIs2() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/keywords/NotInNotIs2.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/keywords/NotInNotIs2.kt");
}
@TestMetadata("PrefixMatcher.kt")
public void testPrefixMatcher() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/keywords/PrefixMatcher.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/keywords/PrefixMatcher.kt");
}
@TestMetadata("PropertyAccessors.kt")
public void testPropertyAccessors() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/keywords/PropertyAccessors.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/keywords/PropertyAccessors.kt");
}
@TestMetadata("PropertyAccessors2.kt")
public void testPropertyAccessors2() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/keywords/PropertyAccessors2.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/keywords/PropertyAccessors2.kt");
}
@TestMetadata("PropertySetter.kt")
public void testPropertySetter() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/keywords/PropertySetter.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/keywords/PropertySetter.kt");
}
@TestMetadata("QualifiedThis.kt")
public void testQualifiedThis() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/keywords/QualifiedThis.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/keywords/QualifiedThis.kt");
}
@TestMetadata("QualifiedThisInAccessor.kt")
public void testQualifiedThisInAccessor() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/keywords/QualifiedThisInAccessor.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/keywords/QualifiedThisInAccessor.kt");
}
@TestMetadata("Receiver.kt")
public void testReceiver() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/keywords/Receiver.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/keywords/Receiver.kt");
}
@TestMetadata("Return1.kt")
public void testReturn1() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/keywords/Return1.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/keywords/Return1.kt");
}
@TestMetadata("Return2.kt")
public void testReturn2() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/keywords/Return2.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/keywords/Return2.kt");
}
@TestMetadata("Return3.kt")
public void testReturn3() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/keywords/Return3.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/keywords/Return3.kt");
}
@TestMetadata("Return4.kt")
public void testReturn4() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/keywords/Return4.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/keywords/Return4.kt");
}
@TestMetadata("Return5.kt")
public void testReturn5() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/keywords/Return5.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/keywords/Return5.kt");
}
@TestMetadata("Return6.kt")
public void testReturn6() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/keywords/Return6.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/keywords/Return6.kt");
}
@TestMetadata("Return7.kt")
public void testReturn7() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/keywords/Return7.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/keywords/Return7.kt");
}
@TestMetadata("Return8.kt")
public void testReturn8() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/keywords/Return8.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/keywords/Return8.kt");
}
@TestMetadata("Return9.kt")
public void testReturn9() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/keywords/Return9.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/keywords/Return9.kt");
}
@TestMetadata("ReturnBoolean.kt")
public void testReturnBoolean() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/keywords/ReturnBoolean.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/keywords/ReturnBoolean.kt");
}
@TestMetadata("ReturnCollection.kt")
public void testReturnCollection() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/keywords/ReturnCollection.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/keywords/ReturnCollection.kt");
}
@TestMetadata("ReturnIterable.kt")
public void testReturnIterable() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/keywords/ReturnIterable.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/keywords/ReturnIterable.kt");
}
@TestMetadata("ReturnKeywordName.kt")
public void testReturnKeywordName() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/keywords/ReturnKeywordName.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/keywords/ReturnKeywordName.kt");
}
@TestMetadata("ReturnList.kt")
public void testReturnList() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/keywords/ReturnList.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/keywords/ReturnList.kt");
}
@TestMetadata("ReturnNotNull.kt")
public void testReturnNotNull() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/keywords/ReturnNotNull.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/keywords/ReturnNotNull.kt");
}
@TestMetadata("ReturnNull.kt")
public void testReturnNull() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/keywords/ReturnNull.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/keywords/ReturnNull.kt");
}
@TestMetadata("ReturnNullableBoolean.kt")
public void testReturnNullableBoolean() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/keywords/ReturnNullableBoolean.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/keywords/ReturnNullableBoolean.kt");
}
@TestMetadata("ReturnSet.kt")
public void testReturnSet() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/keywords/ReturnSet.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/keywords/ReturnSet.kt");
}
@TestMetadata("SuspendInsideTypeArguments.kt")
public void testSuspendInsideTypeArguments() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/keywords/SuspendInsideTypeArguments.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/keywords/SuspendInsideTypeArguments.kt");
}
@TestMetadata("SuspendInsideTypeArguments1.kt")
public void testSuspendInsideTypeArguments1() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/keywords/SuspendInsideTypeArguments1.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/keywords/SuspendInsideTypeArguments1.kt");
}
@TestMetadata("This.kt")
public void testThis() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/keywords/This.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/keywords/This.kt");
}
@TestMetadata("ThisPrefixMatching.kt")
public void testThisPrefixMatching() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/keywords/ThisPrefixMatching.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/keywords/ThisPrefixMatching.kt");
}
@TestMetadata("TopScope.kt")
public void testTopScope() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/keywords/TopScope.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/keywords/TopScope.kt");
}
@TestMetadata("UseSiteTargetForPrimaryConstructorParameter.kt")
public void testUseSiteTargetForPrimaryConstructorParameter() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/keywords/UseSiteTargetForPrimaryConstructorParameter.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/keywords/UseSiteTargetForPrimaryConstructorParameter.kt");
}
}
@@ -21,181 +21,156 @@ import java.util.regex.Pattern;
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public class KotlinSourceInJavaCompletionTestGenerated extends AbstractKotlinSourceInJavaCompletionTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.ANY, testDataFilePath);
}
public void testAllFilesPresentInInjava() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/idea-completion/testData/injava"), Pattern.compile("^(.+)\\.java$"), TargetBackend.ANY, false);
}
@TestMetadata("AnnotationParameter.java")
public void testAnnotationParameter() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/injava/AnnotationParameter.java");
doTest(fileName);
runTest("idea/idea-completion/testData/injava/AnnotationParameter.java");
}
@TestMetadata("Class.java")
public void testClass() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/injava/Class.java");
doTest(fileName);
runTest("idea/idea-completion/testData/injava/Class.java");
}
@TestMetadata("ClassMembers.java")
public void testClassMembers() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/injava/ClassMembers.java");
doTest(fileName);
runTest("idea/idea-completion/testData/injava/ClassMembers.java");
}
@TestMetadata("ClassObject.java")
public void testClassObject() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/injava/ClassObject.java");
doTest(fileName);
runTest("idea/idea-completion/testData/injava/ClassObject.java");
}
@TestMetadata("ClassObjectField.java")
public void testClassObjectField() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/injava/ClassObjectField.java");
doTest(fileName);
runTest("idea/idea-completion/testData/injava/ClassObjectField.java");
}
@TestMetadata("ClassesFromNamespace.java")
public void testClassesFromNamespace() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/injava/ClassesFromNamespace.java");
doTest(fileName);
runTest("idea/idea-completion/testData/injava/ClassesFromNamespace.java");
}
@TestMetadata("EnumConstants.java")
public void testEnumConstants() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/injava/EnumConstants.java");
doTest(fileName);
runTest("idea/idea-completion/testData/injava/EnumConstants.java");
}
@TestMetadata("InterfaceDefaultImpl.java")
public void testInterfaceDefaultImpl() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/injava/InterfaceDefaultImpl.java");
doTest(fileName);
runTest("idea/idea-completion/testData/injava/InterfaceDefaultImpl.java");
}
@TestMetadata("InterfaceDefaultImplImportedMembers.java")
public void testInterfaceDefaultImplImportedMembers() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/injava/InterfaceDefaultImplImportedMembers.java");
doTest(fileName);
runTest("idea/idea-completion/testData/injava/InterfaceDefaultImplImportedMembers.java");
}
@TestMetadata("InterfaceDefaultImplMembers.java")
public void testInterfaceDefaultImplMembers() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/injava/InterfaceDefaultImplMembers.java");
doTest(fileName);
runTest("idea/idea-completion/testData/injava/InterfaceDefaultImplMembers.java");
}
@TestMetadata("InterfaceDefaultImplStaticImportedMembers.java")
public void testInterfaceDefaultImplStaticImportedMembers() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/injava/InterfaceDefaultImplStaticImportedMembers.java");
doTest(fileName);
runTest("idea/idea-completion/testData/injava/InterfaceDefaultImplStaticImportedMembers.java");
}
@TestMetadata("InterfaceDefaultImplsNonImported.java")
public void testInterfaceDefaultImplsNonImported() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/injava/InterfaceDefaultImplsNonImported.java");
doTest(fileName);
runTest("idea/idea-completion/testData/injava/InterfaceDefaultImplsNonImported.java");
}
@TestMetadata("MultiFileFacade.java")
public void testMultiFileFacade() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/injava/MultiFileFacade.java");
doTest(fileName);
runTest("idea/idea-completion/testData/injava/MultiFileFacade.java");
}
@TestMetadata("MultiFileFacadeMembers.java")
public void testMultiFileFacadeMembers() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/injava/MultiFileFacadeMembers.java");
doTest(fileName);
runTest("idea/idea-completion/testData/injava/MultiFileFacadeMembers.java");
}
@TestMetadata("MultiFileFacadeNoImport.java")
public void testMultiFileFacadeNoImport() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/injava/MultiFileFacadeNoImport.java");
doTest(fileName);
runTest("idea/idea-completion/testData/injava/MultiFileFacadeNoImport.java");
}
@TestMetadata("Nested.java")
public void testNested() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/injava/Nested.java");
doTest(fileName);
runTest("idea/idea-completion/testData/injava/Nested.java");
}
@TestMetadata("NestedClassMembers.java")
public void testNestedClassMembers() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/injava/NestedClassMembers.java");
doTest(fileName);
runTest("idea/idea-completion/testData/injava/NestedClassMembers.java");
}
@TestMetadata("NestedClassMembers2.java")
public void testNestedClassMembers2() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/injava/NestedClassMembers2.java");
doTest(fileName);
runTest("idea/idea-completion/testData/injava/NestedClassMembers2.java");
}
@TestMetadata("NestedNoImport.java")
public void testNestedNoImport() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/injava/NestedNoImport.java");
doTest(fileName);
runTest("idea/idea-completion/testData/injava/NestedNoImport.java");
}
@TestMetadata("NestedObjectInstance.java")
public void testNestedObjectInstance() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/injava/NestedObjectInstance.java");
doTest(fileName);
runTest("idea/idea-completion/testData/injava/NestedObjectInstance.java");
}
@TestMetadata("ObjectInClassObjects.java")
public void testObjectInClassObjects() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/injava/ObjectInClassObjects.java");
doTest(fileName);
runTest("idea/idea-completion/testData/injava/ObjectInClassObjects.java");
}
@TestMetadata("ObjectInstance.java")
public void testObjectInstance() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/injava/ObjectInstance.java");
doTest(fileName);
runTest("idea/idea-completion/testData/injava/ObjectInstance.java");
}
@TestMetadata("RenamedFacade.java")
public void testRenamedFacade() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/injava/RenamedFacade.java");
doTest(fileName);
runTest("idea/idea-completion/testData/injava/RenamedFacade.java");
}
@TestMetadata("SingleFileFacade.java")
public void testSingleFileFacade() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/injava/SingleFileFacade.java");
doTest(fileName);
runTest("idea/idea-completion/testData/injava/SingleFileFacade.java");
}
@TestMetadata("SingleFileFacadeMembers.java")
public void testSingleFileFacadeMembers() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/injava/SingleFileFacadeMembers.java");
doTest(fileName);
runTest("idea/idea-completion/testData/injava/SingleFileFacadeMembers.java");
}
@TestMetadata("SingleFileFacadeNoImport.java")
public void testSingleFileFacadeNoImport() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/injava/SingleFileFacadeNoImport.java");
doTest(fileName);
runTest("idea/idea-completion/testData/injava/SingleFileFacadeNoImport.java");
}
@TestMetadata("Subpackage.java")
public void testSubpackage() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/injava/Subpackage.java");
doTest(fileName);
runTest("idea/idea-completion/testData/injava/Subpackage.java");
}
@TestMetadata("TopLevelMembers.java")
public void testTopLevelMembers() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/injava/TopLevelMembers.java");
doTest(fileName);
runTest("idea/idea-completion/testData/injava/TopLevelMembers.java");
}
@TestMetadata("TraitMember.java")
public void testTraitMember() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/injava/TraitMember.java");
doTest(fileName);
runTest("idea/idea-completion/testData/injava/TraitMember.java");
}
}
@@ -21,13 +21,16 @@ import java.util.regex.Pattern;
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public class KotlinStdLibInJavaCompletionTestGenerated extends AbstractKotlinStdLibInJavaCompletionTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.ANY, testDataFilePath);
}
public void testAllFilesPresentInStdlib() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/idea-completion/testData/injava/stdlib"), Pattern.compile("^(.+)\\.java$"), TargetBackend.ANY, false);
}
@TestMetadata("List.java")
public void testList() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/injava/stdlib/List.java");
doTest(fileName);
runTest("idea/idea-completion/testData/injava/stdlib/List.java");
}
}
@@ -21,427 +21,361 @@ import java.util.regex.Pattern;
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public class MultiFileJvmBasicCompletionTestGenerated extends AbstractMultiFileJvmBasicCompletionTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.ANY, testDataFilePath);
}
public void testAllFilesPresentInMultifile() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/idea-completion/testData/basic/multifile"), Pattern.compile("^([^\\.]+)$"), TargetBackend.ANY, false);
}
@TestMetadata("CallableReferenceNotImported")
public void testCallableReferenceNotImported() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/basic/multifile/CallableReferenceNotImported/");
doTest(fileName);
runTest("idea/idea-completion/testData/basic/multifile/CallableReferenceNotImported/");
}
@TestMetadata("CallableReferenceNotImportedExtension")
public void testCallableReferenceNotImportedExtension() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/basic/multifile/CallableReferenceNotImportedExtension/");
doTest(fileName);
runTest("idea/idea-completion/testData/basic/multifile/CallableReferenceNotImportedExtension/");
}
@TestMetadata("CallableReferenceNotImportedExtension2")
public void testCallableReferenceNotImportedExtension2() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/basic/multifile/CallableReferenceNotImportedExtension2/");
doTest(fileName);
runTest("idea/idea-completion/testData/basic/multifile/CallableReferenceNotImportedExtension2/");
}
@TestMetadata("CallablesInExcludedPackage")
public void testCallablesInExcludedPackage() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/basic/multifile/CallablesInExcludedPackage/");
doTest(fileName);
runTest("idea/idea-completion/testData/basic/multifile/CallablesInExcludedPackage/");
}
@TestMetadata("ClassInExcludedPackage")
public void testClassInExcludedPackage() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/basic/multifile/ClassInExcludedPackage/");
doTest(fileName);
runTest("idea/idea-completion/testData/basic/multifile/ClassInExcludedPackage/");
}
@TestMetadata("CompleteFunctionWithNoSpecifiedType")
public void testCompleteFunctionWithNoSpecifiedType() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/basic/multifile/CompleteFunctionWithNoSpecifiedType/");
doTest(fileName);
runTest("idea/idea-completion/testData/basic/multifile/CompleteFunctionWithNoSpecifiedType/");
}
@TestMetadata("CompleteImportedFunction")
public void testCompleteImportedFunction() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/basic/multifile/CompleteImportedFunction/");
doTest(fileName);
runTest("idea/idea-completion/testData/basic/multifile/CompleteImportedFunction/");
}
@TestMetadata("CompletionOnImportedFunction")
public void testCompletionOnImportedFunction() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/basic/multifile/CompletionOnImportedFunction/");
doTest(fileName);
runTest("idea/idea-completion/testData/basic/multifile/CompletionOnImportedFunction/");
}
@TestMetadata("DoNotCompleteWithConstraints")
public void testDoNotCompleteWithConstraints() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/basic/multifile/DoNotCompleteWithConstraints/");
doTest(fileName);
runTest("idea/idea-completion/testData/basic/multifile/DoNotCompleteWithConstraints/");
}
@TestMetadata("EntriesOfNotImportedEnumFromKotlin")
public void testEntriesOfNotImportedEnumFromKotlin() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/basic/multifile/EntriesOfNotImportedEnumFromKotlin/");
doTest(fileName);
runTest("idea/idea-completion/testData/basic/multifile/EntriesOfNotImportedEnumFromKotlin/");
}
@TestMetadata("EnumEntry")
public void testEnumEntry() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/basic/multifile/EnumEntry/");
doTest(fileName);
runTest("idea/idea-completion/testData/basic/multifile/EnumEntry/");
}
@TestMetadata("ExactMatchPreferImported")
public void testExactMatchPreferImported() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/basic/multifile/ExactMatchPreferImported/");
doTest(fileName);
runTest("idea/idea-completion/testData/basic/multifile/ExactMatchPreferImported/");
}
@TestMetadata("ExcludedClass")
public void testExcludedClass() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/basic/multifile/ExcludedClass/");
doTest(fileName);
runTest("idea/idea-completion/testData/basic/multifile/ExcludedClass/");
}
@TestMetadata("ExcludedJavaClass")
public void testExcludedJavaClass() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/basic/multifile/ExcludedJavaClass/");
doTest(fileName);
runTest("idea/idea-completion/testData/basic/multifile/ExcludedJavaClass/");
}
@TestMetadata("ExtensionFunction")
public void testExtensionFunction() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/basic/multifile/ExtensionFunction/");
doTest(fileName);
runTest("idea/idea-completion/testData/basic/multifile/ExtensionFunction/");
}
@TestMetadata("ExtensionFunctionOnImportedFunction")
public void testExtensionFunctionOnImportedFunction() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/basic/multifile/ExtensionFunctionOnImportedFunction/");
doTest(fileName);
runTest("idea/idea-completion/testData/basic/multifile/ExtensionFunctionOnImportedFunction/");
}
@TestMetadata("ExtensionOnNullable")
public void testExtensionOnNullable() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/basic/multifile/ExtensionOnNullable/");
doTest(fileName);
runTest("idea/idea-completion/testData/basic/multifile/ExtensionOnNullable/");
}
@TestMetadata("ExtensionsAndGetPrefix")
public void testExtensionsAndGetPrefix() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/basic/multifile/ExtensionsAndGetPrefix/");
doTest(fileName);
runTest("idea/idea-completion/testData/basic/multifile/ExtensionsAndGetPrefix/");
}
@TestMetadata("ExtensionsForSmartCast")
public void testExtensionsForSmartCast() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/basic/multifile/ExtensionsForSmartCast/");
doTest(fileName);
runTest("idea/idea-completion/testData/basic/multifile/ExtensionsForSmartCast/");
}
@TestMetadata("FileRefInStringLiteral")
public void testFileRefInStringLiteral() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/basic/multifile/FileRefInStringLiteral/");
doTest(fileName);
runTest("idea/idea-completion/testData/basic/multifile/FileRefInStringLiteral/");
}
@TestMetadata("FileRefInStringLiteralNoPrefix")
public void testFileRefInStringLiteralNoPrefix() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/basic/multifile/FileRefInStringLiteralNoPrefix/");
doTest(fileName);
runTest("idea/idea-completion/testData/basic/multifile/FileRefInStringLiteralNoPrefix/");
}
@TestMetadata("GroovyClassNameCompletionFromDefaultPackage")
public void testGroovyClassNameCompletionFromDefaultPackage() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/basic/multifile/GroovyClassNameCompletionFromDefaultPackage/");
doTest(fileName);
runTest("idea/idea-completion/testData/basic/multifile/GroovyClassNameCompletionFromDefaultPackage/");
}
@TestMetadata("GroovyClassNameCompletionFromNonDefaultPackage")
public void testGroovyClassNameCompletionFromNonDefaultPackage() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/basic/multifile/GroovyClassNameCompletionFromNonDefaultPackage/");
doTest(fileName);
runTest("idea/idea-completion/testData/basic/multifile/GroovyClassNameCompletionFromNonDefaultPackage/");
}
@TestMetadata("HiddenDeclarations")
public void testHiddenDeclarations() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/basic/multifile/HiddenDeclarations/");
doTest(fileName);
runTest("idea/idea-completion/testData/basic/multifile/HiddenDeclarations/");
}
@TestMetadata("InImport")
public void testInImport() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/basic/multifile/InImport/");
doTest(fileName);
runTest("idea/idea-completion/testData/basic/multifile/InImport/");
}
@TestMetadata("InImportedFunctionLiteralParameter")
public void testInImportedFunctionLiteralParameter() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/basic/multifile/InImportedFunctionLiteralParameter/");
doTest(fileName);
runTest("idea/idea-completion/testData/basic/multifile/InImportedFunctionLiteralParameter/");
}
@TestMetadata("IncorrectGetters")
public void testIncorrectGetters() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/basic/multifile/IncorrectGetters/");
doTest(fileName);
runTest("idea/idea-completion/testData/basic/multifile/IncorrectGetters/");
}
@TestMetadata("JavaCallableReference")
public void testJavaCallableReference() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/basic/multifile/JavaCallableReference/");
doTest(fileName);
runTest("idea/idea-completion/testData/basic/multifile/JavaCallableReference/");
}
@TestMetadata("JavaInnerClasses")
public void testJavaInnerClasses() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/basic/multifile/JavaInnerClasses/");
doTest(fileName);
runTest("idea/idea-completion/testData/basic/multifile/JavaInnerClasses/");
}
@TestMetadata("KT12124")
public void testKT12124() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/basic/multifile/KT12124/");
doTest(fileName);
runTest("idea/idea-completion/testData/basic/multifile/KT12124/");
}
@TestMetadata("KT9835")
public void testKT9835() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/basic/multifile/KT9835/");
doTest(fileName);
runTest("idea/idea-completion/testData/basic/multifile/KT9835/");
}
@TestMetadata("MoreSpecificExtensionGeneric")
public void testMoreSpecificExtensionGeneric() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/basic/multifile/MoreSpecificExtensionGeneric/");
doTest(fileName);
runTest("idea/idea-completion/testData/basic/multifile/MoreSpecificExtensionGeneric/");
}
@TestMetadata("MoreSpecificExtensionInDifferentPackage")
public void testMoreSpecificExtensionInDifferentPackage() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/basic/multifile/MoreSpecificExtensionInDifferentPackage/");
doTest(fileName);
runTest("idea/idea-completion/testData/basic/multifile/MoreSpecificExtensionInDifferentPackage/");
}
@TestMetadata("MoreSpecificExtensionIsPrivate")
public void testMoreSpecificExtensionIsPrivate() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/basic/multifile/MoreSpecificExtensionIsPrivate/");
doTest(fileName);
runTest("idea/idea-completion/testData/basic/multifile/MoreSpecificExtensionIsPrivate/");
}
@TestMetadata("NoAutoInsertionOfNotImported")
public void testNoAutoInsertionOfNotImported() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/basic/multifile/NoAutoInsertionOfNotImported/");
doTest(fileName);
runTest("idea/idea-completion/testData/basic/multifile/NoAutoInsertionOfNotImported/");
}
@TestMetadata("NoExtForOuterFromNested")
public void testNoExtForOuterFromNested() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/basic/multifile/NoExtForOuterFromNested/");
doTest(fileName);
runTest("idea/idea-completion/testData/basic/multifile/NoExtForOuterFromNested/");
}
@TestMetadata("NoExtensionMethodDuplication")
public void testNoExtensionMethodDuplication() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/basic/multifile/NoExtensionMethodDuplication/");
doTest(fileName);
runTest("idea/idea-completion/testData/basic/multifile/NoExtensionMethodDuplication/");
}
@TestMetadata("NoGenericFunDuplication")
public void testNoGenericFunDuplication() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/basic/multifile/NoGenericFunDuplication/");
doTest(fileName);
runTest("idea/idea-completion/testData/basic/multifile/NoGenericFunDuplication/");
}
@TestMetadata("NotImportedExtensionForImplicitReceiver")
public void testNotImportedExtensionForImplicitReceiver() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/basic/multifile/NotImportedExtensionForImplicitReceiver/");
doTest(fileName);
runTest("idea/idea-completion/testData/basic/multifile/NotImportedExtensionForImplicitReceiver/");
}
@TestMetadata("NotImportedExtensionFunction")
public void testNotImportedExtensionFunction() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/basic/multifile/NotImportedExtensionFunction/");
doTest(fileName);
runTest("idea/idea-completion/testData/basic/multifile/NotImportedExtensionFunction/");
}
@TestMetadata("NotImportedExtensionFunction2")
public void testNotImportedExtensionFunction2() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/basic/multifile/NotImportedExtensionFunction2/");
doTest(fileName);
runTest("idea/idea-completion/testData/basic/multifile/NotImportedExtensionFunction2/");
}
@TestMetadata("NotImportedExtensionFunction3")
public void testNotImportedExtensionFunction3() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/basic/multifile/NotImportedExtensionFunction3/");
doTest(fileName);
runTest("idea/idea-completion/testData/basic/multifile/NotImportedExtensionFunction3/");
}
@TestMetadata("NotImportedExtensionFunctionAndAlias")
public void testNotImportedExtensionFunctionAndAlias() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/basic/multifile/NotImportedExtensionFunctionAndAlias/");
doTest(fileName);
runTest("idea/idea-completion/testData/basic/multifile/NotImportedExtensionFunctionAndAlias/");
}
@TestMetadata("NotImportedExtensionProperty")
public void testNotImportedExtensionProperty() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/basic/multifile/NotImportedExtensionProperty/");
doTest(fileName);
runTest("idea/idea-completion/testData/basic/multifile/NotImportedExtensionProperty/");
}
@TestMetadata("NotImportedFunction")
public void testNotImportedFunction() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/basic/multifile/NotImportedFunction/");
doTest(fileName);
runTest("idea/idea-completion/testData/basic/multifile/NotImportedFunction/");
}
@TestMetadata("NotImportedInfixExtension")
public void testNotImportedInfixExtension() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/basic/multifile/NotImportedInfixExtension/");
doTest(fileName);
runTest("idea/idea-completion/testData/basic/multifile/NotImportedInfixExtension/");
}
@TestMetadata("NotImportedJavaClass")
public void testNotImportedJavaClass() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/basic/multifile/NotImportedJavaClass/");
doTest(fileName);
runTest("idea/idea-completion/testData/basic/multifile/NotImportedJavaClass/");
}
@TestMetadata("NotImportedObject")
public void testNotImportedObject() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/basic/multifile/NotImportedObject/");
doTest(fileName);
runTest("idea/idea-completion/testData/basic/multifile/NotImportedObject/");
}
@TestMetadata("NotImportedProperty")
public void testNotImportedProperty() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/basic/multifile/NotImportedProperty/");
doTest(fileName);
runTest("idea/idea-completion/testData/basic/multifile/NotImportedProperty/");
}
@TestMetadata("ObjectInTypePosition")
public void testObjectInTypePosition() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/basic/multifile/ObjectInTypePosition/");
doTest(fileName);
runTest("idea/idea-completion/testData/basic/multifile/ObjectInTypePosition/");
}
@TestMetadata("ObjectMembers")
public void testObjectMembers() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/basic/multifile/ObjectMembers/");
doTest(fileName);
runTest("idea/idea-completion/testData/basic/multifile/ObjectMembers/");
}
@TestMetadata("ParameterNameAndTypeForNotImportedAlias")
public void testParameterNameAndTypeForNotImportedAlias() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/basic/multifile/ParameterNameAndTypeForNotImportedAlias/");
doTest(fileName);
runTest("idea/idea-completion/testData/basic/multifile/ParameterNameAndTypeForNotImportedAlias/");
}
@TestMetadata("ParameterNameAndTypeNestedClasses")
public void testParameterNameAndTypeNestedClasses() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/basic/multifile/ParameterNameAndTypeNestedClasses/");
doTest(fileName);
runTest("idea/idea-completion/testData/basic/multifile/ParameterNameAndTypeNestedClasses/");
}
@TestMetadata("PreferMemberToExtension")
public void testPreferMemberToExtension() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/basic/multifile/PreferMemberToExtension/");
doTest(fileName);
runTest("idea/idea-completion/testData/basic/multifile/PreferMemberToExtension/");
}
@TestMetadata("PreferMemberToGlobal")
public void testPreferMemberToGlobal() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/basic/multifile/PreferMemberToGlobal/");
doTest(fileName);
runTest("idea/idea-completion/testData/basic/multifile/PreferMemberToGlobal/");
}
@TestMetadata("PreferMoreSpecificExtension1")
public void testPreferMoreSpecificExtension1() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/basic/multifile/PreferMoreSpecificExtension1/");
doTest(fileName);
runTest("idea/idea-completion/testData/basic/multifile/PreferMoreSpecificExtension1/");
}
@TestMetadata("PreferMoreSpecificExtension2")
public void testPreferMoreSpecificExtension2() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/basic/multifile/PreferMoreSpecificExtension2/");
doTest(fileName);
runTest("idea/idea-completion/testData/basic/multifile/PreferMoreSpecificExtension2/");
}
@TestMetadata("PreferMoreSpecificExtension3")
public void testPreferMoreSpecificExtension3() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/basic/multifile/PreferMoreSpecificExtension3/");
doTest(fileName);
runTest("idea/idea-completion/testData/basic/multifile/PreferMoreSpecificExtension3/");
}
@TestMetadata("PropertyKeysEmptyString")
public void testPropertyKeysEmptyString() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/basic/multifile/PropertyKeysEmptyString/");
doTest(fileName);
runTest("idea/idea-completion/testData/basic/multifile/PropertyKeysEmptyString/");
}
@TestMetadata("PropertyKeysNoPrefix")
public void testPropertyKeysNoPrefix() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/basic/multifile/PropertyKeysNoPrefix/");
doTest(fileName);
runTest("idea/idea-completion/testData/basic/multifile/PropertyKeysNoPrefix/");
}
@TestMetadata("PropertyKeysWithPrefix")
public void testPropertyKeysWithPrefix() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/basic/multifile/PropertyKeysWithPrefix/");
doTest(fileName);
runTest("idea/idea-completion/testData/basic/multifile/PropertyKeysWithPrefix/");
}
@TestMetadata("StaticMembersOfNotImportedClassFromJava")
public void testStaticMembersOfNotImportedClassFromJava() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/basic/multifile/StaticMembersOfNotImportedClassFromJava/");
doTest(fileName);
runTest("idea/idea-completion/testData/basic/multifile/StaticMembersOfNotImportedClassFromJava/");
}
@TestMetadata("StaticMembersOfNotImportedClassFromKotlin")
public void testStaticMembersOfNotImportedClassFromKotlin() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/basic/multifile/StaticMembersOfNotImportedClassFromKotlin/");
doTest(fileName);
runTest("idea/idea-completion/testData/basic/multifile/StaticMembersOfNotImportedClassFromKotlin/");
}
@TestMetadata("StaticMembersOfNotImportedClassFromKotlinObject")
public void testStaticMembersOfNotImportedClassFromKotlinObject() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/basic/multifile/StaticMembersOfNotImportedClassFromKotlinObject/");
doTest(fileName);
runTest("idea/idea-completion/testData/basic/multifile/StaticMembersOfNotImportedClassFromKotlinObject/");
}
@TestMetadata("StaticMembersOfNotImportedClassNameConflict")
public void testStaticMembersOfNotImportedClassNameConflict() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/basic/multifile/StaticMembersOfNotImportedClassNameConflict/");
doTest(fileName);
runTest("idea/idea-completion/testData/basic/multifile/StaticMembersOfNotImportedClassNameConflict/");
}
@TestMetadata("SyntheticExtensionDeprecated")
public void testSyntheticExtensionDeprecated() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/basic/multifile/SyntheticExtensionDeprecated/");
doTest(fileName);
runTest("idea/idea-completion/testData/basic/multifile/SyntheticExtensionDeprecated/");
}
@TestMetadata("SyntheticExtensionForGenericClass")
public void testSyntheticExtensionForGenericClass() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/basic/multifile/SyntheticExtensionForGenericClass/");
doTest(fileName);
runTest("idea/idea-completion/testData/basic/multifile/SyntheticExtensionForGenericClass/");
}
@TestMetadata("SyntheticExtensionNonVoidSetter")
public void testSyntheticExtensionNonVoidSetter() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/basic/multifile/SyntheticExtensionNonVoidSetter/");
doTest(fileName);
runTest("idea/idea-completion/testData/basic/multifile/SyntheticExtensionNonVoidSetter/");
}
@TestMetadata("TopLevelFunction")
public void testTopLevelFunction() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/basic/multifile/TopLevelFunction/");
doTest(fileName);
runTest("idea/idea-completion/testData/basic/multifile/TopLevelFunction/");
}
@TestMetadata("TypeAliases")
public void testTypeAliases() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/basic/multifile/TypeAliases/");
doTest(fileName);
runTest("idea/idea-completion/testData/basic/multifile/TypeAliases/");
}
}
@@ -21,133 +21,116 @@ import java.util.regex.Pattern;
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public class MultiFileSmartCompletionTestGenerated extends AbstractMultiFileSmartCompletionTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.ANY, testDataFilePath);
}
public void testAllFilesPresentInSmartMultiFile() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/idea-completion/testData/smartMultiFile"), Pattern.compile("^([^\\.]+)$"), TargetBackend.ANY, false);
}
@TestMetadata("AnonymousObjectGenericJava")
public void testAnonymousObjectGenericJava() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/smartMultiFile/AnonymousObjectGenericJava/");
doTest(fileName);
runTest("idea/idea-completion/testData/smartMultiFile/AnonymousObjectGenericJava/");
}
@TestMetadata("CallableReferenceNotImported")
public void testCallableReferenceNotImported() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/smartMultiFile/CallableReferenceNotImported/");
doTest(fileName);
runTest("idea/idea-completion/testData/smartMultiFile/CallableReferenceNotImported/");
}
@TestMetadata("CallablesInExcludedPackage")
public void testCallablesInExcludedPackage() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/smartMultiFile/CallablesInExcludedPackage/");
doTest(fileName);
runTest("idea/idea-completion/testData/smartMultiFile/CallablesInExcludedPackage/");
}
@TestMetadata("FunctionFromAnotherPackage")
public void testFunctionFromAnotherPackage() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/smartMultiFile/FunctionFromAnotherPackage/");
doTest(fileName);
runTest("idea/idea-completion/testData/smartMultiFile/FunctionFromAnotherPackage/");
}
@TestMetadata("GenericInheritors1")
public void testGenericInheritors1() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/smartMultiFile/GenericInheritors1/");
doTest(fileName);
runTest("idea/idea-completion/testData/smartMultiFile/GenericInheritors1/");
}
@TestMetadata("GenericInheritors2")
public void testGenericInheritors2() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/smartMultiFile/GenericInheritors2/");
doTest(fileName);
runTest("idea/idea-completion/testData/smartMultiFile/GenericInheritors2/");
}
@TestMetadata("GenericInheritors3")
public void testGenericInheritors3() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/smartMultiFile/GenericInheritors3/");
doTest(fileName);
runTest("idea/idea-completion/testData/smartMultiFile/GenericInheritors3/");
}
@TestMetadata("GenericInheritors4")
public void testGenericInheritors4() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/smartMultiFile/GenericInheritors4/");
doTest(fileName);
runTest("idea/idea-completion/testData/smartMultiFile/GenericInheritors4/");
}
@TestMetadata("InheritorInTheSameFile")
public void testInheritorInTheSameFile() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/smartMultiFile/InheritorInTheSameFile/");
doTest(fileName);
runTest("idea/idea-completion/testData/smartMultiFile/InheritorInTheSameFile/");
}
@TestMetadata("Inheritors")
public void testInheritors() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/smartMultiFile/Inheritors/");
doTest(fileName);
runTest("idea/idea-completion/testData/smartMultiFile/Inheritors/");
}
@TestMetadata("InheritorsAndMultipleExpectedTypes")
public void testInheritorsAndMultipleExpectedTypes() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/smartMultiFile/InheritorsAndMultipleExpectedTypes/");
doTest(fileName);
runTest("idea/idea-completion/testData/smartMultiFile/InheritorsAndMultipleExpectedTypes/");
}
@TestMetadata("JavaStaticMethodArgument")
public void testJavaStaticMethodArgument() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/smartMultiFile/JavaStaticMethodArgument/");
doTest(fileName);
runTest("idea/idea-completion/testData/smartMultiFile/JavaStaticMethodArgument/");
}
@TestMetadata("JavaStaticMethodArgument2")
public void testJavaStaticMethodArgument2() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/smartMultiFile/JavaStaticMethodArgument2/");
doTest(fileName);
runTest("idea/idea-completion/testData/smartMultiFile/JavaStaticMethodArgument2/");
}
@TestMetadata("KT_8751")
public void testKT_8751() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/smartMultiFile/KT_8751/");
doTest(fileName);
runTest("idea/idea-completion/testData/smartMultiFile/KT_8751/");
}
@TestMetadata("KT_8751_2")
public void testKT_8751_2() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/smartMultiFile/KT_8751_2/");
doTest(fileName);
runTest("idea/idea-completion/testData/smartMultiFile/KT_8751_2/");
}
@TestMetadata("NestedClassAfterAs")
public void testNestedClassAfterAs() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/smartMultiFile/NestedClassAfterAs/");
doTest(fileName);
runTest("idea/idea-completion/testData/smartMultiFile/NestedClassAfterAs/");
}
@TestMetadata("NoObjectDuplication")
public void testNoObjectDuplication() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/smartMultiFile/NoObjectDuplication/");
doTest(fileName);
runTest("idea/idea-completion/testData/smartMultiFile/NoObjectDuplication/");
}
@TestMetadata("NotImportedContains")
public void testNotImportedContains() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/smartMultiFile/NotImportedContains/");
doTest(fileName);
runTest("idea/idea-completion/testData/smartMultiFile/NotImportedContains/");
}
@TestMetadata("NotImportedGetValue")
public void testNotImportedGetValue() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/smartMultiFile/NotImportedGetValue/");
doTest(fileName);
runTest("idea/idea-completion/testData/smartMultiFile/NotImportedGetValue/");
}
@TestMetadata("StaticMembers1")
public void testStaticMembers1() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/smartMultiFile/StaticMembers1/");
doTest(fileName);
runTest("idea/idea-completion/testData/smartMultiFile/StaticMembers1/");
}
@TestMetadata("StaticMembers2")
public void testStaticMembers2() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/smartMultiFile/StaticMembers2/");
doTest(fileName);
runTest("idea/idea-completion/testData/smartMultiFile/StaticMembers2/");
}
}
@@ -21,31 +21,31 @@ import java.util.regex.Pattern;
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public class MultiPlatformCompletionTestGenerated extends AbstractMultiPlatformCompletionTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.ANY, testDataFilePath);
}
public void testAllFilesPresentInMultiPlatform() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/idea-completion/testData/multiPlatform"), Pattern.compile("^([^\\.]+)$"), TargetBackend.ANY, false);
}
@TestMetadata("classInCommon")
public void testClassInCommon() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/multiPlatform/classInCommon/");
doTest(fileName);
runTest("idea/idea-completion/testData/multiPlatform/classInCommon/");
}
@TestMetadata("classInPlatform")
public void testClassInPlatform() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/multiPlatform/classInPlatform/");
doTest(fileName);
runTest("idea/idea-completion/testData/multiPlatform/classInPlatform/");
}
@TestMetadata("functionInCommon")
public void testFunctionInCommon() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/multiPlatform/functionInCommon/");
doTest(fileName);
runTest("idea/idea-completion/testData/multiPlatform/functionInCommon/");
}
@TestMetadata("functionInPlatform")
public void testFunctionInPlatform() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/multiPlatform/functionInPlatform/");
doTest(fileName);
runTest("idea/idea-completion/testData/multiPlatform/functionInPlatform/");
}
}
@@ -21,193 +21,166 @@ import java.util.regex.Pattern;
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public class CompletionCharFilterTestGenerated extends AbstractCompletionCharFilterTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.ANY, testDataFilePath);
}
public void testAllFilesPresentInCharFilter() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/idea-completion/testData/handlers/charFilter"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
}
@TestMetadata("Colon.kt")
public void testColon() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/handlers/charFilter/Colon.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/handlers/charFilter/Colon.kt");
}
@TestMetadata("Comma1.kt")
public void testComma1() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/handlers/charFilter/Comma1.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/handlers/charFilter/Comma1.kt");
}
@TestMetadata("Comma2.kt")
public void testComma2() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/handlers/charFilter/Comma2.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/handlers/charFilter/Comma2.kt");
}
@TestMetadata("Comma3.kt")
public void testComma3() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/handlers/charFilter/Comma3.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/handlers/charFilter/Comma3.kt");
}
@TestMetadata("Comma4.kt")
public void testComma4() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/handlers/charFilter/Comma4.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/handlers/charFilter/Comma4.kt");
}
@TestMetadata("Comma5.kt")
public void testComma5() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/handlers/charFilter/Comma5.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/handlers/charFilter/Comma5.kt");
}
@TestMetadata("CommaForFunction1.kt")
public void testCommaForFunction1() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/handlers/charFilter/CommaForFunction1.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/handlers/charFilter/CommaForFunction1.kt");
}
@TestMetadata("CommaForFunction2.kt")
public void testCommaForFunction2() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/handlers/charFilter/CommaForFunction2.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/handlers/charFilter/CommaForFunction2.kt");
}
@TestMetadata("ConstructorWithLambdaArg1.kt")
public void testConstructorWithLambdaArg1() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/handlers/charFilter/ConstructorWithLambdaArg1.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/handlers/charFilter/ConstructorWithLambdaArg1.kt");
}
@TestMetadata("ConstructorWithLambdaArg2.kt")
public void testConstructorWithLambdaArg2() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/handlers/charFilter/ConstructorWithLambdaArg2.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/handlers/charFilter/ConstructorWithLambdaArg2.kt");
}
@TestMetadata("Dot.kt")
public void testDot() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/handlers/charFilter/Dot.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/handlers/charFilter/Dot.kt");
}
@TestMetadata("DotAfterFun1.kt")
public void testDotAfterFun1() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/handlers/charFilter/DotAfterFun1.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/handlers/charFilter/DotAfterFun1.kt");
}
@TestMetadata("DotAfterFun2.kt")
public void testDotAfterFun2() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/handlers/charFilter/DotAfterFun2.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/handlers/charFilter/DotAfterFun2.kt");
}
@TestMetadata("Eq1.kt")
public void testEq1() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/handlers/charFilter/Eq1.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/handlers/charFilter/Eq1.kt");
}
@TestMetadata("Eq2.kt")
public void testEq2() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/handlers/charFilter/Eq2.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/handlers/charFilter/Eq2.kt");
}
@TestMetadata("FunctionLiteralParameter1.kt")
public void testFunctionLiteralParameter1() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/handlers/charFilter/FunctionLiteralParameter1.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/handlers/charFilter/FunctionLiteralParameter1.kt");
}
@TestMetadata("FunctionLiteralParameter2.kt")
public void testFunctionLiteralParameter2() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/handlers/charFilter/FunctionLiteralParameter2.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/handlers/charFilter/FunctionLiteralParameter2.kt");
}
@TestMetadata("FunctionLiteralParameter3.kt")
public void testFunctionLiteralParameter3() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/handlers/charFilter/FunctionLiteralParameter3.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/handlers/charFilter/FunctionLiteralParameter3.kt");
}
@TestMetadata("FunctionWithLambdaArg1.kt")
public void testFunctionWithLambdaArg1() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/handlers/charFilter/FunctionWithLambdaArg1.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/handlers/charFilter/FunctionWithLambdaArg1.kt");
}
@TestMetadata("FunctionWithLambdaArg2.kt")
public void testFunctionWithLambdaArg2() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/handlers/charFilter/FunctionWithLambdaArg2.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/handlers/charFilter/FunctionWithLambdaArg2.kt");
}
@TestMetadata("InfixCallAndSpace.kt")
public void testInfixCallAndSpace() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/handlers/charFilter/InfixCallAndSpace.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/handlers/charFilter/InfixCallAndSpace.kt");
}
@TestMetadata("KeywordAndSpace.kt")
public void testKeywordAndSpace() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/handlers/charFilter/KeywordAndSpace.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/handlers/charFilter/KeywordAndSpace.kt");
}
@TestMetadata("LParenth.kt")
public void testLParenth() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/handlers/charFilter/LParenth.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/handlers/charFilter/LParenth.kt");
}
@TestMetadata("NamedParameter1.kt")
public void testNamedParameter1() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/handlers/charFilter/NamedParameter1.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/handlers/charFilter/NamedParameter1.kt");
}
@TestMetadata("NamedParameter2.kt")
public void testNamedParameter2() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/handlers/charFilter/NamedParameter2.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/handlers/charFilter/NamedParameter2.kt");
}
@TestMetadata("QualifiedThis.kt")
public void testQualifiedThis() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/handlers/charFilter/QualifiedThis.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/handlers/charFilter/QualifiedThis.kt");
}
@TestMetadata("RangeTyping.kt")
public void testRangeTyping() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/handlers/charFilter/RangeTyping.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/handlers/charFilter/RangeTyping.kt");
}
@TestMetadata("Space.kt")
public void testSpace() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/handlers/charFilter/Space.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/handlers/charFilter/Space.kt");
}
@TestMetadata("VariableName.kt")
public void testVariableName() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/handlers/charFilter/VariableName.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/handlers/charFilter/VariableName.kt");
}
@TestMetadata("VariableName2.kt")
public void testVariableName2() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/handlers/charFilter/VariableName2.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/handlers/charFilter/VariableName2.kt");
}
@TestMetadata("VariableName3.kt")
public void testVariableName3() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/handlers/charFilter/VariableName3.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/handlers/charFilter/VariableName3.kt");
}
}
@@ -21,10 +21,13 @@ import java.util.regex.Pattern;
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public class KeywordCompletionHandlerTestGenerated extends AbstractKeywordCompletionHandlerTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.ANY, testDataFilePath);
}
@TestMetadata("AddCompanionToObject.kt")
public void testAddCompanionToObject() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/handlers/keywords/AddCompanionToObject.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/handlers/keywords/AddCompanionToObject.kt");
}
public void testAllFilesPresentInKeywords() throws Exception {
@@ -33,205 +36,171 @@ public class KeywordCompletionHandlerTestGenerated extends AbstractKeywordComple
@TestMetadata("Break.kt")
public void testBreak() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/handlers/keywords/Break.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/handlers/keywords/Break.kt");
}
@TestMetadata("Catch.kt")
public void testCatch() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/handlers/keywords/Catch.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/handlers/keywords/Catch.kt");
}
@TestMetadata("CompanionObject.kt")
public void testCompanionObject() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/handlers/keywords/CompanionObject.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/handlers/keywords/CompanionObject.kt");
}
@TestMetadata("Constructor.kt")
public void testConstructor() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/handlers/keywords/Constructor.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/handlers/keywords/Constructor.kt");
}
@TestMetadata("ConstructorPrimary.kt")
public void testConstructorPrimary() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/handlers/keywords/ConstructorPrimary.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/handlers/keywords/ConstructorPrimary.kt");
}
@TestMetadata("Do.kt")
public void testDo() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/handlers/keywords/Do.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/handlers/keywords/Do.kt");
}
@TestMetadata("FileKeyword.kt")
public void testFileKeyword() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/handlers/keywords/FileKeyword.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/handlers/keywords/FileKeyword.kt");
}
@TestMetadata("Finally.kt")
public void testFinally() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/handlers/keywords/Finally.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/handlers/keywords/Finally.kt");
}
@TestMetadata("For.kt")
public void testFor() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/handlers/keywords/For.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/handlers/keywords/For.kt");
}
@TestMetadata("Getter1.kt")
public void testGetter1() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/handlers/keywords/Getter1.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/handlers/keywords/Getter1.kt");
}
@TestMetadata("Getter2.kt")
public void testGetter2() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/handlers/keywords/Getter2.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/handlers/keywords/Getter2.kt");
}
@TestMetadata("If.kt")
public void testIf() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/handlers/keywords/If.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/handlers/keywords/If.kt");
}
@TestMetadata("IfLParenth.kt")
public void testIfLParenth() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/handlers/keywords/IfLParenth.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/handlers/keywords/IfLParenth.kt");
}
@TestMetadata("IfParansOnNextLine.kt")
public void testIfParansOnNextLine() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/handlers/keywords/IfParansOnNextLine.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/handlers/keywords/IfParansOnNextLine.kt");
}
@TestMetadata("IfSpace.kt")
public void testIfSpace() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/handlers/keywords/IfSpace.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/handlers/keywords/IfSpace.kt");
}
@TestMetadata("Init.kt")
public void testInit() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/handlers/keywords/Init.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/handlers/keywords/Init.kt");
}
@TestMetadata("NoSpaceAfterNull.kt")
public void testNoSpaceAfterNull() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/handlers/keywords/NoSpaceAfterNull.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/handlers/keywords/NoSpaceAfterNull.kt");
}
@TestMetadata("QualifiedReturnNonUnit.kt")
public void testQualifiedReturnNonUnit() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/handlers/keywords/QualifiedReturnNonUnit.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/handlers/keywords/QualifiedReturnNonUnit.kt");
}
@TestMetadata("QualifiedReturnNonUnitExplicit.kt")
public void testQualifiedReturnNonUnitExplicit() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/handlers/keywords/QualifiedReturnNonUnitExplicit.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/handlers/keywords/QualifiedReturnNonUnitExplicit.kt");
}
@TestMetadata("QualifiedReturnUnit.kt")
public void testQualifiedReturnUnit() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/handlers/keywords/QualifiedReturnUnit.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/handlers/keywords/QualifiedReturnUnit.kt");
}
@TestMetadata("ReturnEmptyList.kt")
public void testReturnEmptyList() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/handlers/keywords/ReturnEmptyList.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/handlers/keywords/ReturnEmptyList.kt");
}
@TestMetadata("ReturnInEmptyType.kt")
public void testReturnInEmptyType() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/handlers/keywords/ReturnInEmptyType.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/handlers/keywords/ReturnInEmptyType.kt");
}
@TestMetadata("ReturnInProperty.kt")
public void testReturnInProperty() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/handlers/keywords/ReturnInProperty.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/handlers/keywords/ReturnInProperty.kt");
}
@TestMetadata("ReturnInTypeFunction.kt")
public void testReturnInTypeFunction() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/handlers/keywords/ReturnInTypeFunction.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/handlers/keywords/ReturnInTypeFunction.kt");
}
@TestMetadata("ReturnInUnit.kt")
public void testReturnInUnit() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/handlers/keywords/ReturnInUnit.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/handlers/keywords/ReturnInUnit.kt");
}
@TestMetadata("ReturnNull.kt")
public void testReturnNull() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/handlers/keywords/ReturnNull.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/handlers/keywords/ReturnNull.kt");
}
@TestMetadata("Setter1.kt")
public void testSetter1() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/handlers/keywords/Setter1.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/handlers/keywords/Setter1.kt");
}
@TestMetadata("Setter2.kt")
public void testSetter2() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/handlers/keywords/Setter2.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/handlers/keywords/Setter2.kt");
}
@TestMetadata("SpaceAfterImport.kt")
public void testSpaceAfterImport() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/handlers/keywords/SpaceAfterImport.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/handlers/keywords/SpaceAfterImport.kt");
}
@TestMetadata("Try.kt")
public void testTry() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/handlers/keywords/Try.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/handlers/keywords/Try.kt");
}
@TestMetadata("UseSiteAnnotationTarget1.kt")
public void testUseSiteAnnotationTarget1() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/handlers/keywords/UseSiteAnnotationTarget1.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/handlers/keywords/UseSiteAnnotationTarget1.kt");
}
@TestMetadata("UseSiteAnnotationTarget2.kt")
public void testUseSiteAnnotationTarget2() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/handlers/keywords/UseSiteAnnotationTarget2.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/handlers/keywords/UseSiteAnnotationTarget2.kt");
}
@TestMetadata("UseSiteAnnotationTarget3.kt")
public void testUseSiteAnnotationTarget3() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/handlers/keywords/UseSiteAnnotationTarget3.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/handlers/keywords/UseSiteAnnotationTarget3.kt");
}
@TestMetadata("While.kt")
public void testWhile() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/handlers/keywords/While.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/handlers/keywords/While.kt");
}
}
@@ -21,10 +21,13 @@ import java.util.regex.Pattern;
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public class BasicCompletionWeigherTestGenerated extends AbstractBasicCompletionWeigherTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.ANY, testDataFilePath);
}
@TestMetadata("AfterNullable.kt")
public void testAfterNullable() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/weighers/basic/AfterNullable.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/weighers/basic/AfterNullable.kt");
}
public void testAllFilesPresentInBasic() throws Exception {
@@ -33,186 +36,160 @@ public class BasicCompletionWeigherTestGenerated extends AbstractBasicCompletion
@TestMetadata("CallableReference_NothingLast.kt")
public void testCallableReference_NothingLast() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/weighers/basic/CallableReference_NothingLast.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/weighers/basic/CallableReference_NothingLast.kt");
}
@TestMetadata("Callables.kt")
public void testCallables() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/weighers/basic/Callables.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/weighers/basic/Callables.kt");
}
@TestMetadata("DelegateToOtherObject.kt")
public void testDelegateToOtherObject() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/weighers/basic/DelegateToOtherObject.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/weighers/basic/DelegateToOtherObject.kt");
}
@TestMetadata("DeprecatedFun.kt")
public void testDeprecatedFun() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/weighers/basic/DeprecatedFun.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/weighers/basic/DeprecatedFun.kt");
}
@TestMetadata("DeprecatedJavaClass.kt")
public void testDeprecatedJavaClass() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/weighers/basic/DeprecatedJavaClass.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/weighers/basic/DeprecatedJavaClass.kt");
}
@TestMetadata("DslCallWithExpectedType.kt")
public void testDslCallWithExpectedType() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/weighers/basic/DslCallWithExpectedType.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/weighers/basic/DslCallWithExpectedType.kt");
}
@TestMetadata("DslCalls.kt")
public void testDslCalls() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/weighers/basic/DslCalls.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/weighers/basic/DslCalls.kt");
}
@TestMetadata("DslCallsWithMultipleReceivers.kt")
public void testDslCallsWithMultipleReceivers() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/weighers/basic/DslCallsWithMultipleReceivers.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/weighers/basic/DslCallsWithMultipleReceivers.kt");
}
@TestMetadata("ExactMatchForKeyword.kt")
public void testExactMatchForKeyword() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/weighers/basic/ExactMatchForKeyword.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/weighers/basic/ExactMatchForKeyword.kt");
}
@TestMetadata("ImportedFirst.kt")
public void testImportedFirst() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/weighers/basic/ImportedFirst.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/weighers/basic/ImportedFirst.kt");
}
@TestMetadata("ImportedFirstForJavaClass.kt")
public void testImportedFirstForJavaClass() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/weighers/basic/ImportedFirstForJavaClass.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/weighers/basic/ImportedFirstForJavaClass.kt");
}
@TestMetadata("ImportedOrder.kt")
public void testImportedOrder() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/weighers/basic/ImportedOrder.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/weighers/basic/ImportedOrder.kt");
}
@TestMetadata("KeywordsLast.kt")
public void testKeywordsLast() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/weighers/basic/KeywordsLast.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/weighers/basic/KeywordsLast.kt");
}
@TestMetadata("LambdaSignature.kt")
public void testLambdaSignature() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/weighers/basic/LambdaSignature.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/weighers/basic/LambdaSignature.kt");
}
@TestMetadata("LocalFileBeforeImported.kt")
public void testLocalFileBeforeImported() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/weighers/basic/LocalFileBeforeImported.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/weighers/basic/LocalFileBeforeImported.kt");
}
@TestMetadata("LocalValuesAndParams.kt")
public void testLocalValuesAndParams() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/weighers/basic/LocalValuesAndParams.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/weighers/basic/LocalValuesAndParams.kt");
}
@TestMetadata("LocalsBeforeKeywords.kt")
public void testLocalsBeforeKeywords() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/weighers/basic/LocalsBeforeKeywords.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/weighers/basic/LocalsBeforeKeywords.kt");
}
@TestMetadata("LocalsPropertiesKeywords.kt")
public void testLocalsPropertiesKeywords() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/weighers/basic/LocalsPropertiesKeywords.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/weighers/basic/LocalsPropertiesKeywords.kt");
}
@TestMetadata("NamedParameters.kt")
public void testNamedParameters() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/weighers/basic/NamedParameters.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/weighers/basic/NamedParameters.kt");
}
@TestMetadata("NamedParameters2.kt")
public void testNamedParameters2() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/weighers/basic/NamedParameters2.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/weighers/basic/NamedParameters2.kt");
}
@TestMetadata("NamedParameters3.kt")
public void testNamedParameters3() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/weighers/basic/NamedParameters3.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/weighers/basic/NamedParameters3.kt");
}
@TestMetadata("Packages.kt")
public void testPackages() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/weighers/basic/Packages.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/weighers/basic/Packages.kt");
}
@TestMetadata("ParametersBeforeKeywords.kt")
public void testParametersBeforeKeywords() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/weighers/basic/ParametersBeforeKeywords.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/weighers/basic/ParametersBeforeKeywords.kt");
}
@TestMetadata("PreferFromJdk.kt")
public void testPreferFromJdk() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/weighers/basic/PreferFromJdk.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/weighers/basic/PreferFromJdk.kt");
}
@TestMetadata("PreferGetMethodToProperty.kt")
public void testPreferGetMethodToProperty() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/weighers/basic/PreferGetMethodToProperty.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/weighers/basic/PreferGetMethodToProperty.kt");
}
@TestMetadata("Prefix.kt")
public void testPrefix() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/weighers/basic/Prefix.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/weighers/basic/Prefix.kt");
}
@TestMetadata("PropertiesBeforeKeywords.kt")
public void testPropertiesBeforeKeywords() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/weighers/basic/PropertiesBeforeKeywords.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/weighers/basic/PropertiesBeforeKeywords.kt");
}
@TestMetadata("StaticMembers.kt")
public void testStaticMembers() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/weighers/basic/StaticMembers.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/weighers/basic/StaticMembers.kt");
}
@TestMetadata("SuperMembers.kt")
public void testSuperMembers() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/weighers/basic/SuperMembers.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/weighers/basic/SuperMembers.kt");
}
@TestMetadata("idea/idea-completion/testData/weighers/basic/expectedInfo")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class ExpectedInfo extends AbstractBasicCompletionWeigherTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.ANY, testDataFilePath);
}
@TestMetadata("AfterAs.kt")
public void testAfterAs() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/weighers/basic/expectedInfo/AfterAs.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/weighers/basic/expectedInfo/AfterAs.kt");
}
public void testAllFilesPresentInExpectedInfo() throws Exception {
@@ -221,86 +198,72 @@ public class BasicCompletionWeigherTestGenerated extends AbstractBasicCompletion
@TestMetadata("CompanionObjectMethod.kt")
public void testCompanionObjectMethod() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/weighers/basic/expectedInfo/CompanionObjectMethod.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/weighers/basic/expectedInfo/CompanionObjectMethod.kt");
}
@TestMetadata("EnumEntries.kt")
public void testEnumEntries() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/weighers/basic/expectedInfo/EnumEntries.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/weighers/basic/expectedInfo/EnumEntries.kt");
}
@TestMetadata("ExpectedType.kt")
public void testExpectedType() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/weighers/basic/expectedInfo/ExpectedType.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/weighers/basic/expectedInfo/ExpectedType.kt");
}
@TestMetadata("ExpectedType2.kt")
public void testExpectedType2() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/weighers/basic/expectedInfo/ExpectedType2.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/weighers/basic/expectedInfo/ExpectedType2.kt");
}
@TestMetadata("LambdaValue.kt")
public void testLambdaValue() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/weighers/basic/expectedInfo/LambdaValue.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/weighers/basic/expectedInfo/LambdaValue.kt");
}
@TestMetadata("MultiArgsItem.kt")
public void testMultiArgsItem() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/weighers/basic/expectedInfo/MultiArgsItem.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/weighers/basic/expectedInfo/MultiArgsItem.kt");
}
@TestMetadata("NameSimilarity.kt")
public void testNameSimilarity() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/weighers/basic/expectedInfo/NameSimilarity.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/weighers/basic/expectedInfo/NameSimilarity.kt");
}
@TestMetadata("NameSimilarityAndNoExpectedType.kt")
public void testNameSimilarityAndNoExpectedType() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/weighers/basic/expectedInfo/NameSimilarityAndNoExpectedType.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/weighers/basic/expectedInfo/NameSimilarityAndNoExpectedType.kt");
}
@TestMetadata("NameSimilarityAndNoExpectedType2.kt")
public void testNameSimilarityAndNoExpectedType2() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/weighers/basic/expectedInfo/NameSimilarityAndNoExpectedType2.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/weighers/basic/expectedInfo/NameSimilarityAndNoExpectedType2.kt");
}
@TestMetadata("NoStupidComparison.kt")
public void testNoStupidComparison() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/weighers/basic/expectedInfo/NoStupidComparison.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/weighers/basic/expectedInfo/NoStupidComparison.kt");
}
@TestMetadata("Null.kt")
public void testNull() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/weighers/basic/expectedInfo/Null.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/weighers/basic/expectedInfo/Null.kt");
}
@TestMetadata("PreferMatchingThis.kt")
public void testPreferMatchingThis() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/weighers/basic/expectedInfo/PreferMatchingThis.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/weighers/basic/expectedInfo/PreferMatchingThis.kt");
}
@TestMetadata("TrueFalse.kt")
public void testTrueFalse() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/weighers/basic/expectedInfo/TrueFalse.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/weighers/basic/expectedInfo/TrueFalse.kt");
}
@TestMetadata("WhenByEnum.kt")
public void testWhenByEnum() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/weighers/basic/expectedInfo/WhenByEnum.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/weighers/basic/expectedInfo/WhenByEnum.kt");
}
}
@@ -308,50 +271,47 @@ public class BasicCompletionWeigherTestGenerated extends AbstractBasicCompletion
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class ParameterNameAndType extends AbstractBasicCompletionWeigherTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.ANY, testDataFilePath);
}
public void testAllFilesPresentInParameterNameAndType() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/idea-completion/testData/weighers/basic/parameterNameAndType"), Pattern.compile("^([^.]+)\\.kt$"), TargetBackend.ANY, true);
}
@TestMetadata("Deprecated.kt")
public void testDeprecated() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/weighers/basic/parameterNameAndType/Deprecated.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/weighers/basic/parameterNameAndType/Deprecated.kt");
}
@TestMetadata("FromCurrentFilePriority.kt")
public void testFromCurrentFilePriority() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/weighers/basic/parameterNameAndType/FromCurrentFilePriority.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/weighers/basic/parameterNameAndType/FromCurrentFilePriority.kt");
}
@TestMetadata("ImportedFirst.kt")
public void testImportedFirst() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/weighers/basic/parameterNameAndType/ImportedFirst.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/weighers/basic/parameterNameAndType/ImportedFirst.kt");
}
@TestMetadata("MoreWordsMatchFirst.kt")
public void testMoreWordsMatchFirst() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/weighers/basic/parameterNameAndType/MoreWordsMatchFirst.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/weighers/basic/parameterNameAndType/MoreWordsMatchFirst.kt");
}
@TestMetadata("ShorterFirst.kt")
public void testShorterFirst() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/weighers/basic/parameterNameAndType/ShorterFirst.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/weighers/basic/parameterNameAndType/ShorterFirst.kt");
}
@TestMetadata("StartMatchFirst.kt")
public void testStartMatchFirst() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/weighers/basic/parameterNameAndType/StartMatchFirst.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/weighers/basic/parameterNameAndType/StartMatchFirst.kt");
}
@TestMetadata("UserPrefix.kt")
public void testUserPrefix() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/weighers/basic/parameterNameAndType/UserPrefix.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/weighers/basic/parameterNameAndType/UserPrefix.kt");
}
}
}
@@ -21,229 +21,196 @@ import java.util.regex.Pattern;
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public class SmartCompletionWeigherTestGenerated extends AbstractSmartCompletionWeigherTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.ANY, testDataFilePath);
}
public void testAllFilesPresentInSmart() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/idea-completion/testData/weighers/smart"), Pattern.compile("^([^.]+)\\.kt$"), TargetBackend.ANY, true);
}
@TestMetadata("BooleanExpected.kt")
public void testBooleanExpected() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/weighers/smart/BooleanExpected.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/weighers/smart/BooleanExpected.kt");
}
@TestMetadata("CallableReference_NothingLast.kt")
public void testCallableReference_NothingLast() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/weighers/smart/CallableReference_NothingLast.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/weighers/smart/CallableReference_NothingLast.kt");
}
@TestMetadata("CallableReference_NothingLast2.kt")
public void testCallableReference_NothingLast2() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/weighers/smart/CallableReference_NothingLast2.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/weighers/smart/CallableReference_NothingLast2.kt");
}
@TestMetadata("FunctionExpected.kt")
public void testFunctionExpected() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/weighers/smart/FunctionExpected.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/weighers/smart/FunctionExpected.kt");
}
@TestMetadata("It.kt")
public void testIt() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/weighers/smart/It.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/weighers/smart/It.kt");
}
@TestMetadata("MultipleArgsItem.kt")
public void testMultipleArgsItem() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/weighers/smart/MultipleArgsItem.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/weighers/smart/MultipleArgsItem.kt");
}
@TestMetadata("NameSimilarity1.kt")
public void testNameSimilarity1() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/weighers/smart/NameSimilarity1.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/weighers/smart/NameSimilarity1.kt");
}
@TestMetadata("NameSimilarity2.kt")
public void testNameSimilarity2() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/weighers/smart/NameSimilarity2.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/weighers/smart/NameSimilarity2.kt");
}
@TestMetadata("NameSimilarity3.kt")
public void testNameSimilarity3() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/weighers/smart/NameSimilarity3.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/weighers/smart/NameSimilarity3.kt");
}
@TestMetadata("NameSimilarityAndCompiledParameters.kt")
public void testNameSimilarityAndCompiledParameters() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/weighers/smart/NameSimilarityAndCompiledParameters.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/weighers/smart/NameSimilarityAndCompiledParameters.kt");
}
@TestMetadata("NameSimilarityForAssignment.kt")
public void testNameSimilarityForAssignment() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/weighers/smart/NameSimilarityForAssignment.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/weighers/smart/NameSimilarityForAssignment.kt");
}
@TestMetadata("NameSimilarityForBlock.kt")
public void testNameSimilarityForBlock() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/weighers/smart/NameSimilarityForBlock.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/weighers/smart/NameSimilarityForBlock.kt");
}
@TestMetadata("NameSimilarityForElse.kt")
public void testNameSimilarityForElse() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/weighers/smart/NameSimilarityForElse.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/weighers/smart/NameSimilarityForElse.kt");
}
@TestMetadata("NameSimilarityForElvis.kt")
public void testNameSimilarityForElvis() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/weighers/smart/NameSimilarityForElvis.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/weighers/smart/NameSimilarityForElvis.kt");
}
@TestMetadata("NameSimilarityForEq1.kt")
public void testNameSimilarityForEq1() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/weighers/smart/NameSimilarityForEq1.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/weighers/smart/NameSimilarityForEq1.kt");
}
@TestMetadata("NameSimilarityForEq2.kt")
public void testNameSimilarityForEq2() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/weighers/smart/NameSimilarityForEq2.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/weighers/smart/NameSimilarityForEq2.kt");
}
@TestMetadata("NameSimilarityForEq3.kt")
public void testNameSimilarityForEq3() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/weighers/smart/NameSimilarityForEq3.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/weighers/smart/NameSimilarityForEq3.kt");
}
@TestMetadata("NameSimilarityForEq4.kt")
public void testNameSimilarityForEq4() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/weighers/smart/NameSimilarityForEq4.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/weighers/smart/NameSimilarityForEq4.kt");
}
@TestMetadata("NameSimilarityForExpressionBody.kt")
public void testNameSimilarityForExpressionBody() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/weighers/smart/NameSimilarityForExpressionBody.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/weighers/smart/NameSimilarityForExpressionBody.kt");
}
@TestMetadata("NameSimilarityForGetterExpressionBody.kt")
public void testNameSimilarityForGetterExpressionBody() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/weighers/smart/NameSimilarityForGetterExpressionBody.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/weighers/smart/NameSimilarityForGetterExpressionBody.kt");
}
@TestMetadata("NameSimilarityForGetterReturn.kt")
public void testNameSimilarityForGetterReturn() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/weighers/smart/NameSimilarityForGetterReturn.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/weighers/smart/NameSimilarityForGetterReturn.kt");
}
@TestMetadata("NameSimilarityForInitializer.kt")
public void testNameSimilarityForInitializer() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/weighers/smart/NameSimilarityForInitializer.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/weighers/smart/NameSimilarityForInitializer.kt");
}
@TestMetadata("NameSimilarityForReturn.kt")
public void testNameSimilarityForReturn() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/weighers/smart/NameSimilarityForReturn.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/weighers/smart/NameSimilarityForReturn.kt");
}
@TestMetadata("NameSimilarityForThen.kt")
public void testNameSimilarityForThen() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/weighers/smart/NameSimilarityForThen.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/weighers/smart/NameSimilarityForThen.kt");
}
@TestMetadata("NameSimilarityForVararg.kt")
public void testNameSimilarityForVararg() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/weighers/smart/NameSimilarityForVararg.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/weighers/smart/NameSimilarityForVararg.kt");
}
@TestMetadata("NameSimilarityInImplicitlyTypedVarInitializer.kt")
public void testNameSimilarityInImplicitlyTypedVarInitializer() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/weighers/smart/NameSimilarityInImplicitlyTypedVarInitializer.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/weighers/smart/NameSimilarityInImplicitlyTypedVarInitializer.kt");
}
@TestMetadata("NameSimilaritySorterPlacement.kt")
public void testNameSimilaritySorterPlacement() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/weighers/smart/NameSimilaritySorterPlacement.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/weighers/smart/NameSimilaritySorterPlacement.kt");
}
@TestMetadata("NoExpectedType.kt")
public void testNoExpectedType() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/weighers/smart/NoExpectedType.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/weighers/smart/NoExpectedType.kt");
}
@TestMetadata("NoNameSimilarityForQualifier.kt")
public void testNoNameSimilarityForQualifier() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/weighers/smart/NoNameSimilarityForQualifier.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/weighers/smart/NoNameSimilarityForQualifier.kt");
}
@TestMetadata("NullableExpected.kt")
public void testNullableExpected() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/weighers/smart/NullableExpected.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/weighers/smart/NullableExpected.kt");
}
@TestMetadata("ReturnValue1.kt")
public void testReturnValue1() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/weighers/smart/ReturnValue1.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/weighers/smart/ReturnValue1.kt");
}
@TestMetadata("ReturnValue2.kt")
public void testReturnValue2() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/weighers/smart/ReturnValue2.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/weighers/smart/ReturnValue2.kt");
}
@TestMetadata("SmartPriority.kt")
public void testSmartPriority() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/weighers/smart/SmartPriority.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/weighers/smart/SmartPriority.kt");
}
@TestMetadata("SmartPriority2.kt")
public void testSmartPriority2() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/weighers/smart/SmartPriority2.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/weighers/smart/SmartPriority2.kt");
}
@TestMetadata("SmartPriority3.kt")
public void testSmartPriority3() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/weighers/smart/SmartPriority3.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/weighers/smart/SmartPriority3.kt");
}
@TestMetadata("StaticMemberAndPrefix.kt")
public void testStaticMemberAndPrefix() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/weighers/smart/StaticMemberAndPrefix.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/weighers/smart/StaticMemberAndPrefix.kt");
}
@TestMetadata("SuperMembers.kt")
public void testSuperMembers() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/weighers/smart/SuperMembers.kt");
doTest(fileName);
runTest("idea/idea-completion/testData/weighers/smart/SuperMembers.kt");
}
}