summaryrefslogtreecommitdiff
path: root/src/test/java
diff options
context:
space:
mode:
authorGeorge Fraser <george@fivetran.com>2019-01-04 23:54:35 -0800
committerGeorge Fraser <george@fivetran.com>2019-01-04 23:54:35 -0800
commit4bbc893102dd5558c2e5cb9cf94fa1fdfc8b04ae (patch)
tree3a00f7574c846a93bc6a094bbb8045be52879732 /src/test/java
parent1465f556a064e5b8e1fc4154c2b4587ee04f0654 (diff)
downloadjava-language-server-4bbc893102dd5558c2e5cb9cf94fa1fdfc8b04ae.zip
Test fields
Diffstat (limited to 'src/test/java')
-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 963929c..61b8095 100644
--- a/src/test/java/org/javacs/CodeLensTest.java
+++ b/src/test/java/org/javacs/CodeLensTest.java
@@ -94,4 +94,12 @@ public class CodeLensTest {
assertThat(titles, hasItem("4:0 references"));
assertThat(titles, hasItem("6:0 references"));
}
+
+ @Test
+ public void field() {
+ var lenses = lenses("/org/javacs/example/CodeLensField.java");
+ var titles = titles(lenses);
+ assertThat(titles, hasItem("3:0 references"));
+ assertThat(titles, hasItem("4:0 references"));
+ }
}