summaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorAndrew Rice <acr31@cam.ac.uk>2018-11-07 15:11:22 +0000
committerAndrew Rice <acr31@cam.ac.uk>2018-11-07 15:11:22 +0000
commit58c484f7dac0a61a0843c7cde98906a4eac9033d (patch)
tree66a9f92f90682846a2dc0322811b9afd7c9626b8 /src/test
parentfbf2e828c51dd5f26b25b3cd47ce7c66be36ea70 (diff)
downloadjava-language-server-58c484f7dac0a61a0843c7cde98906a4eac9033d.zip
Fix compile error in test
Diffstat (limited to 'src/test')
-rw-r--r--src/test/java/org/javacs/JavaCompilerServiceTest.java11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/test/java/org/javacs/JavaCompilerServiceTest.java b/src/test/java/org/javacs/JavaCompilerServiceTest.java
index 764da38..43547d5 100644
--- a/src/test/java/org/javacs/JavaCompilerServiceTest.java
+++ b/src/test/java/org/javacs/JavaCompilerServiceTest.java
@@ -232,7 +232,16 @@ public class JavaCompilerServiceTest {
@Test
public void references() {
- var refs = compiler.references(URI.create("/GotoDefinition.java"), contents("/GotoDefinition.java"), 6, 13);
+ ReportReferencesProgress rrp = new ReportReferencesProgress() {
+ @Override
+ public void scanForPotentialReferences(int nScanned, int nFiles) {}
+
+ @Override
+ public void checkPotentialReferences(int nCompiled, int nPotential) {}
+ };
+ var refs =
+ compiler.references(
+ URI.create("/GotoDefinition.java"), contents("/GotoDefinition.java"), 6, 13, rrp);
boolean found = false;
for (var t : refs) {
var unit = t.getCompilationUnit();