tests for IDEA-105010 Action "Complete current statement" doesn't work on fields if next field is annotated

This commit is contained in:
peter
2013-05-07 16:19:33 +02:00
parent 4108686ab5
commit a232670766
5 changed files with 25 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
public class Test {
private String s
@Deprecated private String foo;
}

View File

@@ -0,0 +1,5 @@
public class Test {
private String s;<caret>
@Deprecated private String foo;
}

View File

@@ -0,0 +1,5 @@
public class Test {
private String s()
@Deprecated private String foo;
}

View File

@@ -0,0 +1,7 @@
public class Test {
private String s() {
<caret>
}
@Deprecated private String foo;
}

View File

@@ -139,6 +139,9 @@ public class CompleteStatementTest extends EditorActionTestCase {
public void testFieldWithInitializer() throws Exception { doTest(); }
public void testFieldBeforeAnnotation() throws Exception { doTest(); }
public void _testMethodBeforeAnnotation() throws Exception { doTest(); }
public void testParenthesized() throws Exception { doTest(); }
public void testCompleteBreak() throws Exception {