Move sort modifiers test to inspection local group

This should fix test in 181 branch
This commit is contained in:
Mikhail Glukhikh
2018-04-20 21:08:52 +03:00
parent 8f0c53d0de
commit df59af8ee8
6 changed files with 10 additions and 17 deletions
@@ -1,10 +0,0 @@
<problems>
<problem>
<file>test.kt</file>
<line>4</line>
<module>light_idea_test_case</module>
<entry_point TYPE="file" FQNAME="temp:///src/test.kt" />
<problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Non-canonical modifier order</problem_class>
<description>Non-canonical modifiers order</description>
</problem>
</problems>
@@ -1 +0,0 @@
// INSPECTION_CLASS: org.jetbrains.kotlin.idea.inspections.SortModifiersInspection
@@ -0,0 +1,4 @@
annotation class Ann
@Ann
<caret>abstract public class Test
@@ -1,4 +1,4 @@
annotation class Ann
@Ann
abstract public class Test
public abstract class Test
@@ -329,11 +329,6 @@ public class InspectionTestGenerated extends AbstractInspectionTest {
runTest("idea/testData/inspections/sealedSubClassCanBeObject/inspectionData/inspections.test");
}
@TestMetadata("sortModifiers/inspectionData/inspections.test")
public void testSortModifiers_inspectionData_Inspections_test() throws Exception {
runTest("idea/testData/inspections/sortModifiers/inspectionData/inspections.test");
}
@TestMetadata("spelling/inspectionData/inspections.test")
public void testSpelling_inspectionData_Inspections_test() throws Exception {
runTest("idea/testData/inspections/spelling/inspectionData/inspections.test");
@@ -4376,6 +4376,11 @@ public class LocalInspectionTestGenerated extends AbstractLocalInspectionTest {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/inspectionsLocal/sortModifiers"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true);
}
@TestMetadata("annotatedBefore.kt")
public void testAnnotatedBefore() throws Exception {
runTest("idea/testData/inspectionsLocal/sortModifiers/annotatedBefore.kt");
}
@TestMetadata("annotation.kt")
public void testAnnotation() throws Exception {
runTest("idea/testData/inspectionsLocal/sortModifiers/annotation.kt");