summaryrefslogtreecommitdiff
path: root/src/test/java/org/javacs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/java/org/javacs')
-rw-r--r--src/test/java/org/javacs/CodeLensTest.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/test/java/org/javacs/CodeLensTest.java b/src/test/java/org/javacs/CodeLensTest.java
index 893c605..963929c 100644
--- a/src/test/java/org/javacs/CodeLensTest.java
+++ b/src/test/java/org/javacs/CodeLensTest.java
@@ -86,4 +86,12 @@ public class CodeLensTest {
var bad = List.of(new Ptr("org.javacs.example/ConstructorRefs#<init>(int,int)"));
assertFalse(signatureMatches.test(bad));
}
+
+ @Test
+ public void placement() {
+ var lenses = lenses("/org/javacs/example/CodeLensPlacement.java");
+ var titles = titles(lenses);
+ assertThat(titles, hasItem("4:0 references"));
+ assertThat(titles, hasItem("6:0 references"));
+ }
}