Corrected test data after changes in import insertion + added when more test which fails with the current reference shortening algorithm

This commit is contained in:
Valentin Kipyatkov
2015-01-26 22:26:27 +03:00
parent 5d516a5f72
commit 3bc2f89a1b
5 changed files with 17 additions and 0 deletions
@@ -1 +1,3 @@
fun foo(array: Array<String>){}
val v: <selection>java.lang.reflect.Array</selection>
@@ -1,3 +1,5 @@
import java.lang.reflect
fun foo(array: Array<String>){}
val v: reflect.Array
@@ -0,0 +1,3 @@
import java.util.*
val v: ArrayList<<selection>java.sql.Date</selection>>
@@ -0,0 +1,4 @@
import java.util.*
import java.sql.Date
val v: ArrayList<Date>
@@ -330,6 +330,12 @@ public class ShortenRefsTestGenerated extends AbstractShortenRefsTest {
doTest(fileName);
}
@TestMetadata("OtherClassWithThisNameImported.kt")
public void testOtherClassWithThisNameImported() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/shortenRefs/type/OtherClassWithThisNameImported.kt");
doTest(fileName);
}
@TestMetadata("SameClassTwice.kt")
public void testSameClassTwice() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/shortenRefs/type/SameClassTwice.kt");