181: KotlinFinalClassOrFunSpringInspection dropped

This commit is contained in:
Nicolay Mitropolsky
2018-02-19 18:06:58 +03:00
committed by Nikolay Krasko
parent 4d65147373
commit 5951fbb390
29 changed files with 780 additions and 7 deletions
@@ -5,13 +5,6 @@
<codeInsight.lineMarkerProvider language="kotlin" implementationClass="org.jetbrains.kotlin.idea.spring.lineMarking.KotlinSpringModelDependenciesLineMarkerProvider"/>
<localInspection implementationClass="org.jetbrains.kotlin.idea.spring.inspections.KotlinFinalClassOrFunSpringInspection"
displayName="Final Kotlin class or function with Spring annotation"
groupBundle="resources.messages.SpringBundle"
groupKey="inspection.group.code"
groupPath="Spring,Spring Core"
enabledByDefault="false"
level="WARNING"/>
<localInspection language="kotlin"
displayName="Spring Facet Code Configuration (Kotlin)"
groupBundle="resources.messages.SpringBundle"
@@ -0,0 +1,51 @@
/*
* Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license
* that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.idea.spring.tests.findUsages;
import com.intellij.testFramework.TestDataPath;
import org.jetbrains.kotlin.test.JUnit3RunnerWithInners;
import org.jetbrains.kotlin.test.KotlinTestUtils;
import org.jetbrains.kotlin.test.TargetBackend;
import org.jetbrains.kotlin.test.TestMetadata;
import org.junit.runner.RunWith;
import java.io.File;
import java.util.regex.Pattern;
/** This class is generated by {@link org.jetbrains.kotlin.generators.tests.TestsPackage}. DO NOT MODIFY MANUALLY */
@SuppressWarnings("all")
@TestMetadata("ultimate/testData/spring/core/findUsages")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public class SpringFindUsagesTestGenerated extends AbstractSpringFindUsagesTest {
public void testAllFilesPresentInFindUsages() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("ultimate/testData/spring/core/findUsages"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
}
@TestMetadata("classXml.kt")
public void testClassXml() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("ultimate/testData/spring/core/findUsages/classXml.kt");
doTest(fileName);
}
@TestMetadata("primaryConstructorArgXml.kt")
public void testPrimaryConstructorArgXml() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("ultimate/testData/spring/core/findUsages/primaryConstructorArgXml.kt");
doTest(fileName);
}
@TestMetadata("propertyXml.kt")
public void testPropertyXml() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("ultimate/testData/spring/core/findUsages/propertyXml.kt");
doTest(fileName);
}
@TestMetadata("setterFunXml.kt")
public void testSetterFunXml() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("ultimate/testData/spring/core/findUsages/setterFunXml.kt");
doTest(fileName);
}
}
@@ -0,0 +1,105 @@
/*
* Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license
* that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.idea.spring.tests.generate;
import com.intellij.testFramework.TestDataPath;
import org.jetbrains.kotlin.test.JUnit3RunnerWithInners;
import org.jetbrains.kotlin.test.KotlinTestUtils;
import org.jetbrains.kotlin.test.TargetBackend;
import org.jetbrains.kotlin.test.TestMetadata;
import org.junit.runner.RunWith;
import java.io.File;
import java.util.regex.Pattern;
/** This class is generated by {@link org.jetbrains.kotlin.generators.tests.TestsPackage}. DO NOT MODIFY MANUALLY */
@SuppressWarnings("all")
@TestMetadata("ultimate/testData/spring/core/generate")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public class GenerateSpringDependencyActionTestGenerated extends AbstractGenerateSpringDependencyActionTest {
public void testAllFilesPresentInGenerate() throws Exception {
KotlinTestUtils.assertAllTestsPresentInSingleGeneratedClass(this.getClass(), new File("ultimate/testData/spring/core/generate"), Pattern.compile("^([\\w]+)\\.kt$"), TargetBackend.ANY);
}
@TestMetadata("autowiredDependencies/duplicatingPropertyAnnotationConfig.kt")
public void testAutowiredDependencies_DuplicatingPropertyAnnotationConfig() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("ultimate/testData/spring/core/generate/autowiredDependencies/duplicatingPropertyAnnotationConfig.kt");
doTest(fileName);
}
@TestMetadata("autowiredDependencies/duplicatingPropertyXmlConfig.kt")
public void testAutowiredDependencies_DuplicatingPropertyXmlConfig() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("ultimate/testData/spring/core/generate/autowiredDependencies/duplicatingPropertyXmlConfig.kt");
doTest(fileName);
}
@TestMetadata("autowiredDependencies/multiplePropertiesAnnotationConfig.kt")
public void testAutowiredDependencies_MultiplePropertiesAnnotationConfig() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("ultimate/testData/spring/core/generate/autowiredDependencies/multiplePropertiesAnnotationConfig.kt");
doTest(fileName);
}
@TestMetadata("autowiredDependencies/multiplePropertiesXmlConfig.kt")
public void testAutowiredDependencies_MultiplePropertiesXmlConfig() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("ultimate/testData/spring/core/generate/autowiredDependencies/multiplePropertiesXmlConfig.kt");
doTest(fileName);
}
@TestMetadata("autowiredDependencies/propertyWithQualifierAnnotationConfig.kt")
public void testAutowiredDependencies_PropertyWithQualifierAnnotationConfig() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("ultimate/testData/spring/core/generate/autowiredDependencies/propertyWithQualifierAnnotationConfig.kt");
doTest(fileName);
}
@TestMetadata("autowiredDependencies/propertyWithQualifierXmlConfig.kt")
public void testAutowiredDependencies_PropertyWithQualifierXmlConfig() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("ultimate/testData/spring/core/generate/autowiredDependencies/propertyWithQualifierXmlConfig.kt");
doTest(fileName);
}
@TestMetadata("autowiredDependencies/singlePropertyAnnotationConfig.kt")
public void testAutowiredDependencies_SinglePropertyAnnotationConfig() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("ultimate/testData/spring/core/generate/autowiredDependencies/singlePropertyAnnotationConfig.kt");
doTest(fileName);
}
@TestMetadata("autowiredDependencies/singlePropertyXmlConfig.kt")
public void testAutowiredDependencies_SinglePropertyXmlConfig() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("ultimate/testData/spring/core/generate/autowiredDependencies/singlePropertyXmlConfig.kt");
doTest(fileName);
}
@TestMetadata("beanDependenciesByXml/firstConstructor.kt")
public void testBeanDependenciesByXml_FirstConstructor() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("ultimate/testData/spring/core/generate/beanDependenciesByXml/firstConstructor.kt");
doTest(fileName);
}
@TestMetadata("beanDependenciesByXml/primaryConstructorAddParam.kt")
public void testBeanDependenciesByXml_PrimaryConstructorAddParam() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("ultimate/testData/spring/core/generate/beanDependenciesByXml/primaryConstructorAddParam.kt");
doTest(fileName);
}
@TestMetadata("beanDependenciesByXml/property.kt")
public void testBeanDependenciesByXml_Property() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("ultimate/testData/spring/core/generate/beanDependenciesByXml/property.kt");
doTest(fileName);
}
@TestMetadata("beanDependenciesByXml/secondaryConstructorAddParam.kt")
public void testBeanDependenciesByXml_SecondaryConstructorAddParam() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("ultimate/testData/spring/core/generate/beanDependenciesByXml/secondaryConstructorAddParam.kt");
doTest(fileName);
}
@TestMetadata("beanDependenciesByXml/setter.kt")
public void testBeanDependenciesByXml_Setter() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("ultimate/testData/spring/core/generate/beanDependenciesByXml/setter.kt");
doTest(fileName);
}
}
@@ -0,0 +1,147 @@
/*
* Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license
* that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.idea.spring.tests.gutter;
import com.intellij.testFramework.TestDataPath;
import org.jetbrains.kotlin.test.JUnit3RunnerWithInners;
import org.jetbrains.kotlin.test.KotlinTestUtils;
import org.jetbrains.kotlin.test.TargetBackend;
import org.jetbrains.kotlin.test.TestMetadata;
import org.junit.runner.RunWith;
import java.io.File;
import java.util.regex.Pattern;
/** This class is generated by {@link org.jetbrains.kotlin.generators.tests.TestsPackage}. DO NOT MODIFY MANUALLY */
@SuppressWarnings("all")
@TestMetadata("ultimate/testData/spring/core/gutter")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public class SpringClassAnnotatorTestGenerated extends AbstractSpringClassAnnotatorTest {
public void testAllFilesPresentInGutter() throws Exception {
KotlinTestUtils.assertAllTestsPresentInSingleGeneratedClass(this.getClass(), new File("ultimate/testData/spring/core/gutter"), Pattern.compile("^(.+)\\.test$"), TargetBackend.ANY);
}
@TestMetadata("autowiredBeanCandidates/autowiredBeanCandidates.test")
public void testAutowiredBeanCandidates_AutowiredBeanCandidates() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("ultimate/testData/spring/core/gutter/autowiredBeanCandidates/autowiredBeanCandidates.test");
doTest(fileName);
}
@TestMetadata("autowiredConstructor/autowiredConstructor.test")
public void testAutowiredConstructor_AutowiredConstructor() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("ultimate/testData/spring/core/gutter/autowiredConstructor/autowiredConstructor.test");
doTest(fileName);
}
@TestMetadata("autowiredProperty/autowiredProperty.test")
public void testAutowiredProperty_AutowiredProperty() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("ultimate/testData/spring/core/gutter/autowiredProperty/autowiredProperty.test");
doTest(fileName);
}
@TestMetadata("autowiredSetter/autowiredSetter.test")
public void testAutowiredSetter_AutowiredSetter() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("ultimate/testData/spring/core/gutter/autowiredSetter/autowiredSetter.test");
doTest(fileName);
}
@TestMetadata("classGutter/classGutter.test")
public void testClassGutter_ClassGutter() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("ultimate/testData/spring/core/gutter/classGutter/classGutter.test");
doTest(fileName);
}
@TestMetadata("classGutterAbstractShowMappedInheritors/classGutterAbstractShowMappedInheritors.test")
public void testClassGutterAbstractShowMappedInheritors_ClassGutterAbstractShowMappedInheritors() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("ultimate/testData/spring/core/gutter/classGutterAbstractShowMappedInheritors/classGutterAbstractShowMappedInheritors.test");
doTest(fileName);
}
@TestMetadata("componentScan/componentScan.test")
public void testComponentScan_ComponentScan() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("ultimate/testData/spring/core/gutter/componentScan/componentScan.test");
doTest(fileName);
}
@TestMetadata("componentScanWithBasePackageClasses/componentScanWithBasePackageClasses.test")
public void testComponentScanWithBasePackageClasses_ComponentScanWithBasePackageClasses() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("ultimate/testData/spring/core/gutter/componentScanWithBasePackageClasses/componentScanWithBasePackageClasses.test");
doTest(fileName);
}
@TestMetadata("componentScanWithBasePackages/componentScanWithBasePackages.test")
public void testComponentScanWithBasePackages_ComponentScanWithBasePackages() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("ultimate/testData/spring/core/gutter/componentScanWithBasePackages/componentScanWithBasePackages.test");
doTest(fileName);
}
@TestMetadata("contextBeanInjectionPoints/contextBeanInjectionPoints.test")
public void testContextBeanInjectionPoints_ContextBeanInjectionPoints() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("ultimate/testData/spring/core/gutter/contextBeanInjectionPoints/contextBeanInjectionPoints.test");
doTest(fileName);
}
@TestMetadata("contextBeanWithQualifierInjectionPoints/contextBeanWithQualifierInjectionPoints.test")
public void testContextBeanWithQualifierInjectionPoints_ContextBeanWithQualifierInjectionPoints() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("ultimate/testData/spring/core/gutter/contextBeanWithQualifierInjectionPoints/contextBeanWithQualifierInjectionPoints.test");
doTest(fileName);
}
@TestMetadata("importConfigClasses/importConfigClasses.test")
public void testImportConfigClasses_ImportConfigClasses() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("ultimate/testData/spring/core/gutter/importConfigClasses/importConfigClasses.test");
doTest(fileName);
}
@TestMetadata("innerBean/innerBean.test")
public void testInnerBean_InnerBean() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("ultimate/testData/spring/core/gutter/innerBean/innerBean.test");
doTest(fileName);
}
@TestMetadata("methodTypeDefaultInitMethod/methodTypeDefaultInitMethod.test")
public void testMethodTypeDefaultInitMethod_MethodTypeDefaultInitMethod() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("ultimate/testData/spring/core/gutter/methodTypeDefaultInitMethod/methodTypeDefaultInitMethod.test");
doTest(fileName);
}
@TestMetadata("methodTypeFactory/methodTypeFactory.test")
public void testMethodTypeFactory_MethodTypeFactory() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("ultimate/testData/spring/core/gutter/methodTypeFactory/methodTypeFactory.test");
doTest(fileName);
}
@TestMetadata("methodTypeInitMethod/methodTypeInitMethod.test")
public void testMethodTypeInitMethod_MethodTypeInitMethod() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("ultimate/testData/spring/core/gutter/methodTypeInitMethod/methodTypeInitMethod.test");
doTest(fileName);
}
@TestMetadata("methodTypeMultiple/methodTypeMultiple.test")
public void testMethodTypeMultiple_MethodTypeMultiple() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("ultimate/testData/spring/core/gutter/methodTypeMultiple/methodTypeMultiple.test");
doTest(fileName);
}
@TestMetadata("propertyGutterForProperty/propertyGutterForProperty.test")
public void testPropertyGutterForProperty_PropertyGutterForProperty() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("ultimate/testData/spring/core/gutter/propertyGutterForProperty/propertyGutterForProperty.test");
doTest(fileName);
}
@TestMetadata("propertyGutterForSetter/propertyGutterForSetter.test")
public void testPropertyGutterForSetter_PropertyGutterForSetter() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("ultimate/testData/spring/core/gutter/propertyGutterForSetter/propertyGutterForSetter.test");
doTest(fileName);
}
@TestMetadata("resourceGutter/resourceGutter.test")
public void testResourceGutter_ResourceGutter() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("ultimate/testData/spring/core/gutter/resourceGutter/resourceGutter.test");
doTest(fileName);
}
}
@@ -0,0 +1,51 @@
/*
* Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license
* that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.idea.spring.tests.inspections;
import com.intellij.testFramework.TestDataPath;
import org.jetbrains.kotlin.test.JUnit3RunnerWithInners;
import org.jetbrains.kotlin.test.KotlinTestUtils;
import org.jetbrains.kotlin.test.TargetBackend;
import org.jetbrains.kotlin.test.TestMetadata;
import org.junit.runner.RunWith;
import java.io.File;
import java.util.regex.Pattern;
/** This class is generated by {@link org.jetbrains.kotlin.generators.tests.TestsPackage}. DO NOT MODIFY MANUALLY */
@SuppressWarnings("all")
@TestMetadata("ultimate/testData/inspections/spring")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public class SpringInspectionTestGenerated extends AbstractSpringInspectionTest {
public void testAllFilesPresentInSpring() throws Exception {
KotlinTestUtils.assertAllTestsPresentInSingleGeneratedClass(this.getClass(), new File("ultimate/testData/inspections/spring"), Pattern.compile("^(inspections\\.test)$"), TargetBackend.ANY);
}
@TestMetadata("autowiredMembersInInvalidClass/inspectionData/inspections.test")
public void testAutowiredMembersInInvalidClass_inspectionData_Inspections_test() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("ultimate/testData/inspections/spring/autowiredMembersInInvalidClass/inspectionData/inspections.test");
doTest(fileName);
}
@TestMetadata("autowiring/inspectionData/inspections.test")
public void testAutowiring_inspectionData_Inspections_test() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("ultimate/testData/inspections/spring/autowiring/inspectionData/inspections.test");
doTest(fileName);
}
@TestMetadata("componentScan/inspectionData/inspections.test")
public void testComponentScan_inspectionData_Inspections_test() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("ultimate/testData/inspections/spring/componentScan/inspectionData/inspections.test");
doTest(fileName);
}
@TestMetadata("unconfiguredFacet/inspectionData/inspections.test")
public void testUnconfiguredFacet_inspectionData_Inspections_test() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("ultimate/testData/inspections/spring/unconfiguredFacet/inspectionData/inspections.test");
doTest(fileName);
}
}
@@ -0,0 +1,42 @@
/*
* Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license
* that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.idea.spring.tests.quickfixes;
import com.intellij.testFramework.TestDataPath;
import org.jetbrains.kotlin.test.JUnit3RunnerWithInners;
import org.jetbrains.kotlin.test.KotlinTestUtils;
import org.jetbrains.kotlin.test.TargetBackend;
import org.jetbrains.kotlin.test.TestMetadata;
import org.junit.runner.RunWith;
import java.io.File;
import java.util.regex.Pattern;
/** This class is generated by {@link org.jetbrains.kotlin.generators.tests.TestsPackage}. DO NOT MODIFY MANUALLY */
@SuppressWarnings("all")
@TestMetadata("ultimate/testData/quickFixes/spring")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public class SpringQuickFixTestGenerated extends AbstractSpringQuickFixTest {
public void testAllFilesPresentInSpring() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("ultimate/testData/quickFixes/spring"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true);
}
@TestMetadata("ultimate/testData/quickFixes/spring/addQualifierAnnotation")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class AddQualifierAnnotation extends AbstractSpringQuickFixTest {
public void testAllFilesPresentInAddQualifierAnnotation() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("ultimate/testData/quickFixes/spring/addQualifierAnnotation"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true);
}
@TestMetadata("ambiguousBean.kt")
public void testAmbiguousBean() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("ultimate/testData/quickFixes/spring/addQualifierAnnotation/ambiguousBean.kt");
doTest(fileName);
}
}
}
@@ -0,0 +1,69 @@
/*
* Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license
* that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.idea.spring.tests.references;
import com.intellij.testFramework.TestDataPath;
import org.jetbrains.kotlin.test.JUnit3RunnerWithInners;
import org.jetbrains.kotlin.test.KotlinTestUtils;
import org.jetbrains.kotlin.test.TargetBackend;
import org.jetbrains.kotlin.test.TestMetadata;
import org.junit.runner.RunWith;
import java.io.File;
import java.util.regex.Pattern;
/** This class is generated by {@link org.jetbrains.kotlin.generators.tests.TestsPackage}. DO NOT MODIFY MANUALLY */
@SuppressWarnings("all")
@TestMetadata("ultimate/testData/spring/core/references/completion/handler")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public class SpringReferenceCompletionHandlerTestGenerated extends AbstractSpringReferenceCompletionHandlerTest {
public void testAllFilesPresentInHandler() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("ultimate/testData/spring/core/references/completion/handler"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
}
@TestMetadata("packageReferenceEnter.kt")
public void testPackageReferenceEnter() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("ultimate/testData/spring/core/references/completion/handler/packageReferenceEnter.kt");
doTest(fileName);
}
@TestMetadata("packageReferenceTab.kt")
public void testPackageReferenceTab() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("ultimate/testData/spring/core/references/completion/handler/packageReferenceTab.kt");
doTest(fileName);
}
@TestMetadata("qualifierReferenceEnter.kt")
public void testQualifierReferenceEnter() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("ultimate/testData/spring/core/references/completion/handler/qualifierReferenceEnter.kt");
doTest(fileName);
}
@TestMetadata("qualifierReferenceTab.kt")
public void testQualifierReferenceTab() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("ultimate/testData/spring/core/references/completion/handler/qualifierReferenceTab.kt");
doTest(fileName);
}
@TestMetadata("scopeReference.kt")
public void testScopeReference() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("ultimate/testData/spring/core/references/completion/handler/scopeReference.kt");
doTest(fileName);
}
@TestMetadata("springBeanReferenceEnter.kt")
public void testSpringBeanReferenceEnter() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("ultimate/testData/spring/core/references/completion/handler/springBeanReferenceEnter.kt");
doTest(fileName);
}
@TestMetadata("springBeanReferenceTab.kt")
public void testSpringBeanReferenceTab() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("ultimate/testData/spring/core/references/completion/handler/springBeanReferenceTab.kt");
doTest(fileName);
}
}
@@ -0,0 +1,69 @@
/*
* Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license
* that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.idea.spring.tests.references;
import com.intellij.testFramework.TestDataPath;
import org.jetbrains.kotlin.test.JUnit3RunnerWithInners;
import org.jetbrains.kotlin.test.KotlinTestUtils;
import org.jetbrains.kotlin.test.TargetBackend;
import org.jetbrains.kotlin.test.TestMetadata;
import org.junit.runner.RunWith;
import java.io.File;
import java.util.regex.Pattern;
/** This class is generated by {@link org.jetbrains.kotlin.generators.tests.TestsPackage}. DO NOT MODIFY MANUALLY */
@SuppressWarnings("all")
@TestMetadata("ultimate/testData/spring/core/references/completion/variants")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public class SpringReferenceCompletionTestGenerated extends AbstractSpringReferenceCompletionTest {
public void testAllFilesPresentInVariants() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("ultimate/testData/spring/core/references/completion/variants"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
}
@TestMetadata("beanWithDefaultName.kt")
public void testBeanWithDefaultName() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("ultimate/testData/spring/core/references/completion/variants/beanWithDefaultName.kt");
doTest(fileName);
}
@TestMetadata("beanWithExplicitName.kt")
public void testBeanWithExplicitName() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("ultimate/testData/spring/core/references/completion/variants/beanWithExplicitName.kt");
doTest(fileName);
}
@TestMetadata("packageReference.kt")
public void testPackageReference() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("ultimate/testData/spring/core/references/completion/variants/packageReference.kt");
doTest(fileName);
}
@TestMetadata("qualifierReference1Xml.kt")
public void testQualifierReference1Xml() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("ultimate/testData/spring/core/references/completion/variants/qualifierReference1Xml.kt");
doTest(fileName);
}
@TestMetadata("qualifierReference2Xml.kt")
public void testQualifierReference2Xml() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("ultimate/testData/spring/core/references/completion/variants/qualifierReference2Xml.kt");
doTest(fileName);
}
@TestMetadata("scopeReferenceXml.kt")
public void testScopeReferenceXml() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("ultimate/testData/spring/core/references/completion/variants/scopeReferenceXml.kt");
doTest(fileName);
}
@TestMetadata("springBeanReferenceXml.kt")
public void testSpringBeanReferenceXml() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("ultimate/testData/spring/core/references/completion/variants/springBeanReferenceXml.kt");
doTest(fileName);
}
}
@@ -0,0 +1,81 @@
/*
* Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license
* that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.idea.spring.tests.references;
import com.intellij.testFramework.TestDataPath;
import org.jetbrains.kotlin.test.JUnit3RunnerWithInners;
import org.jetbrains.kotlin.test.KotlinTestUtils;
import org.jetbrains.kotlin.test.TargetBackend;
import org.jetbrains.kotlin.test.TestMetadata;
import org.junit.runner.RunWith;
import java.io.File;
import java.util.regex.Pattern;
/** This class is generated by {@link org.jetbrains.kotlin.generators.tests.TestsPackage}. DO NOT MODIFY MANUALLY */
@SuppressWarnings("all")
@TestMetadata("ultimate/testData/spring/core/references/navigation")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public class SpringReferenceNavigationTestGenerated extends AbstractSpringReferenceNavigationTest {
public void testAllFilesPresentInNavigation() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("ultimate/testData/spring/core/references/navigation"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
}
@TestMetadata("fileReferenceInClasspathResource.kt")
public void testFileReferenceInClasspathResource() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("ultimate/testData/spring/core/references/navigation/fileReferenceInClasspathResource.kt");
doTest(fileName);
}
@TestMetadata("fileReferenceInClasspathXmlContext.kt")
public void testFileReferenceInClasspathXmlContext() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("ultimate/testData/spring/core/references/navigation/fileReferenceInClasspathXmlContext.kt");
doTest(fileName);
}
@TestMetadata("packageReferenceInComponentScan.kt")
public void testPackageReferenceInComponentScan() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("ultimate/testData/spring/core/references/navigation/packageReferenceInComponentScan.kt");
doTest(fileName);
}
@TestMetadata("qualifierReference.kt")
public void testQualifierReference() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("ultimate/testData/spring/core/references/navigation/qualifierReference.kt");
doTest(fileName);
}
@TestMetadata("scopeReference.kt")
public void testScopeReference() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("ultimate/testData/spring/core/references/navigation/scopeReference.kt");
doTest(fileName);
}
@TestMetadata("springBeanRefInFactoryContainsBean.kt")
public void testSpringBeanRefInFactoryContainsBean() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("ultimate/testData/spring/core/references/navigation/springBeanRefInFactoryContainsBean.kt");
doTest(fileName);
}
@TestMetadata("springBeanRefInFactoryGetBean.kt")
public void testSpringBeanRefInFactoryGetBean() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("ultimate/testData/spring/core/references/navigation/springBeanRefInFactoryGetBean.kt");
doTest(fileName);
}
@TestMetadata("springBeanRefInResource.kt")
public void testSpringBeanRefInResource() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("ultimate/testData/spring/core/references/navigation/springBeanRefInResource.kt");
doTest(fileName);
}
@TestMetadata("springFactoryBeanRefInResource.kt")
public void testSpringFactoryBeanRefInResource() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("ultimate/testData/spring/core/references/navigation/springFactoryBeanRefInResource.kt");
doTest(fileName);
}
}
@@ -0,0 +1,165 @@
/*
* Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license
* that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.idea.spring.tests.rename;
import com.intellij.testFramework.TestDataPath;
import org.jetbrains.kotlin.test.JUnit3RunnerWithInners;
import org.jetbrains.kotlin.test.KotlinTestUtils;
import org.jetbrains.kotlin.test.TargetBackend;
import org.jetbrains.kotlin.test.TestMetadata;
import org.junit.runner.RunWith;
import java.io.File;
import java.util.regex.Pattern;
/** This class is generated by {@link org.jetbrains.kotlin.generators.tests.TestsPackage}. DO NOT MODIFY MANUALLY */
@SuppressWarnings("all")
@TestMetadata("ultimate/testData/spring/core/rename")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public class SpringRenameTestGenerated extends AbstractSpringRenameTest {
public void testAllFilesPresentInRename() throws Exception {
KotlinTestUtils.assertAllTestsPresentInSingleGeneratedClass(this.getClass(), new File("ultimate/testData/spring/core/rename"), Pattern.compile("^(.+)\\.test$"), TargetBackend.ANY);
}
@TestMetadata("annotationArgBySpELRefInXMLConf/annotationArgBySpELRefInXMLConf.test")
public void testAnnotationArgBySpELRefInXMLConf_AnnotationArgBySpELRefInXMLConf() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("ultimate/testData/spring/core/rename/annotationArgBySpELRefInXMLConf/annotationArgBySpELRefInXMLConf.test");
doTest(fileName);
}
@TestMetadata("classWithXmlRefs/classWithXmlRef.test")
public void testClassWithXmlRefs_ClassWithXmlRef() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("ultimate/testData/spring/core/rename/classWithXmlRefs/classWithXmlRef.test");
doTest(fileName);
}
@TestMetadata("classWithXmlRefsByRef/classWithXmlRefByRef.test")
public void testClassWithXmlRefsByRef_ClassWithXmlRefByRef() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("ultimate/testData/spring/core/rename/classWithXmlRefsByRef/classWithXmlRefByRef.test");
doTest(fileName);
}
@TestMetadata("factoryMethodParam/factoryMethodParam.test")
public void testFactoryMethodParam_FactoryMethodParam() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("ultimate/testData/spring/core/rename/factoryMethodParam/factoryMethodParam.test");
doTest(fileName);
}
@TestMetadata("factoryMethodParamByXmlRef/factoryMethodParamByXmlRef.test")
public void testFactoryMethodParamByXmlRef_FactoryMethodParamByXmlRef() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("ultimate/testData/spring/core/rename/factoryMethodParamByXmlRef/factoryMethodParamByXmlRef.test");
doTest(fileName);
}
@TestMetadata("isPropertyWithXmlRefsBySpelRef/isPropertyWithXmlRefBySpelRef.test")
public void testIsPropertyWithXmlRefsBySpelRef_IsPropertyWithXmlRefBySpelRef() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("ultimate/testData/spring/core/rename/isPropertyWithXmlRefsBySpelRef/isPropertyWithXmlRefBySpelRef.test");
doTest(fileName);
}
@TestMetadata("javaSpelRefToJava/javaSpelRefToJava.test")
public void testJavaSpelRefToJava_JavaSpelRefToJava() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("ultimate/testData/spring/core/rename/javaSpelRefToJava/javaSpelRefToJava.test");
doTest(fileName);
}
@TestMetadata("javaSpelRefToJavaAnnotated/javaSpelRefToJavaAnnotated.test")
public void testJavaSpelRefToJavaAnnotated_JavaSpelRefToJavaAnnotated() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("ultimate/testData/spring/core/rename/javaSpelRefToJavaAnnotated/javaSpelRefToJavaAnnotated.test");
doTest(fileName);
}
@TestMetadata("javaSpelRefToKt/javaSpelRefToKt.test")
public void testJavaSpelRefToKt_JavaSpelRefToKt() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("ultimate/testData/spring/core/rename/javaSpelRefToKt/javaSpelRefToKt.test");
doTest(fileName);
}
@TestMetadata("javaSpelRefToKtAnnotated/javaSpelRefToKtAnnotated.test")
public void testJavaSpelRefToKtAnnotated_JavaSpelRefToKtAnnotated() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("ultimate/testData/spring/core/rename/javaSpelRefToKtAnnotated/javaSpelRefToKtAnnotated.test");
doTest(fileName);
}
@TestMetadata("ktSpelRefToJava/ktSpelRefToJava.test")
public void testKtSpelRefToJava_KtSpelRefToJava() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("ultimate/testData/spring/core/rename/ktSpelRefToJava/ktSpelRefToJava.test");
doTest(fileName);
}
@TestMetadata("ktSpelRefToJavaAnnotated/ktSpelRefToJavaAnnotated.test")
public void testKtSpelRefToJavaAnnotated_KtSpelRefToJavaAnnotated() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("ultimate/testData/spring/core/rename/ktSpelRefToJavaAnnotated/ktSpelRefToJavaAnnotated.test");
doTest(fileName);
}
@TestMetadata("ktSpelRefToKt/ktSpelRefToKt.test")
public void testKtSpelRefToKt_KtSpelRefToKt() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("ultimate/testData/spring/core/rename/ktSpelRefToKt/ktSpelRefToKt.test");
doTest(fileName);
}
@TestMetadata("ktSpelRefToKtAnnotated/ktSpelRefToKtAnnotated.test")
public void testKtSpelRefToKtAnnotated_KtSpelRefToKtAnnotated() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("ultimate/testData/spring/core/rename/ktSpelRefToKtAnnotated/ktSpelRefToKtAnnotated.test");
doTest(fileName);
}
@TestMetadata("parameterWithXmlRefsBySpelRef/parameterWithXmlRefBySpelRef.test")
public void testParameterWithXmlRefsBySpelRef_ParameterWithXmlRefBySpelRef() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("ultimate/testData/spring/core/rename/parameterWithXmlRefsBySpelRef/parameterWithXmlRefBySpelRef.test");
doTest(fileName);
}
@TestMetadata("primaryConstructorArgWithXmlRefs/primaryConstructorArgWithXmlRef.test")
public void testPrimaryConstructorArgWithXmlRefs_PrimaryConstructorArgWithXmlRef() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("ultimate/testData/spring/core/rename/primaryConstructorArgWithXmlRefs/primaryConstructorArgWithXmlRef.test");
doTest(fileName);
}
@TestMetadata("primaryConstructorArgWithXmlRefsByRef1/primaryConstructorArgWithXmlRefByRef1.test")
public void testPrimaryConstructorArgWithXmlRefsByRef1_PrimaryConstructorArgWithXmlRefByRef1() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("ultimate/testData/spring/core/rename/primaryConstructorArgWithXmlRefsByRef1/primaryConstructorArgWithXmlRefByRef1.test");
doTest(fileName);
}
@TestMetadata("primaryConstructorArgWithXmlRefsByRef2/primaryConstructorArgWithXmlRefByRef2.test")
public void testPrimaryConstructorArgWithXmlRefsByRef2_PrimaryConstructorArgWithXmlRefByRef2() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("ultimate/testData/spring/core/rename/primaryConstructorArgWithXmlRefsByRef2/primaryConstructorArgWithXmlRefByRef2.test");
doTest(fileName);
}
@TestMetadata("propertyWithXmlRefs/propertyWithXmlRef.test")
public void testPropertyWithXmlRefs_PropertyWithXmlRef() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("ultimate/testData/spring/core/rename/propertyWithXmlRefs/propertyWithXmlRef.test");
doTest(fileName);
}
@TestMetadata("propertyWithXmlRefsByRef/propertyWithXmlRefByRef.test")
public void testPropertyWithXmlRefsByRef_PropertyWithXmlRefByRef() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("ultimate/testData/spring/core/rename/propertyWithXmlRefsByRef/propertyWithXmlRefByRef.test");
doTest(fileName);
}
@TestMetadata("propertyWithXmlRefsBySpelRef/propertyWithXmlRefBySpelRef.test")
public void testPropertyWithXmlRefsBySpelRef_PropertyWithXmlRefBySpelRef() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("ultimate/testData/spring/core/rename/propertyWithXmlRefsBySpelRef/propertyWithXmlRefBySpelRef.test");
doTest(fileName);
}
@TestMetadata("setterFunWithXmlRefs/setterFunWithXmlRef.test")
public void testSetterFunWithXmlRefs_SetterFunWithXmlRef() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("ultimate/testData/spring/core/rename/setterFunWithXmlRefs/setterFunWithXmlRef.test");
doTest(fileName);
}
@TestMetadata("setterFunWithXmlRefsByRef/setterFunWithXmlRefByRef.test")
public void testSetterFunWithXmlRefsByRef_SetterFunWithXmlRefByRef() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("ultimate/testData/spring/core/rename/setterFunWithXmlRefsByRef/setterFunWithXmlRefByRef.test");
doTest(fileName);
}
}