dot & keyword completion tests -> community
authorpeter <peter.gromov@jetbrains.com>
Thu, 15 Oct 2009 12:29:22 +0000 (13:29 +0100)
committerpeter <peter.gromov@jetbrains.com>
Thu, 15 Oct 2009 18:04:13 +0000 (19:04 +0100)
81 files changed:
java/java-tests/testData/codeInsight/completion/dot/Dot1.java [new file with mode: 0644]
java/java-tests/testData/codeInsight/completion/dot/Dot10.java [new file with mode: 0644]
java/java-tests/testData/codeInsight/completion/dot/Dot11.java [new file with mode: 0644]
java/java-tests/testData/codeInsight/completion/dot/Dot12.java [new file with mode: 0644]
java/java-tests/testData/codeInsight/completion/dot/Dot2.java [new file with mode: 0644]
java/java-tests/testData/codeInsight/completion/dot/Dot3.java [new file with mode: 0644]
java/java-tests/testData/codeInsight/completion/dot/Dot4.java [new file with mode: 0644]
java/java-tests/testData/codeInsight/completion/dot/Dot5.java [new file with mode: 0644]
java/java-tests/testData/codeInsight/completion/dot/Dot6.java [new file with mode: 0644]
java/java-tests/testData/codeInsight/completion/dot/Dot7.java [new file with mode: 0644]
java/java-tests/testData/codeInsight/completion/dot/Dot8.java [new file with mode: 0644]
java/java-tests/testData/codeInsight/completion/dot/Dot9.java [new file with mode: 0644]
java/java-tests/testData/codeInsight/completion/keywords/ExtendsInCastTypeParameters-out.java [new file with mode: 0644]
java/java-tests/testData/codeInsight/completion/keywords/ExtendsInCastTypeParameters.java [new file with mode: 0644]
java/java-tests/testData/codeInsight/completion/keywords/ExtendsInMethodParameters-out.java [new file with mode: 0644]
java/java-tests/testData/codeInsight/completion/keywords/ExtendsInMethodParameters.java [new file with mode: 0644]
java/java-tests/testData/codeInsight/completion/keywords/ExtendsWithRightContextInClassTypeParameters-out.java [new file with mode: 0644]
java/java-tests/testData/codeInsight/completion/keywords/ExtendsWithRightContextInClassTypeParameters.java [new file with mode: 0644]
java/java-tests/testData/codeInsight/completion/keywords/ExtraBracketAfterFinally-out.java [new file with mode: 0644]
java/java-tests/testData/codeInsight/completion/keywords/ExtraBracketAfterFinally.java [new file with mode: 0644]
java/java-tests/testData/codeInsight/completion/keywords/ExtraBracketAfterFinally1-out.java [new file with mode: 0644]
java/java-tests/testData/codeInsight/completion/keywords/ExtraBracketAfterFinally1.java [new file with mode: 0644]
java/java-tests/testData/codeInsight/completion/keywords/NullInIf-out.java [new file with mode: 0644]
java/java-tests/testData/codeInsight/completion/keywords/NullInIf.java [new file with mode: 0644]
java/java-tests/testData/codeInsight/completion/keywords/NullInMethodCall.java [new file with mode: 0644]
java/java-tests/testData/codeInsight/completion/keywords/NullInMethodCall2.java [new file with mode: 0644]
java/java-tests/testData/codeInsight/completion/keywords/NullInMethodCall2_After.java [new file with mode: 0644]
java/java-tests/testData/codeInsight/completion/keywords/NullInMethodCall_After.java [new file with mode: 0644]
java/java-tests/testData/codeInsight/completion/keywords/TrueInVariableDeclaration-out.java [new file with mode: 0644]
java/java-tests/testData/codeInsight/completion/keywords/TrueInVariableDeclaration.java [new file with mode: 0644]
java/java-tests/testData/codeInsight/completion/keywords/afterAnnotations.java [new file with mode: 0644]
java/java-tests/testData/codeInsight/completion/keywords/catch-1.java [new file with mode: 0644]
java/java-tests/testData/codeInsight/completion/keywords/classScope-1.java [new file with mode: 0644]
java/java-tests/testData/codeInsight/completion/keywords/classScope-2.java [new file with mode: 0644]
java/java-tests/testData/codeInsight/completion/keywords/classScope-3.java [new file with mode: 0644]
java/java-tests/testData/codeInsight/completion/keywords/classScope-4.java [new file with mode: 0644]
java/java-tests/testData/codeInsight/completion/keywords/continue.java [new file with mode: 0644]
java/java-tests/testData/codeInsight/completion/keywords/continue_after.java [new file with mode: 0644]
java/java-tests/testData/codeInsight/completion/keywords/defaultInAnno.java [new file with mode: 0644]
java/java-tests/testData/codeInsight/completion/keywords/defaultInAnno_after.java [new file with mode: 0644]
java/java-tests/testData/codeInsight/completion/keywords/extends-1.java [new file with mode: 0644]
java/java-tests/testData/codeInsight/completion/keywords/extends-10-result.java [new file with mode: 0644]
java/java-tests/testData/codeInsight/completion/keywords/extends-10.java [new file with mode: 0644]
java/java-tests/testData/codeInsight/completion/keywords/extends-11-result.java [new file with mode: 0644]
java/java-tests/testData/codeInsight/completion/keywords/extends-11.java [new file with mode: 0644]
java/java-tests/testData/codeInsight/completion/keywords/extends-12-result.java [new file with mode: 0644]
java/java-tests/testData/codeInsight/completion/keywords/extends-12.java [new file with mode: 0644]
java/java-tests/testData/codeInsight/completion/keywords/extends-2.java [new file with mode: 0644]
java/java-tests/testData/codeInsight/completion/keywords/extends-3.java [new file with mode: 0644]
java/java-tests/testData/codeInsight/completion/keywords/extends-4.java [new file with mode: 0644]
java/java-tests/testData/codeInsight/completion/keywords/extends-5.java [new file with mode: 0644]
java/java-tests/testData/codeInsight/completion/keywords/extends-6.java [new file with mode: 0644]
java/java-tests/testData/codeInsight/completion/keywords/extends-7-result.java [new file with mode: 0644]
java/java-tests/testData/codeInsight/completion/keywords/extends-7.java [new file with mode: 0644]
java/java-tests/testData/codeInsight/completion/keywords/extends-8-result.java [new file with mode: 0644]
java/java-tests/testData/codeInsight/completion/keywords/extends-8.java [new file with mode: 0644]
java/java-tests/testData/codeInsight/completion/keywords/extends-9-result.java [new file with mode: 0644]
java/java-tests/testData/codeInsight/completion/keywords/extends-9.java [new file with mode: 0644]
java/java-tests/testData/codeInsight/completion/keywords/fileScope-1.java [new file with mode: 0644]
java/java-tests/testData/codeInsight/completion/keywords/fileScope-2.java [new file with mode: 0644]
java/java-tests/testData/codeInsight/completion/keywords/instanceof-1-result.java [new file with mode: 0644]
java/java-tests/testData/codeInsight/completion/keywords/instanceof-1.java [new file with mode: 0644]
java/java-tests/testData/codeInsight/completion/keywords/instanceof-2-result.java [new file with mode: 0644]
java/java-tests/testData/codeInsight/completion/keywords/instanceof-2.java [new file with mode: 0644]
java/java-tests/testData/codeInsight/completion/keywords/instanceof-3-result.java [new file with mode: 0644]
java/java-tests/testData/codeInsight/completion/keywords/instanceof-3.java [new file with mode: 0644]
java/java-tests/testData/codeInsight/completion/keywords/methodScope-1.java [new file with mode: 0644]
java/java-tests/testData/codeInsight/completion/keywords/methodScope-2.java [new file with mode: 0644]
java/java-tests/testData/codeInsight/completion/keywords/methodScope-3.java [new file with mode: 0644]
java/java-tests/testData/codeInsight/completion/keywords/methodScope-4.java [new file with mode: 0644]
java/java-tests/testData/codeInsight/completion/keywords/methodScope-5-out.java [new file with mode: 0644]
java/java-tests/testData/codeInsight/completion/keywords/methodScope-5.java [new file with mode: 0644]
java/java-tests/testData/codeInsight/completion/keywords/super-1.java [new file with mode: 0644]
java/java-tests/testData/codeInsight/completion/keywords/super-2.java [new file with mode: 0644]
java/java-tests/testData/codeInsight/completion/keywords/synchronized-1-result.java [new file with mode: 0644]
java/java-tests/testData/codeInsight/completion/keywords/synchronized-1.java [new file with mode: 0644]
java/java-tests/testData/codeInsight/completion/keywords/synchronized-2-result.java [new file with mode: 0644]
java/java-tests/testData/codeInsight/completion/keywords/synchronized-2.java [new file with mode: 0644]
java/java-tests/testData/codeInsight/completion/keywords/throwsOnSeparateLine.java [new file with mode: 0644]
java/java-tests/testData/codeInsight/completion/keywords/throwsOnSeparateLine_after.java [new file with mode: 0644]
java/java-tests/testData/codeInsight/completion/keywords/tryInExpression.java [new file with mode: 0644]

diff --git a/java/java-tests/testData/codeInsight/completion/dot/Dot1.java b/java/java-tests/testData/codeInsight/completion/dot/Dot1.java
new file mode 100644 (file)
index 0000000..0eefb68
--- /dev/null
@@ -0,0 +1,11 @@
+class Dot1{
+  class A{
+    int a = 0;
+    int foo(){
+  }
+  }
+  static {
+       
+    int a = new A().<caret>
+  }
+}
diff --git a/java/java-tests/testData/codeInsight/completion/dot/Dot10.java b/java/java-tests/testData/codeInsight/completion/dot/Dot10.java
new file mode 100644 (file)
index 0000000..d095741
--- /dev/null
@@ -0,0 +1,18 @@
+/**
+ * Created by IntelliJ IDEA.
+ * User: ik
+ * Date: 23.01.2003
+ * Time: 17:06:57
+ * To change this template use Options | File Templates.
+ */
+public class Dot9 {
+    public static class A{
+        public A(){}
+        public void foo(){}
+    }
+
+    public static void main(String[] args) {
+        long[] arr = new long[0];
+        arr.<caret>
+    }
+}
diff --git a/java/java-tests/testData/codeInsight/completion/dot/Dot11.java b/java/java-tests/testData/codeInsight/completion/dot/Dot11.java
new file mode 100644 (file)
index 0000000..8722592
--- /dev/null
@@ -0,0 +1,18 @@
+/**
+ * Created by IntelliJ IDEA.
+ * User: ik
+ * Date: 27.01.2003
+ * Time: 19:35:37
+ * To change this template use Options | File Templates.
+ */
+public class Dot11 extends A {
+    void foo1(){}
+
+    {
+        this.<caret>
+    }
+}
+
+class A{
+    void foo(){}
+}
\ No newline at end of file
diff --git a/java/java-tests/testData/codeInsight/completion/dot/Dot12.java b/java/java-tests/testData/codeInsight/completion/dot/Dot12.java
new file mode 100644 (file)
index 0000000..a834a33
--- /dev/null
@@ -0,0 +1,20 @@
+/**
+ * Created by IntelliJ IDEA.
+ * User: ik
+ * Date: 27.01.2003
+ * Time: 19:37:12
+ * To change this template use Options | File Templates.
+ */
+
+public class Dot12 extends A {
+    void foo1(){}
+
+    {
+
+        super.<caret>
+    }
+}
+
+class A{
+    void foo(){}
+}
\ No newline at end of file
diff --git a/java/java-tests/testData/codeInsight/completion/dot/Dot2.java b/java/java-tests/testData/codeInsight/completion/dot/Dot2.java
new file mode 100644 (file)
index 0000000..52ea39e
--- /dev/null
@@ -0,0 +1,11 @@
+class Dot2{
+  class A{
+    static int a = 0;
+    static int foo(){
+  }
+  }
+  static {
+       
+    int a = A.<caret>
+  }
+}
diff --git a/java/java-tests/testData/codeInsight/completion/dot/Dot3.java b/java/java-tests/testData/codeInsight/completion/dot/Dot3.java
new file mode 100644 (file)
index 0000000..08b67b6
--- /dev/null
@@ -0,0 +1,15 @@
+class Dot3{
+  class A{
+    int a = 0;
+    int foo(){
+  }
+  }
+  static {
+    
+    Object a = new A(){
+      static int foo(){
+        int c = super.<caret>
+      }
+    };
+  }
+}
diff --git a/java/java-tests/testData/codeInsight/completion/dot/Dot4.java b/java/java-tests/testData/codeInsight/completion/dot/Dot4.java
new file mode 100644 (file)
index 0000000..860ab1b
--- /dev/null
@@ -0,0 +1,10 @@
+class Dot4{
+  class A{
+    static int a = 0;
+    int foo(){
+    }
+  }
+  static {
+    int a = new A().<caret>
+  }
+}
diff --git a/java/java-tests/testData/codeInsight/completion/dot/Dot5.java b/java/java-tests/testData/codeInsight/completion/dot/Dot5.java
new file mode 100644 (file)
index 0000000..800b55c
--- /dev/null
@@ -0,0 +1,12 @@
+import java.<caret>
+
+class Dot5{
+  class A{
+    static int a = 0;
+    int foo(){
+    }
+  }
+  static {
+    int a = new A().
+  }
+}
diff --git a/java/java-tests/testData/codeInsight/completion/dot/Dot6.java b/java/java-tests/testData/codeInsight/completion/dot/Dot6.java
new file mode 100644 (file)
index 0000000..8de1430
--- /dev/null
@@ -0,0 +1,5 @@
+class Dot6{
+  public static void main(String[] args){
+    int a = args[0].<caret>
+  }
+}
diff --git a/java/java-tests/testData/codeInsight/completion/dot/Dot7.java b/java/java-tests/testData/codeInsight/completion/dot/Dot7.java
new file mode 100644 (file)
index 0000000..819f424
--- /dev/null
@@ -0,0 +1,5 @@
+class Dot7{
+  public static void main(String[] args){
+    int a = args.<caret>
+  }
+}
diff --git a/java/java-tests/testData/codeInsight/completion/dot/Dot8.java b/java/java-tests/testData/codeInsight/completion/dot/Dot8.java
new file mode 100644 (file)
index 0000000..85ef2ee
--- /dev/null
@@ -0,0 +1,19 @@
+/**
+ * Created by IntelliJ IDEA.
+ * User: ik
+ * Date: 23.01.2003
+ * Time: 15:04:45
+ * To change this template use Options | File Templates.
+ */
+public class Dot8 {
+
+    {
+        new A().<caret>
+    }
+}
+class A{
+    public String toString(){
+
+        return "".;
+    }
+}
diff --git a/java/java-tests/testData/codeInsight/completion/dot/Dot9.java b/java/java-tests/testData/codeInsight/completion/dot/Dot9.java
new file mode 100644 (file)
index 0000000..1cdf11d
--- /dev/null
@@ -0,0 +1,17 @@
+/**
+ * Created by IntelliJ IDEA.
+ * User: ik
+ * Date: 23.01.2003
+ * Time: 17:06:57
+ * To change this template use Options | File Templates.
+ */
+public class Dot9 {
+    public static class A{
+        public A(){}
+        public void foo(){}
+    }
+
+    public static void main(String[] args) {
+        new A().<caret>
+    }
+}
diff --git a/java/java-tests/testData/codeInsight/completion/keywords/ExtendsInCastTypeParameters-out.java b/java/java-tests/testData/codeInsight/completion/keywords/ExtendsInCastTypeParameters-out.java
new file mode 100644 (file)
index 0000000..789404f
--- /dev/null
@@ -0,0 +1,7 @@
+
+public class Main {
+
+    public static void main() {
+        x = (ProceedingJoinPoint<? extends <caret>>
+    }
+}
diff --git a/java/java-tests/testData/codeInsight/completion/keywords/ExtendsInCastTypeParameters.java b/java/java-tests/testData/codeInsight/completion/keywords/ExtendsInCastTypeParameters.java
new file mode 100644 (file)
index 0000000..8f58802
--- /dev/null
@@ -0,0 +1,7 @@
+
+public class Main {
+
+    public static void main() {
+        x = (ProceedingJoinPoint<? ext<caret>>
+    }
+}
diff --git a/java/java-tests/testData/codeInsight/completion/keywords/ExtendsInMethodParameters-out.java b/java/java-tests/testData/codeInsight/completion/keywords/ExtendsInMethodParameters-out.java
new file mode 100644 (file)
index 0000000..0fae50d
--- /dev/null
@@ -0,0 +1,5 @@
+public class Xxx {
+
+    <T extends <caret>
+
+}
\ No newline at end of file
diff --git a/java/java-tests/testData/codeInsight/completion/keywords/ExtendsInMethodParameters.java b/java/java-tests/testData/codeInsight/completion/keywords/ExtendsInMethodParameters.java
new file mode 100644 (file)
index 0000000..3feb130
--- /dev/null
@@ -0,0 +1,5 @@
+public class Xxx {
+
+    <T ext<caret>
+
+}
\ No newline at end of file
diff --git a/java/java-tests/testData/codeInsight/completion/keywords/ExtendsWithRightContextInClassTypeParameters-out.java b/java/java-tests/testData/codeInsight/completion/keywords/ExtendsWithRightContextInClassTypeParameters-out.java
new file mode 100644 (file)
index 0000000..1968e30
--- /dev/null
@@ -0,0 +1,3 @@
+class Foo<T extends <caret>A> {
+
+}
diff --git a/java/java-tests/testData/codeInsight/completion/keywords/ExtendsWithRightContextInClassTypeParameters.java b/java/java-tests/testData/codeInsight/completion/keywords/ExtendsWithRightContextInClassTypeParameters.java
new file mode 100644 (file)
index 0000000..c90ad32
--- /dev/null
@@ -0,0 +1,3 @@
+class Foo<T ext<caret> A> {
+
+}
diff --git a/java/java-tests/testData/codeInsight/completion/keywords/ExtraBracketAfterFinally-out.java b/java/java-tests/testData/codeInsight/completion/keywords/ExtraBracketAfterFinally-out.java
new file mode 100644 (file)
index 0000000..674fc42
--- /dev/null
@@ -0,0 +1,12 @@
+
+public class Main {
+
+    public static void main() {
+        try {
+            
+        } finally {<caret>
+
+        }
+
+    }
+}
diff --git a/java/java-tests/testData/codeInsight/completion/keywords/ExtraBracketAfterFinally.java b/java/java-tests/testData/codeInsight/completion/keywords/ExtraBracketAfterFinally.java
new file mode 100644 (file)
index 0000000..81df57d
--- /dev/null
@@ -0,0 +1,12 @@
+
+public class Main {
+
+    public static void main() {
+        try {
+            
+        } final<caret> {
+
+        }
+
+    }
+}
diff --git a/java/java-tests/testData/codeInsight/completion/keywords/ExtraBracketAfterFinally1-out.java b/java/java-tests/testData/codeInsight/completion/keywords/ExtraBracketAfterFinally1-out.java
new file mode 100644 (file)
index 0000000..edb1b9a
--- /dev/null
@@ -0,0 +1,12 @@
+
+public class Main {
+
+    public static void main() {
+        try {
+            
+        } finally {
+            <caret>
+        }
+
+    }
+}
diff --git a/java/java-tests/testData/codeInsight/completion/keywords/ExtraBracketAfterFinally1.java b/java/java-tests/testData/codeInsight/completion/keywords/ExtraBracketAfterFinally1.java
new file mode 100644 (file)
index 0000000..1cd4a6d
--- /dev/null
@@ -0,0 +1,10 @@
+
+public class Main {
+
+    public static void main() {
+        try {
+            
+        } final<caret>
+
+    }
+}
diff --git a/java/java-tests/testData/codeInsight/completion/keywords/NullInIf-out.java b/java/java-tests/testData/codeInsight/completion/keywords/NullInIf-out.java
new file mode 100644 (file)
index 0000000..9fd6134
--- /dev/null
@@ -0,0 +1,8 @@
+
+public class Main {
+
+    public static void main() {
+        if (null<caret>)
+
+    }
+}
diff --git a/java/java-tests/testData/codeInsight/completion/keywords/NullInIf.java b/java/java-tests/testData/codeInsight/completion/keywords/NullInIf.java
new file mode 100644 (file)
index 0000000..421cf16
--- /dev/null
@@ -0,0 +1,8 @@
+
+public class Main {
+
+    public static void main() {
+        if (nu<caret>)
+
+    }
+}
diff --git a/java/java-tests/testData/codeInsight/completion/keywords/NullInMethodCall.java b/java/java-tests/testData/codeInsight/completion/keywords/NullInMethodCall.java
new file mode 100644 (file)
index 0000000..be80348
--- /dev/null
@@ -0,0 +1,7 @@
+class Null {
+  public static void main(String[] argv) {
+    StringBuffer buf = new StringBuffer();
+    
+    buf.append(nu<caret>);
+  }
+}
\ No newline at end of file
diff --git a/java/java-tests/testData/codeInsight/completion/keywords/NullInMethodCall2.java b/java/java-tests/testData/codeInsight/completion/keywords/NullInMethodCall2.java
new file mode 100644 (file)
index 0000000..2233039
--- /dev/null
@@ -0,0 +1,7 @@
+class Null {
+  public static void main(String[] argv) {
+    StringBuffer buf = new StringBuffer();
+    
+    buf.append(Null.nu<caret>);
+  }
+}
\ No newline at end of file
diff --git a/java/java-tests/testData/codeInsight/completion/keywords/NullInMethodCall2_After.java b/java/java-tests/testData/codeInsight/completion/keywords/NullInMethodCall2_After.java
new file mode 100644 (file)
index 0000000..2233039
--- /dev/null
@@ -0,0 +1,7 @@
+class Null {
+  public static void main(String[] argv) {
+    StringBuffer buf = new StringBuffer();
+    
+    buf.append(Null.nu<caret>);
+  }
+}
\ No newline at end of file
diff --git a/java/java-tests/testData/codeInsight/completion/keywords/NullInMethodCall_After.java b/java/java-tests/testData/codeInsight/completion/keywords/NullInMethodCall_After.java
new file mode 100644 (file)
index 0000000..46fa664
--- /dev/null
@@ -0,0 +1,7 @@
+class Null {
+  public static void main(String[] argv) {
+    StringBuffer buf = new StringBuffer();
+    
+    buf.append(null);
+  }
+}
\ No newline at end of file
diff --git a/java/java-tests/testData/codeInsight/completion/keywords/TrueInVariableDeclaration-out.java b/java/java-tests/testData/codeInsight/completion/keywords/TrueInVariableDeclaration-out.java
new file mode 100644 (file)
index 0000000..c2f393f
--- /dev/null
@@ -0,0 +1,8 @@
+
+public class Main {
+
+    public static void main() {
+        boolean b = true<caret>
+
+    }
+}
diff --git a/java/java-tests/testData/codeInsight/completion/keywords/TrueInVariableDeclaration.java b/java/java-tests/testData/codeInsight/completion/keywords/TrueInVariableDeclaration.java
new file mode 100644 (file)
index 0000000..13ee5ed
--- /dev/null
@@ -0,0 +1,8 @@
+
+public class Main {
+
+    public static void main() {
+        boolean b = tr<caret>
+
+    }
+}
diff --git a/java/java-tests/testData/codeInsight/completion/keywords/afterAnnotations.java b/java/java-tests/testData/codeInsight/completion/keywords/afterAnnotations.java
new file mode 100644 (file)
index 0000000..1e7c477
--- /dev/null
@@ -0,0 +1,2 @@
+@Deprecated
+<caret>
\ No newline at end of file
diff --git a/java/java-tests/testData/codeInsight/completion/keywords/catch-1.java b/java/java-tests/testData/codeInsight/completion/keywords/catch-1.java
new file mode 100644 (file)
index 0000000..ba5ce57
--- /dev/null
@@ -0,0 +1,8 @@
+public class A{
+ public void method(){
+  try{
+   String str = "";
+  }
+  <caret>
+ }
+}
diff --git a/java/java-tests/testData/codeInsight/completion/keywords/classScope-1.java b/java/java-tests/testData/codeInsight/completion/keywords/classScope-1.java
new file mode 100644 (file)
index 0000000..ed5717c
--- /dev/null
@@ -0,0 +1 @@
+public <caret>
diff --git a/java/java-tests/testData/codeInsight/completion/keywords/classScope-2.java b/java/java-tests/testData/codeInsight/completion/keywords/classScope-2.java
new file mode 100644 (file)
index 0000000..44060e3
--- /dev/null
@@ -0,0 +1 @@
+abstract <caret>
diff --git a/java/java-tests/testData/codeInsight/completion/keywords/classScope-3.java b/java/java-tests/testData/codeInsight/completion/keywords/classScope-3.java
new file mode 100644 (file)
index 0000000..09ead44
--- /dev/null
@@ -0,0 +1 @@
+class <caret>
diff --git a/java/java-tests/testData/codeInsight/completion/keywords/classScope-4.java b/java/java-tests/testData/codeInsight/completion/keywords/classScope-4.java
new file mode 100644 (file)
index 0000000..0f6c3fd
--- /dev/null
@@ -0,0 +1,3 @@
+class A{
+<caret>
+}
diff --git a/java/java-tests/testData/codeInsight/completion/keywords/continue.java b/java/java-tests/testData/codeInsight/completion/keywords/continue.java
new file mode 100644 (file)
index 0000000..9d33f53
--- /dev/null
@@ -0,0 +1,6 @@
+
+public class Foo {
+    {
+        for(int i;;) { cont<caret> }
+    }
+}
\ No newline at end of file
diff --git a/java/java-tests/testData/codeInsight/completion/keywords/continue_after.java b/java/java-tests/testData/codeInsight/completion/keywords/continue_after.java
new file mode 100644 (file)
index 0000000..cf2b10a
--- /dev/null
@@ -0,0 +1,6 @@
+
+public class Foo {
+    {
+        for(int i;;) { continue; }
+    }
+}
\ No newline at end of file
diff --git a/java/java-tests/testData/codeInsight/completion/keywords/defaultInAnno.java b/java/java-tests/testData/codeInsight/completion/keywords/defaultInAnno.java
new file mode 100644 (file)
index 0000000..c07be64
--- /dev/null
@@ -0,0 +1,3 @@
+@interface Foo {
+  String foo() def<caret>
+}
\ No newline at end of file
diff --git a/java/java-tests/testData/codeInsight/completion/keywords/defaultInAnno_after.java b/java/java-tests/testData/codeInsight/completion/keywords/defaultInAnno_after.java
new file mode 100644 (file)
index 0000000..f15ebae
--- /dev/null
@@ -0,0 +1,3 @@
+@interface Foo {
+  String foo() default <caret>
+}
\ No newline at end of file
diff --git a/java/java-tests/testData/codeInsight/completion/keywords/extends-1.java b/java/java-tests/testData/codeInsight/completion/keywords/extends-1.java
new file mode 100644 (file)
index 0000000..a928948
--- /dev/null
@@ -0,0 +1 @@
+class x3 <caret>
diff --git a/java/java-tests/testData/codeInsight/completion/keywords/extends-10-result.java b/java/java-tests/testData/codeInsight/completion/keywords/extends-10-result.java
new file mode 100644 (file)
index 0000000..9a954ae
--- /dev/null
@@ -0,0 +1,3 @@
+class A{
+ void <T extends <caret>>foo(){}
+}
\ No newline at end of file
diff --git a/java/java-tests/testData/codeInsight/completion/keywords/extends-10.java b/java/java-tests/testData/codeInsight/completion/keywords/extends-10.java
new file mode 100644 (file)
index 0000000..68da0e9
--- /dev/null
@@ -0,0 +1,3 @@
+class A{
+ void <T e<caret>>foo(){}
+}
\ No newline at end of file
diff --git a/java/java-tests/testData/codeInsight/completion/keywords/extends-11-result.java b/java/java-tests/testData/codeInsight/completion/keywords/extends-11-result.java
new file mode 100644 (file)
index 0000000..87e818a
--- /dev/null
@@ -0,0 +1,3 @@
+class A{
+ void <T extends String, V extends <caret>>foo(){}
+}
\ No newline at end of file
diff --git a/java/java-tests/testData/codeInsight/completion/keywords/extends-11.java b/java/java-tests/testData/codeInsight/completion/keywords/extends-11.java
new file mode 100644 (file)
index 0000000..a8e5fc0
--- /dev/null
@@ -0,0 +1,3 @@
+class A{
+ void <T extends String, V e<caret>>foo(){}
+}
\ No newline at end of file
diff --git a/java/java-tests/testData/codeInsight/completion/keywords/extends-12-result.java b/java/java-tests/testData/codeInsight/completion/keywords/extends-12-result.java
new file mode 100644 (file)
index 0000000..7127a52
--- /dev/null
@@ -0,0 +1,5 @@
+class A{
+ {
+   Collection<? extends <caret>>
+ }
+}
\ No newline at end of file
diff --git a/java/java-tests/testData/codeInsight/completion/keywords/extends-12.java b/java/java-tests/testData/codeInsight/completion/keywords/extends-12.java
new file mode 100644 (file)
index 0000000..2cc2335
--- /dev/null
@@ -0,0 +1,5 @@
+class A{
+ {
+   Collection<? ex<caret>>
+ }
+}
\ No newline at end of file
diff --git a/java/java-tests/testData/codeInsight/completion/keywords/extends-2.java b/java/java-tests/testData/codeInsight/completion/keywords/extends-2.java
new file mode 100644 (file)
index 0000000..4139918
--- /dev/null
@@ -0,0 +1,3 @@
+class AAA{}
+
+class BBB extends <caret>
diff --git a/java/java-tests/testData/codeInsight/completion/keywords/extends-3.java b/java/java-tests/testData/codeInsight/completion/keywords/extends-3.java
new file mode 100644 (file)
index 0000000..ce7fb12
--- /dev/null
@@ -0,0 +1,5 @@
+class AAA{}
+
+interface CCC{}
+
+class BBB extends <caret>
diff --git a/java/java-tests/testData/codeInsight/completion/keywords/extends-4.java b/java/java-tests/testData/codeInsight/completion/keywords/extends-4.java
new file mode 100644 (file)
index 0000000..ac0b51b
--- /dev/null
@@ -0,0 +1,5 @@
+class AAA{}
+
+interface CCC{}
+
+class BBB implements <caret>
diff --git a/java/java-tests/testData/codeInsight/completion/keywords/extends-5.java b/java/java-tests/testData/codeInsight/completion/keywords/extends-5.java
new file mode 100644 (file)
index 0000000..ca5ec8e
--- /dev/null
@@ -0,0 +1,3 @@
+class AAA{}
+
+interface BBB extends <caret>
diff --git a/java/java-tests/testData/codeInsight/completion/keywords/extends-6.java b/java/java-tests/testData/codeInsight/completion/keywords/extends-6.java
new file mode 100644 (file)
index 0000000..4308b67
--- /dev/null
@@ -0,0 +1,3 @@
+interface AAA{}
+
+interface BBB extends Runnable, <caret>
diff --git a/java/java-tests/testData/codeInsight/completion/keywords/extends-7-result.java b/java/java-tests/testData/codeInsight/completion/keywords/extends-7-result.java
new file mode 100644 (file)
index 0000000..e768367
--- /dev/null
@@ -0,0 +1,3 @@
+class AAA{}
+
+class BBB extends AAA implements <caret>
diff --git a/java/java-tests/testData/codeInsight/completion/keywords/extends-7.java b/java/java-tests/testData/codeInsight/completion/keywords/extends-7.java
new file mode 100644 (file)
index 0000000..20b561a
--- /dev/null
@@ -0,0 +1,3 @@
+class AAA{}
+
+class BBB extends AAA i<caret>
diff --git a/java/java-tests/testData/codeInsight/completion/keywords/extends-8-result.java b/java/java-tests/testData/codeInsight/completion/keywords/extends-8-result.java
new file mode 100644 (file)
index 0000000..37a271c
--- /dev/null
@@ -0,0 +1,4 @@
+class AAA{}
+
+class BBB extends AAA implements <caret>{
+}
diff --git a/java/java-tests/testData/codeInsight/completion/keywords/extends-8.java b/java/java-tests/testData/codeInsight/completion/keywords/extends-8.java
new file mode 100644 (file)
index 0000000..80dbed3
--- /dev/null
@@ -0,0 +1,4 @@
+class AAA{}
+
+class BBB extends AAA i<caret> {
+}
diff --git a/java/java-tests/testData/codeInsight/completion/keywords/extends-9-result.java b/java/java-tests/testData/codeInsight/completion/keywords/extends-9-result.java
new file mode 100644 (file)
index 0000000..0a95953
--- /dev/null
@@ -0,0 +1 @@
+interface AAAA extends <caret>
\ No newline at end of file
diff --git a/java/java-tests/testData/codeInsight/completion/keywords/extends-9.java b/java/java-tests/testData/codeInsight/completion/keywords/extends-9.java
new file mode 100644 (file)
index 0000000..bd85a41
--- /dev/null
@@ -0,0 +1 @@
+interface AAAA e<caret>
\ No newline at end of file
diff --git a/java/java-tests/testData/codeInsight/completion/keywords/fileScope-1.java b/java/java-tests/testData/codeInsight/completion/keywords/fileScope-1.java
new file mode 100644 (file)
index 0000000..113fdcf
--- /dev/null
@@ -0,0 +1 @@
+<caret>
diff --git a/java/java-tests/testData/codeInsight/completion/keywords/fileScope-2.java b/java/java-tests/testData/codeInsight/completion/keywords/fileScope-2.java
new file mode 100644 (file)
index 0000000..faee6dc
--- /dev/null
@@ -0,0 +1,3 @@
+package myPackage;
+
+<caret>
diff --git a/java/java-tests/testData/codeInsight/completion/keywords/instanceof-1-result.java b/java/java-tests/testData/codeInsight/completion/keywords/instanceof-1-result.java
new file mode 100644 (file)
index 0000000..b869368
--- /dev/null
@@ -0,0 +1,5 @@
+public class A{
+ public void method(){
+  boolean x = this instanceof <caret>
+ }
+}
diff --git a/java/java-tests/testData/codeInsight/completion/keywords/instanceof-1.java b/java/java-tests/testData/codeInsight/completion/keywords/instanceof-1.java
new file mode 100644 (file)
index 0000000..0204407
--- /dev/null
@@ -0,0 +1,5 @@
+public class A{
+ public void method(){
+  boolean x = this i<caret>
+ }
+}
diff --git a/java/java-tests/testData/codeInsight/completion/keywords/instanceof-2-result.java b/java/java-tests/testData/codeInsight/completion/keywords/instanceof-2-result.java
new file mode 100644 (file)
index 0000000..b42010d
--- /dev/null
@@ -0,0 +1,5 @@
+public class A{
+ public void method(){
+  boolean x = super <caret>
+ }
+}
diff --git a/java/java-tests/testData/codeInsight/completion/keywords/instanceof-2.java b/java/java-tests/testData/codeInsight/completion/keywords/instanceof-2.java
new file mode 100644 (file)
index 0000000..b42010d
--- /dev/null
@@ -0,0 +1,5 @@
+public class A{
+ public void method(){
+  boolean x = super <caret>
+ }
+}
diff --git a/java/java-tests/testData/codeInsight/completion/keywords/instanceof-3-result.java b/java/java-tests/testData/codeInsight/completion/keywords/instanceof-3-result.java
new file mode 100644 (file)
index 0000000..9bc7e1c
--- /dev/null
@@ -0,0 +1,6 @@
+public class A{
+ public void method(){
+  String str = "";
+  boolean x = str instanceof <caret>
+ }
+}
diff --git a/java/java-tests/testData/codeInsight/completion/keywords/instanceof-3.java b/java/java-tests/testData/codeInsight/completion/keywords/instanceof-3.java
new file mode 100644 (file)
index 0000000..4cb0574
--- /dev/null
@@ -0,0 +1,6 @@
+public class A{
+ public void method(){
+  String str = "";
+  boolean x = str i<caret>
+ }
+}
diff --git a/java/java-tests/testData/codeInsight/completion/keywords/methodScope-1.java b/java/java-tests/testData/codeInsight/completion/keywords/methodScope-1.java
new file mode 100644 (file)
index 0000000..640faaa
--- /dev/null
@@ -0,0 +1,3 @@
+public class A{
+ public void method() <caret> {}
+}
diff --git a/java/java-tests/testData/codeInsight/completion/keywords/methodScope-2.java b/java/java-tests/testData/codeInsight/completion/keywords/methodScope-2.java
new file mode 100644 (file)
index 0000000..965cfb8
--- /dev/null
@@ -0,0 +1,4 @@
+public class A{
+ public void method(<caret>){
+ }
+}
diff --git a/java/java-tests/testData/codeInsight/completion/keywords/methodScope-3.java b/java/java-tests/testData/codeInsight/completion/keywords/methodScope-3.java
new file mode 100644 (file)
index 0000000..dd99cb7
--- /dev/null
@@ -0,0 +1,5 @@
+public class A{
+ public void method(){
+  <caret>
+ }
+}
diff --git a/java/java-tests/testData/codeInsight/completion/keywords/methodScope-4.java b/java/java-tests/testData/codeInsight/completion/keywords/methodScope-4.java
new file mode 100644 (file)
index 0000000..dd99cb7
--- /dev/null
@@ -0,0 +1,5 @@
+public class A{
+ public void method(){
+  <caret>
+ }
+}
diff --git a/java/java-tests/testData/codeInsight/completion/keywords/methodScope-5-out.java b/java/java-tests/testData/codeInsight/completion/keywords/methodScope-5-out.java
new file mode 100644 (file)
index 0000000..1fdb389
--- /dev/null
@@ -0,0 +1,5 @@
+public class A{
+ public void method(final String){
+  
+ }
+}
diff --git a/java/java-tests/testData/codeInsight/completion/keywords/methodScope-5.java b/java/java-tests/testData/codeInsight/completion/keywords/methodScope-5.java
new file mode 100644 (file)
index 0000000..93adde1
--- /dev/null
@@ -0,0 +1,5 @@
+public class A{
+ public void method(fi<caret> String){
+  
+ }
+}
diff --git a/java/java-tests/testData/codeInsight/completion/keywords/super-1.java b/java/java-tests/testData/codeInsight/completion/keywords/super-1.java
new file mode 100644 (file)
index 0000000..4450560
--- /dev/null
@@ -0,0 +1,7 @@
+class B{
+ class A{
+  {
+   B.<caret>
+  }
+ }
+}
\ No newline at end of file
diff --git a/java/java-tests/testData/codeInsight/completion/keywords/super-2.java b/java/java-tests/testData/codeInsight/completion/keywords/super-2.java
new file mode 100644 (file)
index 0000000..390b24a
--- /dev/null
@@ -0,0 +1,5 @@
+class A{
+ {
+ String.<caret>
+ }
+}
\ No newline at end of file
diff --git a/java/java-tests/testData/codeInsight/completion/keywords/synchronized-1-result.java b/java/java-tests/testData/codeInsight/completion/keywords/synchronized-1-result.java
new file mode 100644 (file)
index 0000000..f9fb470
--- /dev/null
@@ -0,0 +1,7 @@
+class A {
+  void foo () {
+    new Runnable () {
+      public synchronized <caret>
+    };
+  }
+}
\ No newline at end of file
diff --git a/java/java-tests/testData/codeInsight/completion/keywords/synchronized-1.java b/java/java-tests/testData/codeInsight/completion/keywords/synchronized-1.java
new file mode 100644 (file)
index 0000000..692b71b
--- /dev/null
@@ -0,0 +1,7 @@
+class A {
+  void foo () {
+    new Runnable () {
+      public synch<caret>
+    };
+  }
+}
\ No newline at end of file
diff --git a/java/java-tests/testData/codeInsight/completion/keywords/synchronized-2-result.java b/java/java-tests/testData/codeInsight/completion/keywords/synchronized-2-result.java
new file mode 100644 (file)
index 0000000..859333d
--- /dev/null
@@ -0,0 +1,6 @@
+class Test {
+    void foo() {
+        if (true) {
+        } else synchronized(<caret>)
+    }
+}
diff --git a/java/java-tests/testData/codeInsight/completion/keywords/synchronized-2.java b/java/java-tests/testData/codeInsight/completion/keywords/synchronized-2.java
new file mode 100644 (file)
index 0000000..e2e5fe7
--- /dev/null
@@ -0,0 +1,6 @@
+class Test {
+    void foo() {
+        if (true) {
+        } else syn<caret>
+    }
+}
diff --git a/java/java-tests/testData/codeInsight/completion/keywords/throwsOnSeparateLine.java b/java/java-tests/testData/codeInsight/completion/keywords/throwsOnSeparateLine.java
new file mode 100644 (file)
index 0000000..cbff613
--- /dev/null
@@ -0,0 +1,5 @@
+
+public class Foo {
+  void foo()
+  th<caret>
+}
\ No newline at end of file
diff --git a/java/java-tests/testData/codeInsight/completion/keywords/throwsOnSeparateLine_after.java b/java/java-tests/testData/codeInsight/completion/keywords/throwsOnSeparateLine_after.java
new file mode 100644 (file)
index 0000000..f0adeda
--- /dev/null
@@ -0,0 +1,5 @@
+
+public class Foo {
+  void foo()
+  throws <caret>
+}
\ No newline at end of file
diff --git a/java/java-tests/testData/codeInsight/completion/keywords/tryInExpression.java b/java/java-tests/testData/codeInsight/completion/keywords/tryInExpression.java
new file mode 100644 (file)
index 0000000..0e0753a
--- /dev/null
@@ -0,0 +1,5 @@
+public class MessageBean {
+ {
+    String containingClass = ((String) t<caret>    
+ }
+}