/* * Copyright 2010-2014 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.jetbrains.jet.findUsages; import junit.framework.Test; import junit.framework.TestSuite; import org.jetbrains.jet.JetTestUtils; import org.jetbrains.jet.test.InnerTestClasses; import org.jetbrains.jet.test.TestMetadata; import java.io.File; import java.util.regex.Pattern; /** This class is generated by {@link org.jetbrains.jet.generators.tests.TestsPackage}. DO NOT MODIFY MANUALLY */ @SuppressWarnings("all") @InnerTestClasses({JetFindUsagesTestGenerated.Kotlin.class, JetFindUsagesTestGenerated.Java.class}) public class JetFindUsagesTestGenerated extends AbstractJetFindUsagesTest { @TestMetadata("idea/testData/findUsages/kotlin") @InnerTestClasses({Kotlin.Conventions.class, Kotlin.FindClassUsages.class, Kotlin.FindFunctionUsages.class, Kotlin.FindObjectUsages.class, Kotlin.FindPackageUsages.class, Kotlin.FindParameterUsages.class, Kotlin.FindPropertyUsages.class, Kotlin.FindTypeParameterUsages.class, Kotlin.FindWithFilteringImports.class, Kotlin.FindWithStructuralGrouping.class, Kotlin.UnresolvedAnnotation.class}) public static class Kotlin extends AbstractJetFindUsagesTest { public void testAllFilesPresentInKotlin() throws Exception { JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/findUsages/kotlin"), Pattern.compile("^(.+)\\.0\\.kt$"), true); } @TestMetadata("idea/testData/findUsages/kotlin/conventions") public static class Conventions extends AbstractJetFindUsagesTest { public void testAllFilesPresentInConventions() throws Exception { JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/findUsages/kotlin/conventions"), Pattern.compile("^(.+)\\.0\\.kt$"), true); } @TestMetadata("compareTo.0.kt") public void testCompareTo() throws Exception { doTest("idea/testData/findUsages/kotlin/conventions/compareTo.0.kt"); } @TestMetadata("componentFunctions.0.kt") public void testComponentFunctions() throws Exception { doTest("idea/testData/findUsages/kotlin/conventions/componentFunctions.0.kt"); } @TestMetadata("componentFunctionsByRef.0.kt") public void testComponentFunctionsByRef() throws Exception { doTest("idea/testData/findUsages/kotlin/conventions/componentFunctionsByRef.0.kt"); } @TestMetadata("contains.0.kt") public void testContains() throws Exception { doTest("idea/testData/findUsages/kotlin/conventions/contains.0.kt"); } @TestMetadata("equals.0.kt") public void testEquals() throws Exception { doTest("idea/testData/findUsages/kotlin/conventions/equals.0.kt"); } @TestMetadata("forIteration.0.kt") public void testForIteration() throws Exception { doTest("idea/testData/findUsages/kotlin/conventions/forIteration.0.kt"); } @TestMetadata("get.0.kt") public void testGet() throws Exception { doTest("idea/testData/findUsages/kotlin/conventions/get.0.kt"); } @TestMetadata("identityEquals.0.kt") public void testIdentityEquals() throws Exception { doTest("idea/testData/findUsages/kotlin/conventions/identityEquals.0.kt"); } @TestMetadata("inc.0.kt") public void testInc() throws Exception { doTest("idea/testData/findUsages/kotlin/conventions/inc.0.kt"); } @TestMetadata("invoke.0.kt") public void testInvoke() throws Exception { doTest("idea/testData/findUsages/kotlin/conventions/invoke.0.kt"); } @TestMetadata("plus.0.kt") public void testPlus() throws Exception { doTest("idea/testData/findUsages/kotlin/conventions/plus.0.kt"); } @TestMetadata("plusAssign.0.kt") public void testPlusAssign() throws Exception { doTest("idea/testData/findUsages/kotlin/conventions/plusAssign.0.kt"); } @TestMetadata("set.0.kt") public void testSet() throws Exception { doTest("idea/testData/findUsages/kotlin/conventions/set.0.kt"); } @TestMetadata("unaryMinus.0.kt") public void testUnaryMinus() throws Exception { doTest("idea/testData/findUsages/kotlin/conventions/unaryMinus.0.kt"); } } @TestMetadata("idea/testData/findUsages/kotlin/findClassUsages") public static class FindClassUsages extends AbstractJetFindUsagesTest { public void testAllFilesPresentInFindClassUsages() throws Exception { JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/findUsages/kotlin/findClassUsages"), Pattern.compile("^(.+)\\.0\\.kt$"), true); } @TestMetadata("javaClassAllUsages.0.kt") public void testJavaClassAllUsages() throws Exception { doTest("idea/testData/findUsages/kotlin/findClassUsages/javaClassAllUsages.0.kt"); } @TestMetadata("javaClassConstructorUsages.0.kt") public void testJavaClassConstructorUsages() throws Exception { doTest("idea/testData/findUsages/kotlin/findClassUsages/javaClassConstructorUsages.0.kt"); } @TestMetadata("javaClassFunctionUsages1.0.kt") public void testJavaClassFunctionUsages1() throws Exception { doTest("idea/testData/findUsages/kotlin/findClassUsages/javaClassFunctionUsages1.0.kt"); } @TestMetadata("javaClassFunctionUsages2.0.kt") public void testJavaClassFunctionUsages2() throws Exception { doTest("idea/testData/findUsages/kotlin/findClassUsages/javaClassFunctionUsages2.0.kt"); } @TestMetadata("javaClassNonConstructorUsages.0.kt") public void testJavaClassNonConstructorUsages() throws Exception { doTest("idea/testData/findUsages/kotlin/findClassUsages/javaClassNonConstructorUsages.0.kt"); } @TestMetadata("javaClassPropertyUsages1.0.kt") public void testJavaClassPropertyUsages1() throws Exception { doTest("idea/testData/findUsages/kotlin/findClassUsages/javaClassPropertyUsages1.0.kt"); } @TestMetadata("javaClassPropertyUsages2.0.kt") public void testJavaClassPropertyUsages2() throws Exception { doTest("idea/testData/findUsages/kotlin/findClassUsages/javaClassPropertyUsages2.0.kt"); } @TestMetadata("javaDerivedClassUsages1.0.kt") public void testJavaDerivedClassUsages1() throws Exception { doTest("idea/testData/findUsages/kotlin/findClassUsages/javaDerivedClassUsages1.0.kt"); } @TestMetadata("javaDerivedClassUsages2.0.kt") public void testJavaDerivedClassUsages2() throws Exception { doTest("idea/testData/findUsages/kotlin/findClassUsages/javaDerivedClassUsages2.0.kt"); } @TestMetadata("javaDerivedInterfaceUsages1.0.kt") public void testJavaDerivedInterfaceUsages1() throws Exception { doTest("idea/testData/findUsages/kotlin/findClassUsages/javaDerivedInterfaceUsages1.0.kt"); } @TestMetadata("javaDerivedInterfaceUsages2.0.kt") public void testJavaDerivedInterfaceUsages2() throws Exception { doTest("idea/testData/findUsages/kotlin/findClassUsages/javaDerivedInterfaceUsages2.0.kt"); } @TestMetadata("kotlinClassAllUsages.0.kt") public void testKotlinClassAllUsages() throws Exception { doTest("idea/testData/findUsages/kotlin/findClassUsages/kotlinClassAllUsages.0.kt"); } @TestMetadata("kotlinClassAllUsages2.0.kt") public void testKotlinClassAllUsages2() throws Exception { doTest("idea/testData/findUsages/kotlin/findClassUsages/kotlinClassAllUsages2.0.kt"); } @TestMetadata("kotlinClassAllUsages3.0.kt") public void testKotlinClassAllUsages3() throws Exception { doTest("idea/testData/findUsages/kotlin/findClassUsages/kotlinClassAllUsages3.0.kt"); } @TestMetadata("kotlinClassAllUsagesNoImport.0.kt") public void testKotlinClassAllUsagesNoImport() throws Exception { doTest("idea/testData/findUsages/kotlin/findClassUsages/kotlinClassAllUsagesNoImport.0.kt"); } @TestMetadata("kotlinClassConstructorUsages.0.kt") public void testKotlinClassConstructorUsages() throws Exception { doTest("idea/testData/findUsages/kotlin/findClassUsages/kotlinClassConstructorUsages.0.kt"); } @TestMetadata("kotlinClassDerivedAnonymousObjects.0.kt") public void testKotlinClassDerivedAnonymousObjects() throws Exception { doTest("idea/testData/findUsages/kotlin/findClassUsages/kotlinClassDerivedAnonymousObjects.0.kt"); } @TestMetadata("kotlinClassDerivedClasses.0.kt") public void testKotlinClassDerivedClasses() throws Exception { doTest("idea/testData/findUsages/kotlin/findClassUsages/kotlinClassDerivedClasses.0.kt"); } @TestMetadata("kotlinClassDerivedInnerClasses.0.kt") public void testKotlinClassDerivedInnerClasses() throws Exception { doTest("idea/testData/findUsages/kotlin/findClassUsages/kotlinClassDerivedInnerClasses.0.kt"); } @TestMetadata("kotlinClassDerivedInnerObjects.0.kt") public void testKotlinClassDerivedInnerObjects() throws Exception { doTest("idea/testData/findUsages/kotlin/findClassUsages/kotlinClassDerivedInnerObjects.0.kt"); } @TestMetadata("kotlinClassDerivedLocalClasses.0.kt") public void testKotlinClassDerivedLocalClasses() throws Exception { doTest("idea/testData/findUsages/kotlin/findClassUsages/kotlinClassDerivedLocalClasses.0.kt"); } @TestMetadata("kotlinClassDerivedLocalObjects.0.kt") public void testKotlinClassDerivedLocalObjects() throws Exception { doTest("idea/testData/findUsages/kotlin/findClassUsages/kotlinClassDerivedLocalObjects.0.kt"); } @TestMetadata("kotlinClassDerivedLocalTraits.0.kt") public void testKotlinClassDerivedLocalTraits() throws Exception { doTest("idea/testData/findUsages/kotlin/findClassUsages/kotlinClassDerivedLocalTraits.0.kt"); } @TestMetadata("kotlinClassDerivedObjects.0.kt") public void testKotlinClassDerivedObjects() throws Exception { doTest("idea/testData/findUsages/kotlin/findClassUsages/kotlinClassDerivedObjects.0.kt"); } @TestMetadata("kotlinClassDerivedTraits.0.kt") public void testKotlinClassDerivedTraits() throws Exception { doTest("idea/testData/findUsages/kotlin/findClassUsages/kotlinClassDerivedTraits.0.kt"); } @TestMetadata("kotlinClassFunctionUsages1.0.kt") public void testKotlinClassFunctionUsages1() throws Exception { doTest("idea/testData/findUsages/kotlin/findClassUsages/kotlinClassFunctionUsages1.0.kt"); } @TestMetadata("kotlinClassFunctionUsages2.0.kt") public void testKotlinClassFunctionUsages2() throws Exception { doTest("idea/testData/findUsages/kotlin/findClassUsages/kotlinClassFunctionUsages2.0.kt"); } @TestMetadata("kotlinClassNonConstructorUsages.0.kt") public void testKotlinClassNonConstructorUsages() throws Exception { doTest("idea/testData/findUsages/kotlin/findClassUsages/kotlinClassNonConstructorUsages.0.kt"); } @TestMetadata("kotlinClassPropertyUsages1.0.kt") public void testKotlinClassPropertyUsages1() throws Exception { doTest("idea/testData/findUsages/kotlin/findClassUsages/kotlinClassPropertyUsages1.0.kt"); } @TestMetadata("kotlinClassPropertyUsages2.0.kt") public void testKotlinClassPropertyUsages2() throws Exception { doTest("idea/testData/findUsages/kotlin/findClassUsages/kotlinClassPropertyUsages2.0.kt"); } @TestMetadata("kotlinInnerClassAllUsages.0.kt") public void testKotlinInnerClassAllUsages() throws Exception { doTest("idea/testData/findUsages/kotlin/findClassUsages/kotlinInnerClassAllUsages.0.kt"); } @TestMetadata("kotlinLocalClassDerivedAnonymousObjects.0.kt") public void testKotlinLocalClassDerivedAnonymousObjects() throws Exception { doTest("idea/testData/findUsages/kotlin/findClassUsages/kotlinLocalClassDerivedAnonymousObjects.0.kt"); } @TestMetadata("kotlinLocalClassDerivedLocalClasses.0.kt") public void testKotlinLocalClassDerivedLocalClasses() throws Exception { doTest("idea/testData/findUsages/kotlin/findClassUsages/kotlinLocalClassDerivedLocalClasses.0.kt"); } @TestMetadata("kotlinLocalClassDerivedLocalObjects.0.kt") public void testKotlinLocalClassDerivedLocalObjects() throws Exception { doTest("idea/testData/findUsages/kotlin/findClassUsages/kotlinLocalClassDerivedLocalObjects.0.kt"); } @TestMetadata("kotlinLocalClassDerivedLocalTraits.0.kt") public void testKotlinLocalClassDerivedLocalTraits() throws Exception { doTest("idea/testData/findUsages/kotlin/findClassUsages/kotlinLocalClassDerivedLocalTraits.0.kt"); } @TestMetadata("kotlinLocalClassUsages1.0.kt") public void testKotlinLocalClassUsages1() throws Exception { doTest("idea/testData/findUsages/kotlin/findClassUsages/kotlinLocalClassUsages1.0.kt"); } @TestMetadata("kotlinLocalClassUsages2.0.kt") public void testKotlinLocalClassUsages2() throws Exception { doTest("idea/testData/findUsages/kotlin/findClassUsages/kotlinLocalClassUsages2.0.kt"); } @TestMetadata("kotlinNestedClassAllUsages.0.kt") public void testKotlinNestedClassAllUsages() throws Exception { doTest("idea/testData/findUsages/kotlin/findClassUsages/kotlinNestedClassAllUsages.0.kt"); } @TestMetadata("kotlinPrivateClassUsages.0.kt") public void testKotlinPrivateClassUsages() throws Exception { doTest("idea/testData/findUsages/kotlin/findClassUsages/kotlinPrivateClassUsages.0.kt"); } @TestMetadata("kotlinTraitDerivedAnonymousObjects.0.kt") public void testKotlinTraitDerivedAnonymousObjects() throws Exception { doTest("idea/testData/findUsages/kotlin/findClassUsages/kotlinTraitDerivedAnonymousObjects.0.kt"); } @TestMetadata("kotlinTraitDerivedClasses.0.kt") public void testKotlinTraitDerivedClasses() throws Exception { doTest("idea/testData/findUsages/kotlin/findClassUsages/kotlinTraitDerivedClasses.0.kt"); } @TestMetadata("kotlinTraitDerivedInnerClasses.0.kt") public void testKotlinTraitDerivedInnerClasses() throws Exception { doTest("idea/testData/findUsages/kotlin/findClassUsages/kotlinTraitDerivedInnerClasses.0.kt"); } @TestMetadata("kotlinTraitDerivedInnerObjects.0.kt") public void testKotlinTraitDerivedInnerObjects() throws Exception { doTest("idea/testData/findUsages/kotlin/findClassUsages/kotlinTraitDerivedInnerObjects.0.kt"); } @TestMetadata("kotlinTraitDerivedLocalClasses.0.kt") public void testKotlinTraitDerivedLocalClasses() throws Exception { doTest("idea/testData/findUsages/kotlin/findClassUsages/kotlinTraitDerivedLocalClasses.0.kt"); } @TestMetadata("kotlinTraitDerivedLocalObjects.0.kt") public void testKotlinTraitDerivedLocalObjects() throws Exception { doTest("idea/testData/findUsages/kotlin/findClassUsages/kotlinTraitDerivedLocalObjects.0.kt"); } @TestMetadata("kotlinTraitDerivedLocalTraits.0.kt") public void testKotlinTraitDerivedLocalTraits() throws Exception { doTest("idea/testData/findUsages/kotlin/findClassUsages/kotlinTraitDerivedLocalTraits.0.kt"); } @TestMetadata("kotlinTraitDerivedObjects.0.kt") public void testKotlinTraitDerivedObjects() throws Exception { doTest("idea/testData/findUsages/kotlin/findClassUsages/kotlinTraitDerivedObjects.0.kt"); } @TestMetadata("kotlinTraitDerivedTraits.0.kt") public void testKotlinTraitDerivedTraits() throws Exception { doTest("idea/testData/findUsages/kotlin/findClassUsages/kotlinTraitDerivedTraits.0.kt"); } } @TestMetadata("idea/testData/findUsages/kotlin/findFunctionUsages") public static class FindFunctionUsages extends AbstractJetFindUsagesTest { public void testAllFilesPresentInFindFunctionUsages() throws Exception { JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/findUsages/kotlin/findFunctionUsages"), Pattern.compile("^(.+)\\.0\\.kt$"), true); } @TestMetadata("javaAndKotlinOverrides.0.kt") public void testJavaAndKotlinOverrides() throws Exception { doTest("idea/testData/findUsages/kotlin/findFunctionUsages/javaAndKotlinOverrides.0.kt"); } @TestMetadata("javaMethodUsages.0.kt") public void testJavaMethodUsages() throws Exception { doTest("idea/testData/findUsages/kotlin/findFunctionUsages/javaMethodUsages.0.kt"); } @TestMetadata("kotlinLocalMethodUsages1.0.kt") public void testKotlinLocalMethodUsages1() throws Exception { doTest("idea/testData/findUsages/kotlin/findFunctionUsages/kotlinLocalMethodUsages1.0.kt"); } @TestMetadata("kotlinLocalMethodUsages2.0.kt") public void testKotlinLocalMethodUsages2() throws Exception { doTest("idea/testData/findUsages/kotlin/findFunctionUsages/kotlinLocalMethodUsages2.0.kt"); } @TestMetadata("kotlinMethodUsages.0.kt") public void testKotlinMethodUsages() throws Exception { doTest("idea/testData/findUsages/kotlin/findFunctionUsages/kotlinMethodUsages.0.kt"); } @TestMetadata("kotlinOverloadAndExtensionUsages.0.kt") public void testKotlinOverloadAndExtensionUsages() throws Exception { doTest("idea/testData/findUsages/kotlin/findFunctionUsages/kotlinOverloadAndExtensionUsages.0.kt"); } @TestMetadata("kotlinOverloadAndExtensionUsages2.0.kt") public void testKotlinOverloadAndExtensionUsages2() throws Exception { doTest("idea/testData/findUsages/kotlin/findFunctionUsages/kotlinOverloadAndExtensionUsages2.0.kt"); } @TestMetadata("kotlinPrivateMethodUsages.0.kt") public void testKotlinPrivateMethodUsages() throws Exception { doTest("idea/testData/findUsages/kotlin/findFunctionUsages/kotlinPrivateMethodUsages.0.kt"); } @TestMetadata("kotlinTopLevelMethodUsages.0.kt") public void testKotlinTopLevelMethodUsages() throws Exception { doTest("idea/testData/findUsages/kotlin/findFunctionUsages/kotlinTopLevelMethodUsages.0.kt"); } @TestMetadata("kotlinTopLevelMethodUsagesNoImport.0.kt") public void testKotlinTopLevelMethodUsagesNoImport() throws Exception { doTest("idea/testData/findUsages/kotlin/findFunctionUsages/kotlinTopLevelMethodUsagesNoImport.0.kt"); } @TestMetadata("usagesOfBaseForFunction.0.kt") public void testUsagesOfBaseForFunction() throws Exception { doTest("idea/testData/findUsages/kotlin/findFunctionUsages/usagesOfBaseForFunction.0.kt"); } } @TestMetadata("idea/testData/findUsages/kotlin/findObjectUsages") public static class FindObjectUsages extends AbstractJetFindUsagesTest { public void testAllFilesPresentInFindObjectUsages() throws Exception { JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/findUsages/kotlin/findObjectUsages"), Pattern.compile("^(.+)\\.0\\.kt$"), true); } @TestMetadata("javaObjectUsages.0.kt") public void testJavaObjectUsages() throws Exception { doTest("idea/testData/findUsages/kotlin/findObjectUsages/javaObjectUsages.0.kt"); } @TestMetadata("kotlinLocalObjectUsages1.0.kt") public void testKotlinLocalObjectUsages1() throws Exception { doTest("idea/testData/findUsages/kotlin/findObjectUsages/kotlinLocalObjectUsages1.0.kt"); } @TestMetadata("kotlinLocalObjectUsages2.0.kt") public void testKotlinLocalObjectUsages2() throws Exception { doTest("idea/testData/findUsages/kotlin/findObjectUsages/kotlinLocalObjectUsages2.0.kt"); } @TestMetadata("kotlinNestedObjectUsages.0.kt") public void testKotlinNestedObjectUsages() throws Exception { doTest("idea/testData/findUsages/kotlin/findObjectUsages/kotlinNestedObjectUsages.0.kt"); } @TestMetadata("kotlinObjectUsages.0.kt") public void testKotlinObjectUsages() throws Exception { doTest("idea/testData/findUsages/kotlin/findObjectUsages/kotlinObjectUsages.0.kt"); } @TestMetadata("kotlinPrivateObjectUsages.0.kt") public void testKotlinPrivateObjectUsages() throws Exception { doTest("idea/testData/findUsages/kotlin/findObjectUsages/kotlinPrivateObjectUsages.0.kt"); } } @TestMetadata("idea/testData/findUsages/kotlin/findPackageUsages") public static class FindPackageUsages extends AbstractJetFindUsagesTest { public void testAllFilesPresentInFindPackageUsages() throws Exception { JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/findUsages/kotlin/findPackageUsages"), Pattern.compile("^(.+)\\.0\\.kt$"), true); } @TestMetadata("kotlinPackageUsages.0.kt") public void testKotlinPackageUsages() throws Exception { doTest("idea/testData/findUsages/kotlin/findPackageUsages/kotlinPackageUsages.0.kt"); } } @TestMetadata("idea/testData/findUsages/kotlin/findParameterUsages") public static class FindParameterUsages extends AbstractJetFindUsagesTest { public void testAllFilesPresentInFindParameterUsages() throws Exception { JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/findUsages/kotlin/findParameterUsages"), Pattern.compile("^(.+)\\.0\\.kt$"), true); } @TestMetadata("kotlinConstructorParameterUsages.0.kt") public void testKotlinConstructorParameterUsages() throws Exception { doTest("idea/testData/findUsages/kotlin/findParameterUsages/kotlinConstructorParameterUsages.0.kt"); } @TestMetadata("kotlinFunctionParameterUsages.0.kt") public void testKotlinFunctionParameterUsages() throws Exception { doTest("idea/testData/findUsages/kotlin/findParameterUsages/kotlinFunctionParameterUsages.0.kt"); } } @TestMetadata("idea/testData/findUsages/kotlin/findPropertyUsages") public static class FindPropertyUsages extends AbstractJetFindUsagesTest { public void testAllFilesPresentInFindPropertyUsages() throws Exception { JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/findUsages/kotlin/findPropertyUsages"), Pattern.compile("^(.+)\\.0\\.kt$"), true); } @TestMetadata("javaAndKotlinOverrides.0.kt") public void testJavaAndKotlinOverrides() throws Exception { doTest("idea/testData/findUsages/kotlin/findPropertyUsages/javaAndKotlinOverrides.0.kt"); } @TestMetadata("javaAndKotlinOverrides2.0.kt") public void testJavaAndKotlinOverrides2() throws Exception { doTest("idea/testData/findUsages/kotlin/findPropertyUsages/javaAndKotlinOverrides2.0.kt"); } @TestMetadata("javaClassObjectPropertyUsages.0.kt") public void testJavaClassObjectPropertyUsages() throws Exception { doTest("idea/testData/findUsages/kotlin/findPropertyUsages/javaClassObjectPropertyUsages.0.kt"); } @TestMetadata("javaPropertyReadUsages.0.kt") public void testJavaPropertyReadUsages() throws Exception { doTest("idea/testData/findUsages/kotlin/findPropertyUsages/javaPropertyReadUsages.0.kt"); } @TestMetadata("javaPropertyReadUsages2.0.kt") public void testJavaPropertyReadUsages2() throws Exception { doTest("idea/testData/findUsages/kotlin/findPropertyUsages/javaPropertyReadUsages2.0.kt"); } @TestMetadata("javaPropertyUsages.0.kt") public void testJavaPropertyUsages() throws Exception { doTest("idea/testData/findUsages/kotlin/findPropertyUsages/javaPropertyUsages.0.kt"); } @TestMetadata("javaPropertyUsages2.0.kt") public void testJavaPropertyUsages2() throws Exception { doTest("idea/testData/findUsages/kotlin/findPropertyUsages/javaPropertyUsages2.0.kt"); } @TestMetadata("javaPropertyWriteUsages.0.kt") public void testJavaPropertyWriteUsages() throws Exception { doTest("idea/testData/findUsages/kotlin/findPropertyUsages/javaPropertyWriteUsages.0.kt"); } @TestMetadata("javaPropertyWriteUsages2.0.kt") public void testJavaPropertyWriteUsages2() throws Exception { doTest("idea/testData/findUsages/kotlin/findPropertyUsages/javaPropertyWriteUsages2.0.kt"); } @TestMetadata("kotlinLocalPropertyUsages1.0.kt") public void testKotlinLocalPropertyUsages1() throws Exception { doTest("idea/testData/findUsages/kotlin/findPropertyUsages/kotlinLocalPropertyUsages1.0.kt"); } @TestMetadata("kotlinLocalPropertyUsages2.0.kt") public void testKotlinLocalPropertyUsages2() throws Exception { doTest("idea/testData/findUsages/kotlin/findPropertyUsages/kotlinLocalPropertyUsages2.0.kt"); } @TestMetadata("kotlinPrivatePropertyUsages.0.kt") public void testKotlinPrivatePropertyUsages() throws Exception { doTest("idea/testData/findUsages/kotlin/findPropertyUsages/kotlinPrivatePropertyUsages.0.kt"); } @TestMetadata("kotlinPrivatePropertyUsages2.0.kt") public void testKotlinPrivatePropertyUsages2() throws Exception { doTest("idea/testData/findUsages/kotlin/findPropertyUsages/kotlinPrivatePropertyUsages2.0.kt"); } @TestMetadata("kotlinPropertyReadUsages.0.kt") public void testKotlinPropertyReadUsages() throws Exception { doTest("idea/testData/findUsages/kotlin/findPropertyUsages/kotlinPropertyReadUsages.0.kt"); } @TestMetadata("kotlinPropertyReadUsages2.0.kt") public void testKotlinPropertyReadUsages2() throws Exception { doTest("idea/testData/findUsages/kotlin/findPropertyUsages/kotlinPropertyReadUsages2.0.kt"); } @TestMetadata("kotlinPropertyUsages.0.kt") public void testKotlinPropertyUsages() throws Exception { doTest("idea/testData/findUsages/kotlin/findPropertyUsages/kotlinPropertyUsages.0.kt"); } @TestMetadata("kotlinPropertyUsages2.0.kt") public void testKotlinPropertyUsages2() throws Exception { doTest("idea/testData/findUsages/kotlin/findPropertyUsages/kotlinPropertyUsages2.0.kt"); } @TestMetadata("kotlinPropertyWriteUsages.0.kt") public void testKotlinPropertyWriteUsages() throws Exception { doTest("idea/testData/findUsages/kotlin/findPropertyUsages/kotlinPropertyWriteUsages.0.kt"); } @TestMetadata("kotlinPropertyWriteUsages2.0.kt") public void testKotlinPropertyWriteUsages2() throws Exception { doTest("idea/testData/findUsages/kotlin/findPropertyUsages/kotlinPropertyWriteUsages2.0.kt"); } @TestMetadata("kotlinTopLevelPropertyUsages.0.kt") public void testKotlinTopLevelPropertyUsages() throws Exception { doTest("idea/testData/findUsages/kotlin/findPropertyUsages/kotlinTopLevelPropertyUsages.0.kt"); } } @TestMetadata("idea/testData/findUsages/kotlin/findTypeParameterUsages") public static class FindTypeParameterUsages extends AbstractJetFindUsagesTest { public void testAllFilesPresentInFindTypeParameterUsages() throws Exception { JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/findUsages/kotlin/findTypeParameterUsages"), Pattern.compile("^(.+)\\.0\\.kt$"), true); } @TestMetadata("kotlinClassTypeParameterUsages.0.kt") public void testKotlinClassTypeParameterUsages() throws Exception { doTest("idea/testData/findUsages/kotlin/findTypeParameterUsages/kotlinClassTypeParameterUsages.0.kt"); } @TestMetadata("kotlinFunctionTypeParameterUsages.0.kt") public void testKotlinFunctionTypeParameterUsages() throws Exception { doTest("idea/testData/findUsages/kotlin/findTypeParameterUsages/kotlinFunctionTypeParameterUsages.0.kt"); } } @TestMetadata("idea/testData/findUsages/kotlin/findWithFilteringImports") public static class FindWithFilteringImports extends AbstractJetFindUsagesTest { public void testAllFilesPresentInFindWithFilteringImports() throws Exception { JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/findUsages/kotlin/findWithFilteringImports"), Pattern.compile("^(.+)\\.0\\.kt$"), true); } @TestMetadata("findWithFilteringImports.0.kt") public void testFindWithFilteringImports() throws Exception { doTest("idea/testData/findUsages/kotlin/findWithFilteringImports/findWithFilteringImports.0.kt"); } } @TestMetadata("idea/testData/findUsages/kotlin/findWithStructuralGrouping") public static class FindWithStructuralGrouping extends AbstractJetFindUsagesTest { public void testAllFilesPresentInFindWithStructuralGrouping() throws Exception { JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/findUsages/kotlin/findWithStructuralGrouping"), Pattern.compile("^(.+)\\.0\\.kt$"), true); } @TestMetadata("kotlinClassAllUsages.0.kt") public void testKotlinClassAllUsages() throws Exception { doTest("idea/testData/findUsages/kotlin/findWithStructuralGrouping/kotlinClassAllUsages.0.kt"); } @TestMetadata("kotlinMethodUsages.0.kt") public void testKotlinMethodUsages() throws Exception { doTest("idea/testData/findUsages/kotlin/findWithStructuralGrouping/kotlinMethodUsages.0.kt"); } @TestMetadata("kotlinPropertyUsages.0.kt") public void testKotlinPropertyUsages() throws Exception { doTest("idea/testData/findUsages/kotlin/findWithStructuralGrouping/kotlinPropertyUsages.0.kt"); } } @TestMetadata("idea/testData/findUsages/kotlin/unresolvedAnnotation") public static class UnresolvedAnnotation extends AbstractJetFindUsagesTest { public void testAllFilesPresentInUnresolvedAnnotation() throws Exception { JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/findUsages/kotlin/unresolvedAnnotation"), Pattern.compile("^(.+)\\.0\\.kt$"), true); } @TestMetadata("unresolvedAnnotation.0.kt") public void testUnresolvedAnnotation() throws Exception { doTest("idea/testData/findUsages/kotlin/unresolvedAnnotation/unresolvedAnnotation.0.kt"); } } public static Test innerSuite() { TestSuite suite = new TestSuite("Kotlin"); suite.addTestSuite(Kotlin.class); suite.addTestSuite(Conventions.class); suite.addTestSuite(FindClassUsages.class); suite.addTestSuite(FindFunctionUsages.class); suite.addTestSuite(FindObjectUsages.class); suite.addTestSuite(FindPackageUsages.class); suite.addTestSuite(FindParameterUsages.class); suite.addTestSuite(FindPropertyUsages.class); suite.addTestSuite(FindTypeParameterUsages.class); suite.addTestSuite(FindWithFilteringImports.class); suite.addTestSuite(FindWithStructuralGrouping.class); suite.addTestSuite(UnresolvedAnnotation.class); return suite; } } @TestMetadata("idea/testData/findUsages/java") @InnerTestClasses({Java.FindJavaClassUsages.class, Java.FindJavaFieldUsages.class, Java.FindJavaMethodUsages.class}) public static class Java extends AbstractJetFindUsagesTest { public void testAllFilesPresentInJava() throws Exception { JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/findUsages/java"), Pattern.compile("^(.+)\\.0\\.java$"), true); } @TestMetadata("idea/testData/findUsages/java/findJavaClassUsages") public static class FindJavaClassUsages extends AbstractJetFindUsagesTest { public void testAllFilesPresentInFindJavaClassUsages() throws Exception { JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/findUsages/java/findJavaClassUsages"), Pattern.compile("^(.+)\\.0\\.java$"), true); } @TestMetadata("JKClassAllUsages.0.java") public void testJKClassAllUsages() throws Exception { doTest("idea/testData/findUsages/java/findJavaClassUsages/JKClassAllUsages.0.java"); } @TestMetadata("JKClassDerivedAnonymousObjects.0.java") public void testJKClassDerivedAnonymousObjects() throws Exception { doTest("idea/testData/findUsages/java/findJavaClassUsages/JKClassDerivedAnonymousObjects.0.java"); } @TestMetadata("JKClassDerivedClasses.0.java") public void testJKClassDerivedClasses() throws Exception { doTest("idea/testData/findUsages/java/findJavaClassUsages/JKClassDerivedClasses.0.java"); } @TestMetadata("JKClassDerivedInnerClasses.0.java") public void testJKClassDerivedInnerClasses() throws Exception { doTest("idea/testData/findUsages/java/findJavaClassUsages/JKClassDerivedInnerClasses.0.java"); } @TestMetadata("JKClassDerivedInnerObjects.0.java") public void testJKClassDerivedInnerObjects() throws Exception { doTest("idea/testData/findUsages/java/findJavaClassUsages/JKClassDerivedInnerObjects.0.java"); } @TestMetadata("JKClassDerivedLocalClasses.0.java") public void testJKClassDerivedLocalClasses() throws Exception { doTest("idea/testData/findUsages/java/findJavaClassUsages/JKClassDerivedLocalClasses.0.java"); } @TestMetadata("JKClassDerivedLocalObjects.0.java") public void testJKClassDerivedLocalObjects() throws Exception { doTest("idea/testData/findUsages/java/findJavaClassUsages/JKClassDerivedLocalObjects.0.java"); } @TestMetadata("JKClassDerivedObjects.0.java") public void testJKClassDerivedObjects() throws Exception { doTest("idea/testData/findUsages/java/findJavaClassUsages/JKClassDerivedObjects.0.java"); } @TestMetadata("JKClassFieldsUsages.0.java") public void testJKClassFieldsUsages() throws Exception { doTest("idea/testData/findUsages/java/findJavaClassUsages/JKClassFieldsUsages.0.java"); } @TestMetadata("JKClassMethodsUsages.0.java") public void testJKClassMethodsUsages() throws Exception { doTest("idea/testData/findUsages/java/findJavaClassUsages/JKClassMethodsUsages.0.java"); } @TestMetadata("JKClassWithImplicitConstructorAllUsages.0.java") public void testJKClassWithImplicitConstructorAllUsages() throws Exception { doTest("idea/testData/findUsages/java/findJavaClassUsages/JKClassWithImplicitConstructorAllUsages.0.java"); } @TestMetadata("JKDerivedInterfaces.0.java") public void testJKDerivedInterfaces() throws Exception { doTest("idea/testData/findUsages/java/findJavaClassUsages/JKDerivedInterfaces.0.java"); } @TestMetadata("JKInnerClassAllUsages.0.java") public void testJKInnerClassAllUsages() throws Exception { doTest("idea/testData/findUsages/java/findJavaClassUsages/JKInnerClassAllUsages.0.java"); } @TestMetadata("JKInterfaceDerivedAnonymousObjects.0.java") public void testJKInterfaceDerivedAnonymousObjects() throws Exception { doTest("idea/testData/findUsages/java/findJavaClassUsages/JKInterfaceDerivedAnonymousObjects.0.java"); } @TestMetadata("JKInterfaceDerivedClasses.0.java") public void testJKInterfaceDerivedClasses() throws Exception { doTest("idea/testData/findUsages/java/findJavaClassUsages/JKInterfaceDerivedClasses.0.java"); } @TestMetadata("JKInterfaceDerivedInnerClasses.0.java") public void testJKInterfaceDerivedInnerClasses() throws Exception { doTest("idea/testData/findUsages/java/findJavaClassUsages/JKInterfaceDerivedInnerClasses.0.java"); } @TestMetadata("JKInterfaceDerivedInnerObjects.0.java") public void testJKInterfaceDerivedInnerObjects() throws Exception { doTest("idea/testData/findUsages/java/findJavaClassUsages/JKInterfaceDerivedInnerObjects.0.java"); } @TestMetadata("JKInterfaceDerivedLocalClasses.0.java") public void testJKInterfaceDerivedLocalClasses() throws Exception { doTest("idea/testData/findUsages/java/findJavaClassUsages/JKInterfaceDerivedLocalClasses.0.java"); } @TestMetadata("JKInterfaceDerivedLocalObjects.0.java") public void testJKInterfaceDerivedLocalObjects() throws Exception { doTest("idea/testData/findUsages/java/findJavaClassUsages/JKInterfaceDerivedLocalObjects.0.java"); } @TestMetadata("JKInterfaceDerivedLocalTraits.0.java") public void testJKInterfaceDerivedLocalTraits() throws Exception { doTest("idea/testData/findUsages/java/findJavaClassUsages/JKInterfaceDerivedLocalTraits.0.java"); } @TestMetadata("JKInterfaceDerivedObjects.0.java") public void testJKInterfaceDerivedObjects() throws Exception { doTest("idea/testData/findUsages/java/findJavaClassUsages/JKInterfaceDerivedObjects.0.java"); } @TestMetadata("JKNestedClassAllUsages.0.java") public void testJKNestedClassAllUsages() throws Exception { doTest("idea/testData/findUsages/java/findJavaClassUsages/JKNestedClassAllUsages.0.java"); } } @TestMetadata("idea/testData/findUsages/java/findJavaFieldUsages") public static class FindJavaFieldUsages extends AbstractJetFindUsagesTest { public void testAllFilesPresentInFindJavaFieldUsages() throws Exception { JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/findUsages/java/findJavaFieldUsages"), Pattern.compile("^(.+)\\.0\\.java$"), true); } @TestMetadata("JKFieldUsages.0.java") public void testJKFieldUsages() throws Exception { doTest("idea/testData/findUsages/java/findJavaFieldUsages/JKFieldUsages.0.java"); } } @TestMetadata("idea/testData/findUsages/java/findJavaMethodUsages") public static class FindJavaMethodUsages extends AbstractJetFindUsagesTest { public void testAllFilesPresentInFindJavaMethodUsages() throws Exception { JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/findUsages/java/findJavaMethodUsages"), Pattern.compile("^(.+)\\.0\\.java$"), true); } @TestMetadata("JKMethodOverrides.0.java") public void testJKMethodOverrides() throws Exception { doTest("idea/testData/findUsages/java/findJavaMethodUsages/JKMethodOverrides.0.java"); } @TestMetadata("JKMethodUsages.0.java") public void testJKMethodUsages() throws Exception { doTest("idea/testData/findUsages/java/findJavaMethodUsages/JKMethodUsages.0.java"); } } public static Test innerSuite() { TestSuite suite = new TestSuite("Java"); suite.addTestSuite(Java.class); suite.addTestSuite(FindJavaClassUsages.class); suite.addTestSuite(FindJavaFieldUsages.class); suite.addTestSuite(FindJavaMethodUsages.class); return suite; } } public static Test suite() { TestSuite suite = new TestSuite("JetFindUsagesTestGenerated"); suite.addTest(Kotlin.innerSuite()); suite.addTest(Java.innerSuite()); return suite; } }