summaryrefslogtreecommitdiff
path: root/src/test/java
diff options
context:
space:
mode:
authorGeorge Fraser <george@fivetran.com>2018-12-31 00:32:13 -0800
committerGeorge Fraser <george@fivetran.com>2018-12-31 00:32:13 -0800
commit58e19c131c403736b3058e69e3b8cc28da402f28 (patch)
treedc469a1ccec44b15f20213cfd3d12a9b1252e785 /src/test/java
parentc5ed7d5755568189a09472d52d2dfe88c79bf70a (diff)
downloadjava-language-server-58e19c131c403736b3058e69e3b8cc28da402f28.zip
Fix
Diffstat (limited to 'src/test/java')
-rw-r--r--src/test/java/org/javacs/CompletionsTest.java2
-rw-r--r--src/test/java/org/javacs/FindReferencesTest.java8
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)"));
+ }
}