579 lines
31 KiB
Java
579 lines
31 KiB
Java
/*
|
|
* Copyright 2010-2013 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.Assert;
|
|
import junit.framework.Test;
|
|
import junit.framework.TestSuite;
|
|
|
|
import java.io.File;
|
|
import java.util.regex.Pattern;
|
|
import org.jetbrains.jet.JetTestUtils;
|
|
import org.jetbrains.jet.test.InnerTestClasses;
|
|
import org.jetbrains.jet.test.TestMetadata;
|
|
|
|
import org.jetbrains.jet.findUsages.AbstractJetFindUsagesTest;
|
|
|
|
/** This class is generated by {@link org.jetbrains.jet.generators.tests.GenerateTests}. 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.FindClassUsages.class, Kotlin.FindFunctionUsages.class, Kotlin.FindObjectUsages.class, Kotlin.FindParameterUsages.class, Kotlin.FindPropertyUsages.class, Kotlin.FindTypeParameterUsages.class, Kotlin.FindWithFilteringImports.class, Kotlin.UnresolvedAnnotation.class})
|
|
public static class Kotlin extends AbstractJetFindUsagesTest {
|
|
public void testAllFilesPresentInKotlin() throws Exception {
|
|
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.generators.tests.GenerateTests", new File("idea/testData/findUsages/kotlin"), Pattern.compile("^(.+)\\.0\\.kt$"), true);
|
|
}
|
|
|
|
@TestMetadata("idea/testData/findUsages/kotlin/findClassUsages")
|
|
public static class FindClassUsages extends AbstractJetFindUsagesTest {
|
|
public void testAllFilesPresentInFindClassUsages() throws Exception {
|
|
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.generators.tests.GenerateTests", 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("kotlinClassDerivedClasses.0.kt")
|
|
public void testKotlinClassDerivedClasses() throws Exception {
|
|
doTest("idea/testData/findUsages/kotlin/findClassUsages/kotlinClassDerivedClasses.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("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("kotlinTraitDerivedClasses.0.kt")
|
|
public void testKotlinTraitDerivedClasses() throws Exception {
|
|
doTest("idea/testData/findUsages/kotlin/findClassUsages/kotlinTraitDerivedClasses.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(), "org.jetbrains.jet.generators.tests.GenerateTests", 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("idea/testData/findUsages/kotlin/findObjectUsages")
|
|
public static class FindObjectUsages extends AbstractJetFindUsagesTest {
|
|
public void testAllFilesPresentInFindObjectUsages() throws Exception {
|
|
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.generators.tests.GenerateTests", 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/findParameterUsages")
|
|
public static class FindParameterUsages extends AbstractJetFindUsagesTest {
|
|
public void testAllFilesPresentInFindParameterUsages() throws Exception {
|
|
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.generators.tests.GenerateTests", 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(), "org.jetbrains.jet.generators.tests.GenerateTests", 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("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(), "org.jetbrains.jet.generators.tests.GenerateTests", 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(), "org.jetbrains.jet.generators.tests.GenerateTests", 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/unresolvedAnnotation")
|
|
public static class UnresolvedAnnotation extends AbstractJetFindUsagesTest {
|
|
public void testAllFilesPresentInUnresolvedAnnotation() throws Exception {
|
|
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.generators.tests.GenerateTests", 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(FindClassUsages.class);
|
|
suite.addTestSuite(FindFunctionUsages.class);
|
|
suite.addTestSuite(FindObjectUsages.class);
|
|
suite.addTestSuite(FindParameterUsages.class);
|
|
suite.addTestSuite(FindPropertyUsages.class);
|
|
suite.addTestSuite(FindTypeParameterUsages.class);
|
|
suite.addTestSuite(FindWithFilteringImports.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(), "org.jetbrains.jet.generators.tests.GenerateTests", 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(), "org.jetbrains.jet.generators.tests.GenerateTests", 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("JKClassDerivedClasses.0.java")
|
|
public void testJKClassDerivedClasses() throws Exception {
|
|
doTest("idea/testData/findUsages/java/findJavaClassUsages/JKClassDerivedClasses.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("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("JKInterfaceDerivedClasses.0.java")
|
|
public void testJKInterfaceDerivedClasses() throws Exception {
|
|
doTest("idea/testData/findUsages/java/findJavaClassUsages/JKInterfaceDerivedClasses.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(), "org.jetbrains.jet.generators.tests.GenerateTests", 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(), "org.jetbrains.jet.generators.tests.GenerateTests", 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;
|
|
}
|
|
}
|