summaryrefslogtreecommitdiff
path: root/src/test/java/org/javacs/CompletionsTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/java/org/javacs/CompletionsTest.java')
-rw-r--r--src/test/java/org/javacs/CompletionsTest.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/test/java/org/javacs/CompletionsTest.java b/src/test/java/org/javacs/CompletionsTest.java
index 4370c93..52b1921 100644
--- a/src/test/java/org/javacs/CompletionsTest.java
+++ b/src/test/java/org/javacs/CompletionsTest.java
@@ -768,4 +768,12 @@ public class CompletionsTest extends CompletionsBase {
assertThat(suggestions, hasItem(startsWith("class AutocompleteClassName")));
}
+
+ @Test
+ public void annotationInInnerClass() {
+ var file = "/org/javacs/example/AnnotationInInnerClass.java";
+ var suggestions = insertText(file, 6, 17);
+
+ assertThat(suggestions, hasItem(startsWith("Override")));
+ }
}