mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-04-11 08:31:32 +00:00
Added test
This commit is contained in:
10
idea/testData/intentions/deprecatedCallableAddReplaceWith/NotAvailableOnDocComment.kt
vendored
Normal file
10
idea/testData/intentions/deprecatedCallableAddReplaceWith/NotAvailableOnDocComment.kt
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
// IS_APPLICABLE: false
|
||||
/**
|
||||
* <caret>This is a doc-comment
|
||||
*/
|
||||
@deprecated("")
|
||||
fun foo() {
|
||||
bar()
|
||||
}
|
||||
|
||||
fun bar(){}
|
||||
128
idea/testData/intentions/deprecatedCallableAddReplaceWith/inspectionData/expected.xml
vendored
Normal file
128
idea/testData/intentions/deprecatedCallableAddReplaceWith/inspectionData/expected.xml
vendored
Normal file
@@ -0,0 +1,128 @@
|
||||
<problems>
|
||||
<problem>
|
||||
<file>ValPropertyWithReturn.kt</file>
|
||||
<line>2</line>
|
||||
<module>light_idea_test_case</module>
|
||||
<entry_point TYPE="file" FQNAME="ValPropertyWithReturn.kt" />
|
||||
<problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Add 'replaceWith' argument to 'deprecated' annotation</problem_class>
|
||||
<description>Add 'replaceWith' argument to specify replacement pattern</description>
|
||||
</problem>
|
||||
|
||||
|
||||
<problem>
|
||||
<file>ValProperty.kt</file>
|
||||
<line>2</line>
|
||||
<module>light_idea_test_case</module>
|
||||
<entry_point TYPE="file" FQNAME="ValProperty.kt" />
|
||||
<problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Add 'replaceWith' argument to 'deprecated' annotation</problem_class>
|
||||
<description>Add 'replaceWith' argument to specify replacement pattern</description>
|
||||
</problem>
|
||||
|
||||
<problem>
|
||||
<file>StringTemplate.kt</file>
|
||||
<line>1</line>
|
||||
<module>light_idea_test_case</module>
|
||||
<entry_point TYPE="file" FQNAME="StringTemplate.kt" />
|
||||
<problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Add 'replaceWith' argument to 'deprecated' annotation</problem_class>
|
||||
<description>Add 'replaceWith' argument to specify replacement pattern</description>
|
||||
</problem>
|
||||
|
||||
<problem>
|
||||
<file>StringLiteral.kt</file>
|
||||
<line>1</line>
|
||||
<module>light_idea_test_case</module>
|
||||
<entry_point TYPE="file" FQNAME="StringLiteral.kt" />
|
||||
<problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Add 'replaceWith' argument to 'deprecated' annotation</problem_class>
|
||||
<description>Add 'replaceWith' argument to specify replacement pattern</description>
|
||||
</problem>
|
||||
|
||||
<problem>
|
||||
<file>Simple.kt</file>
|
||||
<line>1</line>
|
||||
<module>light_idea_test_case</module>
|
||||
<entry_point TYPE="file" FQNAME="Simple.kt" />
|
||||
<problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Add 'replaceWith' argument to 'deprecated' annotation</problem_class>
|
||||
<description>Add 'replaceWith' argument to specify replacement pattern</description>
|
||||
</problem>
|
||||
|
||||
<problem>
|
||||
<file>Return.kt</file>
|
||||
<line>1</line>
|
||||
<module>light_idea_test_case</module>
|
||||
<entry_point TYPE="file" FQNAME="Return.kt" />
|
||||
<problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Add 'replaceWith' argument to 'deprecated' annotation</problem_class>
|
||||
<description>Add 'replaceWith' argument to specify replacement pattern</description>
|
||||
</problem>
|
||||
|
||||
<problem>
|
||||
<file>QualifiedCall.kt</file>
|
||||
<line>1</line>
|
||||
<module>light_idea_test_case</module>
|
||||
<entry_point TYPE="file" FQNAME="QualifiedCall.kt" />
|
||||
<problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Add 'replaceWith' argument to 'deprecated' annotation</problem_class>
|
||||
<description>Add 'replaceWith' argument to specify replacement pattern</description>
|
||||
</problem>
|
||||
|
||||
<problem>
|
||||
<file>NotAvailableOnDocComment.kt</file>
|
||||
<line>2</line>
|
||||
<module>light_idea_test_case</module>
|
||||
<entry_point TYPE="file" FQNAME="NotAvailableOnDocComment.kt" />
|
||||
<problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Add 'replaceWith' argument to 'deprecated' annotation</problem_class>
|
||||
<description>Add 'replaceWith' argument to specify replacement pattern</description>
|
||||
</problem>
|
||||
|
||||
<problem>
|
||||
<file>NoDefaultImport.kt</file>
|
||||
<line>1</line>
|
||||
<module>light_idea_test_case</module>
|
||||
<entry_point TYPE="file" FQNAME="NoDefaultImport.kt" />
|
||||
<problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Add 'replaceWith' argument to 'deprecated' annotation</problem_class>
|
||||
<description>Add 'replaceWith' argument to specify replacement pattern</description>
|
||||
</problem>
|
||||
|
||||
<problem>
|
||||
<file>NoCompanionObjectImport.kt</file>
|
||||
<line>5</line>
|
||||
<module>light_idea_test_case</module>
|
||||
<entry_point TYPE="file" FQNAME="NoCompanionObjectImport.kt" />
|
||||
<problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Add 'replaceWith' argument to 'deprecated' annotation</problem_class>
|
||||
<description>Add 'replaceWith' argument to specify replacement pattern</description>
|
||||
</problem>
|
||||
|
||||
<problem>
|
||||
<file>Imports.kt</file>
|
||||
<line>5</line>
|
||||
<module>light_idea_test_case</module>
|
||||
<entry_point TYPE="file" FQNAME="Imports.kt" />
|
||||
<problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Add 'replaceWith' argument to 'deprecated' annotation</problem_class>
|
||||
<description>Add 'replaceWith' argument to specify replacement pattern</description>
|
||||
</problem>
|
||||
|
||||
<problem>
|
||||
<file>If.kt</file>
|
||||
<line>1</line>
|
||||
<module>light_idea_test_case</module>
|
||||
<entry_point TYPE="file" FQNAME="If.kt" />
|
||||
<problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Add 'replaceWith' argument to 'deprecated' annotation</problem_class>
|
||||
<description>Add 'replaceWith' argument to specify replacement pattern</description>
|
||||
</problem>
|
||||
|
||||
<problem>
|
||||
<file>ExpressionBody.kt</file>
|
||||
<line>1</line>
|
||||
<module>light_idea_test_case</module>
|
||||
<entry_point TYPE="file" FQNAME="ExpressionBody.kt" />
|
||||
<problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Add 'replaceWith' argument to 'deprecated' annotation</problem_class>
|
||||
<description>Add 'replaceWith' argument to specify replacement pattern</description>
|
||||
</problem>
|
||||
|
||||
<problem>
|
||||
<file>CommentInBody.kt</file>
|
||||
<line>1</line>
|
||||
<module>light_idea_test_case</module>
|
||||
<entry_point TYPE="file" FQNAME="CommentInBody.kt" />
|
||||
<problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Add 'replaceWith' argument to 'deprecated' annotation</problem_class>
|
||||
<description>Add 'replaceWith' argument to specify replacement pattern</description>
|
||||
</problem>
|
||||
</problems>
|
||||
1
idea/testData/intentions/deprecatedCallableAddReplaceWith/inspectionData/inspections.test
vendored
Normal file
1
idea/testData/intentions/deprecatedCallableAddReplaceWith/inspectionData/inspections.test
vendored
Normal file
@@ -0,0 +1 @@
|
||||
// INSPECTION_CLASS: org.jetbrains.kotlin.idea.intentions.DeprecatedCallableAddReplaceWithInspection
|
||||
@@ -55,6 +55,12 @@ public class JetInspectionTestGenerated extends AbstractJetInspectionTest {
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("deprecatedCallableAddReplaceWith/inspectionData/inspections.test")
|
||||
public void testDeprecatedCallableAddReplaceWith_inspectionData_Inspections_test() throws Exception {
|
||||
String fileName = JetTestUtils.navigationMetadata("idea/testData/intentions/deprecatedCallableAddReplaceWith/inspectionData/inspections.test");
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("removeExplicitTypeArguments/inspectionData/inspections.test")
|
||||
public void testRemoveExplicitTypeArguments_inspectionData_Inspections_test() throws Exception {
|
||||
String fileName = JetTestUtils.navigationMetadata("idea/testData/intentions/removeExplicitTypeArguments/inspectionData/inspections.test");
|
||||
|
||||
@@ -4558,6 +4558,12 @@ public class IntentionTestGenerated extends AbstractIntentionTest {
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("NotAvailableOnDocComment.kt")
|
||||
public void testNotAvailableOnDocComment() throws Exception {
|
||||
String fileName = JetTestUtils.navigationMetadata("idea/testData/intentions/deprecatedCallableAddReplaceWith/NotAvailableOnDocComment.kt");
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("PrivateSymbolUsed.kt")
|
||||
public void testPrivateSymbolUsed() throws Exception {
|
||||
String fileName = JetTestUtils.navigationMetadata("idea/testData/intentions/deprecatedCallableAddReplaceWith/PrivateSymbolUsed.kt");
|
||||
@@ -4617,6 +4623,7 @@ public class IntentionTestGenerated extends AbstractIntentionTest {
|
||||
String fileName = JetTestUtils.navigationMetadata("idea/testData/intentions/deprecatedCallableAddReplaceWith/ValPropertyWithReturn.kt");
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@TestMetadata("idea/testData/intentions/ifNullToElvis")
|
||||
|
||||
Reference in New Issue
Block a user