typing 'new File(' shouldn't insert some File* imported class when java.io.File is not imported yet

This commit is contained in:
peter
2012-01-17 17:57:53 +01:00
parent face21abec
commit c975d54b7a
3 changed files with 6 additions and 2 deletions
@@ -1100,6 +1100,10 @@ public class UTest {
edt { myFixture.performEditorAction IdeActions.ACTION_EDITOR_MOVE_CARET_DOWN }
type ' '
assert myFixture.file.text.contains('Foo239Util2 ')
myFixture.configureByText "a.java", "class Foo {{ <caret> }}"
type 'new Foo239('
assert myFixture.file.text.contains('new Foo239()')
}
public void testTypingFirstVarargDot() {