diff options
author | George Fraser <george@fivetran.com> | 2019-04-01 23:56:27 -0700 |
---|---|---|
committer | George Fraser <george@fivetran.com> | 2019-04-01 23:56:27 -0700 |
commit | fe2080d0cd62a66197f9a6243f8ee522a0efe6f8 (patch) | |
tree | f469d26c52852041faa538523fc4ba171abc56cb /src/test | |
parent | 5ce53ab15a2cab08924f0dd4879c8f9c1936a882 (diff) | |
download | java-language-server-fe2080d0cd62a66197f9a6243f8ee522a0efe6f8.zip |
Dead code
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/java/org/javacs/JavaCompilerServiceTest.java | 2 | ||||
-rw-r--r-- | src/test/java/org/javacs/PtrTest.java | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/src/test/java/org/javacs/JavaCompilerServiceTest.java b/src/test/java/org/javacs/JavaCompilerServiceTest.java index ec41d26..eb947a7 100644 --- a/src/test/java/org/javacs/JavaCompilerServiceTest.java +++ b/src/test/java/org/javacs/JavaCompilerServiceTest.java @@ -268,7 +268,7 @@ public class JavaCompilerServiceTest { @Test public void fixImports() { var uri = resourceUri("MissingImport.java"); - var qualifiedNames = compiler.compileBatch(Collections.singleton(uri)).fixImports(uri); + var qualifiedNames = compiler.compileFile(uri).fixImports(uri); assertThat(qualifiedNames, hasItem("java.util.List")); } diff --git a/src/test/java/org/javacs/PtrTest.java b/src/test/java/org/javacs/PtrTest.java index 69a42ab..0503521 100644 --- a/src/test/java/org/javacs/PtrTest.java +++ b/src/test/java/org/javacs/PtrTest.java @@ -4,7 +4,6 @@ import static org.hamcrest.Matchers.*; import static org.junit.Assert.*; import java.net.URI; -import java.util.Collections; import org.junit.Test; public class PtrTest { @@ -12,7 +11,7 @@ public class PtrTest { static JavaLanguageServer server = LanguageServerFixture.getJavaLanguageServer(); static String file = "/org/javacs/example/Ptrs.java"; static URI uri = FindResource.uri(file); - static CompileBatch compile = server.compiler.compileBatch(Collections.singleton(uri)); + static CompileBatch compile = server.compiler.compileFile(uri); @Test public void classPtr() { |