diff options
author | George Fraser <george@fivetran.com> | 2018-12-31 00:32:13 -0800 |
---|---|---|
committer | George Fraser <george@fivetran.com> | 2018-12-31 00:32:13 -0800 |
commit | 58e19c131c403736b3058e69e3b8cc28da402f28 (patch) | |
tree | dc469a1ccec44b15f20213cfd3d12a9b1252e785 /src/test/java | |
parent | c5ed7d5755568189a09472d52d2dfe88c79bf70a (diff) | |
download | java-language-server-58e19c131c403736b3058e69e3b8cc28da402f28.zip |
Fix
Diffstat (limited to 'src/test/java')
-rw-r--r-- | src/test/java/org/javacs/CompletionsTest.java | 2 | ||||
-rw-r--r-- | src/test/java/org/javacs/FindReferencesTest.java | 8 |
2 files changed, 10 insertions, 0 deletions
diff --git a/src/test/java/org/javacs/CompletionsTest.java b/src/test/java/org/javacs/CompletionsTest.java index 5469dc7..4ae17a3 100644 --- a/src/test/java/org/javacs/CompletionsTest.java +++ b/src/test/java/org/javacs/CompletionsTest.java @@ -14,6 +14,8 @@ import org.junit.Test; public class CompletionsTest extends CompletionsBase { + // TODO rename Autocomplete Complete because Autocomplete is long and ugly + @Test public void staticMember() { var file = "/org/javacs/example/AutocompleteStaticMember.java"; diff --git a/src/test/java/org/javacs/FindReferencesTest.java b/src/test/java/org/javacs/FindReferencesTest.java index e8d51c3..9ce21c7 100644 --- a/src/test/java/org/javacs/FindReferencesTest.java +++ b/src/test/java/org/javacs/FindReferencesTest.java @@ -40,4 +40,12 @@ public class FindReferencesTest { public void findConstructorReferences() { assertThat(items("/org/javacs/example/ConstructorRefs.java", 4, 10), contains("ConstructorRefs.java(9)")); } + + @Test + public void findStackedFieldReferences() { + var file = "/org/javacs/example/StackedFieldReferences.java"; + assertThat(items(file, 4, 9), contains("StackedFieldReferences.java(7)")); + assertThat(items(file, 4, 12), contains("StackedFieldReferences.java(8)")); + assertThat(items(file, 4, 15), contains("StackedFieldReferences.java(9)")); + } } |