Works also for top level fun - why not?
This commit is contained in:
@@ -0,0 +1,7 @@
|
|||||||
|
// INTENTION_TEXT: "Add import for 'kotlin.test.assertFailsWith'"
|
||||||
|
// WITH_RUNTIME
|
||||||
|
|
||||||
|
fun foo() {
|
||||||
|
kotlin.test.<caret>assertFailsWith<Exception>("", {})
|
||||||
|
kotlin.test.assertFailsWith(RuntimeException::class.java, "", {})
|
||||||
|
}
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
import kotlin.test.assertFailsWith
|
||||||
|
|
||||||
|
// INTENTION_TEXT: "Add import for 'kotlin.test.assertFailsWith'"
|
||||||
|
// WITH_RUNTIME
|
||||||
|
|
||||||
|
fun foo() {
|
||||||
|
<caret>assertFailsWith<Exception>("", {})
|
||||||
|
assertFailsWith(RuntimeException::class.java, "", {})
|
||||||
|
}
|
||||||
@@ -5135,6 +5135,12 @@ public class IntentionTestGenerated extends AbstractIntentionTest {
|
|||||||
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/intentions/importMember/StaticJavaMethod.kt");
|
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/intentions/importMember/StaticJavaMethod.kt");
|
||||||
doTest(fileName);
|
doTest(fileName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("TopLevelFun.kt")
|
||||||
|
public void testTopLevelFun() throws Exception {
|
||||||
|
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/intentions/importMember/TopLevelFun.kt");
|
||||||
|
doTest(fileName);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@TestMetadata("idea/testData/intentions/infixCallToOrdinary")
|
@TestMetadata("idea/testData/intentions/infixCallToOrdinary")
|
||||||
|
|||||||
Reference in New Issue
Block a user