One more test for import nested classes setting

This commit is contained in:
Valentin Kipyatkov
2015-04-10 19:03:08 +03:00
parent 04b2bdcc79
commit a8d737bf87
4 changed files with 25 additions and 0 deletions
@@ -0,0 +1,7 @@
class A {
public class B {
public B(String s) {
}
}
}
@@ -0,0 +1,5 @@
// IMPORT_NESTED_CLASSES: true
fun bar(s: String) {
<selection>val t: A.B = A().B(s)</selection>
}
@@ -0,0 +1,7 @@
// IMPORT_NESTED_CLASSES: true
import A.B
fun bar(s: String) {
val t: B = A().B(s)
}
@@ -217,6 +217,12 @@ public class ShortenRefsTestGenerated extends AbstractShortenRefsTest {
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/shortenRefs/java"), Pattern.compile("^([^\\.]+)\\.kt$"), true);
}
@TestMetadata("innerClassImport.kt")
public void testInnerClassImport() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/shortenRefs/java/innerClassImport.kt");
doTest(fileName);
}
@TestMetadata("innerClassNoImports.kt")
public void testInnerClassNoImports() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/shortenRefs/java/innerClassNoImports.kt");