mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
a test for IDEA-106141 Following Annotation is removed on autocomplete
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
class MyClass {
|
||||
String hc = this.<caret>
|
||||
|
||||
@Annotation
|
||||
public void myAnnotatedMethod() {}
|
||||
}
|
||||
+6
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user