completion tests should reflect real-life item order
[idea/community.git] / java / java-tests / testSrc / com / intellij / codeInsight / completion / NormalCompletionOrderingTest.groovy
index de77849ddd9befac6e24fe124daba5a131fd16c0..43e49fc42e02cbfe6a6c5b1dae2efcaf2b14a24c 100644 (file)
@@ -233,16 +233,6 @@ public class NormalCompletionOrderingTest extends CompletionSortingTestCase {
     checkPreferredItems(0, "FooOCSomething", "FooObjectCollector");
   }
 
-  public void testPreselectMostRelevantInTheMiddle() {
-    myFixture.addClass("package foo; public class Elaaaaaaaaaaaaaaaaaaaa {}");
-    invokeCompletion(getTestName(false) + ".java");
-    myFixture.completeBasic();
-    LookupImpl lookup = getLookup();
-    assertPreferredItems(lookup.getList().getSelectedIndex());
-    assertEquals("Elaaaaaaaaaaaaaaaaaaaa", lookup.getItems().get(0).getLookupString());
-    assertEquals("ELEMENT_A", lookup.getCurrentItem().getLookupString());
-  }
-
   public void testPreferSamePackageOverImported() {
     myFixture.addClass("package bar; public class Bar1 {}");
     myFixture.addClass("package bar; public class Bar2 {}");