diff options
author | George Fraser <george@fivetran.com> | 2019-01-05 18:10:43 -0800 |
---|---|---|
committer | George Fraser <george@fivetran.com> | 2019-01-05 18:10:43 -0800 |
commit | 971ed1ba1f170ada4e171c1e72eda77840655f5e (patch) | |
tree | 8593b898f6a228b5478734831549686ada48c6fb /src/test/java | |
parent | 77be470a307ab95b022a1c12c150b892df6751f5 (diff) | |
download | java-language-server-971ed1ba1f170ada4e171c1e72eda77840655f5e.zip |
Test cross-package goto
Diffstat (limited to 'src/test/java')
-rw-r--r-- | src/test/java/org/javacs/GotoTest.java | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/test/java/org/javacs/GotoTest.java b/src/test/java/org/javacs/GotoTest.java index 564071e..6587eca 100644 --- a/src/test/java/org/javacs/GotoTest.java +++ b/src/test/java/org/javacs/GotoTest.java @@ -148,6 +148,20 @@ public class GotoTest { } @Test + public void gotoImplementsRunnable() { + String file = "/org/javacs/example/GotoOtherPackageMethod.java"; + + assertThat(doGoto(file, 7, 12), hasItem("ImplementsRunnable.java:5")); + } + + @Test + public void gotoImplementsConsumer() { + String file = "/org/javacs/example/GotoOtherPackageMethod.java"; + + assertThat(doGoto(file, 11, 12), hasItem("ImplementsConsumer.java:7")); + } + + @Test public void gotoError() { String file = "/org/javacs/example/GotoError.java"; |