some tests made more ready to the live templates advent

This commit is contained in:
peter
2011-10-05 17:37:43 +02:00
parent c70278f810
commit 61e2582ca9
3 changed files with 5 additions and 10 deletions
@@ -1,5 +1,5 @@
class A{
{
boolean a = <caret>false;
boolean a = A<caret>false;
}
}
@@ -133,7 +133,7 @@ public class CompletionStyleTest extends LightCodeInsightTestCase{
configureByFile(path + "/before6.java");
performNormalCompletion();
select(Lookup.REPLACE_SELECT_CHAR, 3); //equals(), true & false go first
select(Lookup.REPLACE_SELECT_CHAR, 0);
checkResultByFile(path + "/after6.java");
}
@@ -238,18 +238,13 @@ public class NormalCompletionTest extends LightFixtureCompletionTestCase {
public void testObjectsInThrowsBlock() throws Exception {
configureByFile("InThrowsCompletion.java");
Arrays.sort(myItems);
assertTrue("Exception not found", Arrays.binarySearch(myItems, "C") > 0);
assertFalse("Found not an Exception", Arrays.binarySearch(myItems, "B") > 0);
assert "C" in myFixture.lookupElementStrings
assert !("B" in myFixture.lookupElementStrings)
}
public void testAfterInstanceof() throws Exception {
configureByFile("AfterInstanceof.java");
assertNotNull(myItems);
Arrays.sort(myItems);
assertTrue("Classes not found after instanceof", Arrays.binarySearch(myItems, "A") >= 0);
assert "A" in myFixture.lookupElementStrings
}
public void testAfterCast1() throws Exception {