diff options
Diffstat (limited to 'src/test/java/org/javacs')
-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"; |