a test for IDEA-106141 Following Annotation is removed on autocomplete

This commit is contained in:
peter
2013-05-29 14:36:35 +02:00
parent c9314095fa
commit 5a83ab9b49
3 changed files with 20 additions and 0 deletions
@@ -0,0 +1,6 @@
class MyClass {
String hc = this.<caret>
@Annotation
public void myAnnotatedMethod() {}
}
@@ -0,0 +1,6 @@
class MyClass {
String hc = this.toString()<caret>
@Annotation
public void myAnnotatedMethod() {}
}
@@ -14,6 +14,14 @@ public class TabCompletionTest extends LightFixtureCompletionTestCase {
checkResultByFile("MethodLookup3_After.java");
}
public void _testMethodCallBeforeAnnotation() {
String name = getTestName(false);
myFixture.configureByFile(name + ".java");
myFixture.completeBasic();
myFixture.type("tos\t");
checkResultByFile(name + "_After.java");
}
public void testReplaceThisWithSuper() throws Throwable {
configureByFile("ReplaceThisWithSuper.java");
checkResultByFile("ReplaceThisWithSuper_After.java");