From 7df71630a530ae51d013d85656bf9be37aa84191 Mon Sep 17 00:00:00 2001 From: cheptsov Date: Thu, 28 Feb 2013 19:42:17 +0400 Subject: [PATCH] Bugfix --- tests/com/simpleplugin/SimpleCodeInsightTest.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/com/simpleplugin/SimpleCodeInsightTest.java b/tests/com/simpleplugin/SimpleCodeInsightTest.java index 8e0b3853f..dc09b2505 100644 --- a/tests/com/simpleplugin/SimpleCodeInsightTest.java +++ b/tests/com/simpleplugin/SimpleCodeInsightTest.java @@ -10,7 +10,9 @@ import com.intellij.testFramework.fixtures.LightCodeInsightFixtureTestCase; import com.intellij.usageView.UsageInfo; import com.simpleplugin.psi.SimpleProperty; +import java.util.Arrays; import java.util.Collection; +import java.util.List; public class SimpleCodeInsightTest extends LightCodeInsightFixtureTestCase { @Override @@ -27,7 +29,9 @@ public class SimpleCodeInsightTest extends LightCodeInsightFixtureTestCase { public void testCompletion() { myFixture.configureByFiles("CompleteTestData.java", "DefaultTestData.simple"); myFixture.complete(CompletionType.BASIC, 1); - System.out.println(myFixture.getLookupElementStrings()); + List strings = myFixture.getLookupElementStrings(); + assertTrue(strings.containsAll(Arrays.asList("key\\ with\\ spaces", "language", "message", "tab", "website"))); + assertEquals(5, strings.size()); } public void testAnnotator() {