summaryrefslogtreecommitdiff
path: root/src/test/java/org
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/java/org')
-rw-r--r--src/test/java/org/javacs/GotoTest.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/test/java/org/javacs/GotoTest.java b/src/test/java/org/javacs/GotoTest.java
index 6587eca..5eb0a52 100644
--- a/src/test/java/org/javacs/GotoTest.java
+++ b/src/test/java/org/javacs/GotoTest.java
@@ -168,6 +168,13 @@ public class GotoTest {
assertThat(doGoto(file, 5, 22), empty());
}
+ @Test
+ public void packagePrivate() {
+ var suggestions = doGoto(file, 50, 42);
+
+ assertThat(suggestions, hasItem("GotoPackagePrivate.java:4"));
+ }
+
private static final JavaLanguageServer server = LanguageServerFixture.getJavaLanguageServer();
private List<String> doGoto(String file, int row, int column) {