Added 2 tests

This commit is contained in:
Valentin Kipyatkov
2014-05-19 22:03:53 +04:00
parent 5ce3df4845
commit c56b5bfd61
6 changed files with 18 additions and 2 deletions
@@ -0,0 +1 @@
import java.util.T<caret>
@@ -0,0 +1 @@
import java.util.TimeZone<caret>
@@ -0,0 +1 @@
val x = <selection>java.util.HashMap</selection><java.util.Date, String>(1)
@@ -0,0 +1,3 @@
import java.util.HashMap
val x = HashMap<java.util.Date, String>(1)
@@ -28,6 +28,8 @@ public class BasicCompletionHandlerTest : CompletionHandlerTestBase(){
fun testClassCompletionInMiddle() = doTest(1, "TimeZone", " (java.util)", '\t')
fun testClassCompletionInImport() = doTest(1, "TimeZone", " (java.util)", '\t')
fun testDoNotInsertImportForAlreadyImported() = doTest()
fun testDoNotInsertDefaultJsImports() = doTest()
@@ -16,14 +16,17 @@
package org.jetbrains.jet.shortenRefs;
import junit.framework.Assert;
import junit.framework.Test;
import junit.framework.TestSuite;
import java.io.File;
import java.util.regex.Pattern;
import org.jetbrains.jet.JetTestUtils;
import org.jetbrains.jet.test.InnerTestClasses;
import org.jetbrains.jet.test.TestMetadata;
import java.io.File;
import java.util.regex.Pattern;
import org.jetbrains.jet.shortenRefs.AbstractShortenRefsTest;
/** This class is generated by {@link org.jetbrains.jet.generators.tests.TestsPackage}. DO NOT MODIFY MANUALLY */
@SuppressWarnings("all")
@@ -115,6 +118,11 @@ public class ShortenRefsTestGenerated extends AbstractShortenRefsTest {
doTest("idea/testData/shortenRefs/constructor/WorksForClassNameRange.kt");
}
@TestMetadata("WorksForClassNameRange2.kt")
public void testWorksForClassNameRange2() throws Exception {
doTest("idea/testData/shortenRefs/constructor/WorksForClassNameRange2.kt");
}
}
@TestMetadata("idea/testData/shortenRefs/java")