mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
some tests made more ready to the live templates advent
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
class A{
|
||||
{
|
||||
boolean a = <caret>false;
|
||||
boolean a = A<caret>false;
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -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");
|
||||
}
|
||||
|
||||
|
||||
+3
-8
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user