diff options
author | George Fraser <george@fivetran.com> | 2019-01-04 23:54:35 -0800 |
---|---|---|
committer | George Fraser <george@fivetran.com> | 2019-01-04 23:54:35 -0800 |
commit | 4bbc893102dd5558c2e5cb9cf94fa1fdfc8b04ae (patch) | |
tree | 3a00f7574c846a93bc6a094bbb8045be52879732 /src/test | |
parent | 1465f556a064e5b8e1fc4154c2b4587ee04f0654 (diff) | |
download | java-language-server-4bbc893102dd5558c2e5cb9cf94fa1fdfc8b04ae.zip |
Test fields
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/java/org/javacs/CodeLensTest.java | 8 | ||||
-rw-r--r-- | src/test/test-project/workspace/src/org/javacs/example/CodeLensField.java | 5 |
2 files changed, 13 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")); + } } diff --git a/src/test/test-project/workspace/src/org/javacs/example/CodeLensField.java b/src/test/test-project/workspace/src/org/javacs/example/CodeLensField.java new file mode 100644 index 0000000..01ead91 --- /dev/null +++ b/src/test/test-project/workspace/src/org/javacs/example/CodeLensField.java @@ -0,0 +1,5 @@ +package org.javacs.example; + +class CodeLensField { + public int foo; +}
\ No newline at end of file |