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/test-project | |
parent | 77be470a307ab95b022a1c12c150b892df6751f5 (diff) | |
download | java-language-server-971ed1ba1f170ada4e171c1e72eda77840655f5e.zip |
Test cross-package goto
Diffstat (limited to 'src/test/test-project')
3 files changed, 27 insertions, 0 deletions
diff --git a/src/test/test-project/workspace/src/org/javacs/example/GotoOtherPackageMethod.java b/src/test/test-project/workspace/src/org/javacs/example/GotoOtherPackageMethod.java new file mode 100644 index 0000000..a02818f --- /dev/null +++ b/src/test/test-project/workspace/src/org/javacs/example/GotoOtherPackageMethod.java @@ -0,0 +1,13 @@ +package org.javacs.example; + +import java.util.function.Consumer; + +class GotoOtherPackageMethod { + void gotoRun(Runnable r) { + r.run(); + } + + void gotoAccept(Consumer<String> c) { + c.accept("foo"); + } +}
\ No newline at end of file diff --git a/src/test/test-project/workspace/src/org/javacs/other/ImplementsConsumer.java b/src/test/test-project/workspace/src/org/javacs/other/ImplementsConsumer.java new file mode 100644 index 0000000..1e8b907 --- /dev/null +++ b/src/test/test-project/workspace/src/org/javacs/other/ImplementsConsumer.java @@ -0,0 +1,8 @@ +package org.javacs.other; + +import java.util.function.Consumer; + +class ImplementsConsumer implements Consumer<String> { + @Override + public void accept(String foo) { } +}
\ No newline at end of file diff --git a/src/test/test-project/workspace/src/org/javacs/other/ImplementsRunnable.java b/src/test/test-project/workspace/src/org/javacs/other/ImplementsRunnable.java new file mode 100644 index 0000000..6f64355 --- /dev/null +++ b/src/test/test-project/workspace/src/org/javacs/other/ImplementsRunnable.java @@ -0,0 +1,6 @@ +package org.javacs.other; + +class ImplementsRunnable implements Runnable { + @Override + public void run() { } +}
\ No newline at end of file |