diff options
author | George Fraser <george@fivetran.com> | 2019-01-01 13:56:18 -0800 |
---|---|---|
committer | George Fraser <george@fivetran.com> | 2019-01-01 13:56:18 -0800 |
commit | c1e61a96093a879bcb907f69787223127d53027f (patch) | |
tree | e99ae267a3ffbca5f179ff60392c5fe5005461cc /src/test/java/org/javacs/JavaCompilerServiceTest.java | |
parent | 27aa558c7549d4bb91dbfb63744c0d2e64484d16 (diff) | |
download | java-language-server-c1e61a96093a879bcb907f69787223127d53027f.zip |
Make Ptr more precies
Diffstat (limited to 'src/test/java/org/javacs/JavaCompilerServiceTest.java')
-rw-r--r-- | src/test/java/org/javacs/JavaCompilerServiceTest.java | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/test/java/org/javacs/JavaCompilerServiceTest.java b/src/test/java/org/javacs/JavaCompilerServiceTest.java index db694b5..838d9b5 100644 --- a/src/test/java/org/javacs/JavaCompilerServiceTest.java +++ b/src/test/java/org/javacs/JavaCompilerServiceTest.java @@ -290,8 +290,11 @@ public class JavaCompilerServiceTest { var uri = resourceUri("LocalMethodDoc.java"); var contents = contents("LocalMethodDoc.java"); var method = compiler.compileFocus(uri, contents, 3, 21).methodInvocation().get().activeMethod.get(); - var doc = compiler.docs().methodDoc(method); - assertTrue(doc.isPresent()); + var ptr = new Ptr(method); + var file = compiler.docs().find(ptr).get(); + var parse = compiler.docs().parse(file); + var path = parse.fuzzyFind(ptr).get(); + var doc = parse.doc(path); assertThat(doc.toString(), containsString("A great method")); } |