mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
test updated
This commit is contained in:
@@ -399,18 +399,22 @@ public class ImportHelperTest extends DaemonAnalyzerTestCase {
|
||||
|
||||
assertEmpty(errs);
|
||||
|
||||
type("int i = ");
|
||||
type("/* ");
|
||||
UIUtil.dispatchAllInvocationEvents();
|
||||
errs = highlightErrors();
|
||||
assertNotEmpty(errs);
|
||||
assertEquals(1, ((PsiJavaFile)getFile()).getImportList().getAllImportStatements().length);
|
||||
PsiImportStatementBase imp = assertOneElement(((PsiJavaFile)getFile()).getImportList().getAllImportStatements());
|
||||
assertEquals("java.util.ArrayList", imp.getImportReference().getQualifiedName());
|
||||
UIUtil.dispatchAllInvocationEvents();
|
||||
|
||||
type("0;//");
|
||||
type(" */ ");
|
||||
UIUtil.dispatchAllInvocationEvents();
|
||||
errs = highlightErrors();
|
||||
assertEmpty(errs);
|
||||
UIUtil.dispatchAllInvocationEvents();
|
||||
|
||||
assertEmpty(((PsiJavaFile)getFile()).getImportList().getAllImportStatements());
|
||||
imp = assertOneElement(((PsiJavaFile)getFile()).getImportList().getAllImportStatements());
|
||||
assertEquals("java.util.ArrayList", imp.getImportReference().getQualifiedName());
|
||||
}
|
||||
|
||||
public void testAutoInsertImportForInnerClass() {
|
||||
|
||||
Reference in New Issue
Block a user