diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/test/java/org/javacs/JavaCompilerServiceTest.java | 11 |
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(); |