diff options
author | George Fraser <george@fivetran.com> | 2018-06-25 22:14:32 -0700 |
---|---|---|
committer | George Fraser <george@fivetran.com> | 2018-06-25 22:14:32 -0700 |
commit | 66afe2fe8defe7013e5e8b029e5fe4f30aaddbce (patch) | |
tree | 05da2ab649fab92ce948ec8b135a6bb14c9ed58a /src/test | |
parent | 5003a76ee34eefed341eb2968c0ff36d77efc84e (diff) | |
download | java-language-server-66afe2fe8defe7013e5e8b029e5fe4f30aaddbce.zip |
Fix imports
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/java/org/javacs/CodeActionsTest.java | 16 | ||||
-rw-r--r-- | src/test/java/org/javacs/CompletionsBase.java | 5 | ||||
-rw-r--r-- | src/test/java/org/javacs/FindReferencesTest.java | 5 | ||||
-rw-r--r-- | src/test/java/org/javacs/GotoTest.java | 6 | ||||
-rw-r--r-- | src/test/java/org/javacs/JavaCompilerServiceTest.java | 23 | ||||
-rw-r--r-- | src/test/java/org/javacs/LanguageServerFixture.java | 7 | ||||
-rw-r--r-- | src/test/java/org/javacs/ParserFixImportsTest.java | 4 |
7 files changed, 52 insertions, 14 deletions
diff --git a/src/test/java/org/javacs/CodeActionsTest.java b/src/test/java/org/javacs/CodeActionsTest.java index af0ef4e..b457d85 100644 --- a/src/test/java/org/javacs/CodeActionsTest.java +++ b/src/test/java/org/javacs/CodeActionsTest.java @@ -4,7 +4,11 @@ import static org.hamcrest.Matchers.equalTo; import static org.hamcrest.Matchers.hasItem; import static org.junit.Assert.assertThat; -import java.io.*; +import java.io.BufferedReader; +import java.io.File; +import java.io.IOException; +import java.io.InputStream; +import java.io.InputStreamReader; import java.net.URI; import java.nio.file.Files; import java.util.ArrayList; @@ -12,7 +16,15 @@ import java.util.List; import java.util.Optional; import java.util.stream.Collectors; import java.util.stream.Stream; -import org.eclipse.lsp4j.*; +import org.eclipse.lsp4j.CodeActionContext; +import org.eclipse.lsp4j.CodeActionParams; +import org.eclipse.lsp4j.Command; +import org.eclipse.lsp4j.Diagnostic; +import org.eclipse.lsp4j.DidOpenTextDocumentParams; +import org.eclipse.lsp4j.DidSaveTextDocumentParams; +import org.eclipse.lsp4j.Range; +import org.eclipse.lsp4j.TextDocumentIdentifier; +import org.eclipse.lsp4j.TextDocumentItem; import org.junit.Before; import org.junit.Test; diff --git a/src/test/java/org/javacs/CompletionsBase.java b/src/test/java/org/javacs/CompletionsBase.java index e981224..a8da4c2 100644 --- a/src/test/java/org/javacs/CompletionsBase.java +++ b/src/test/java/org/javacs/CompletionsBase.java @@ -10,7 +10,10 @@ import java.util.concurrent.ExecutionException; import java.util.logging.Logger; import java.util.stream.Collectors; import java.util.stream.Stream; -import org.eclipse.lsp4j.*; +import org.eclipse.lsp4j.CompletionItem; +import org.eclipse.lsp4j.CompletionParams; +import org.eclipse.lsp4j.Position; +import org.eclipse.lsp4j.TextDocumentIdentifier; public class CompletionsBase { protected static final Logger LOG = Logger.getLogger("main"); diff --git a/src/test/java/org/javacs/FindReferencesTest.java b/src/test/java/org/javacs/FindReferencesTest.java index 90635b2..e5d380a 100644 --- a/src/test/java/org/javacs/FindReferencesTest.java +++ b/src/test/java/org/javacs/FindReferencesTest.java @@ -7,7 +7,10 @@ import java.net.URI; import java.util.List; import java.util.concurrent.ExecutionException; import java.util.logging.Logger; -import org.eclipse.lsp4j.*; +import org.eclipse.lsp4j.Location; +import org.eclipse.lsp4j.Position; +import org.eclipse.lsp4j.ReferenceParams; +import org.eclipse.lsp4j.TextDocumentIdentifier; import org.junit.Test; public class FindReferencesTest { diff --git a/src/test/java/org/javacs/GotoTest.java b/src/test/java/org/javacs/GotoTest.java index e8c1f5f..6c64834 100644 --- a/src/test/java/org/javacs/GotoTest.java +++ b/src/test/java/org/javacs/GotoTest.java @@ -7,7 +7,11 @@ import java.net.URI; import java.util.List; import java.util.concurrent.ExecutionException; import java.util.logging.Logger; -import org.eclipse.lsp4j.*; +import org.eclipse.lsp4j.Location; +import org.eclipse.lsp4j.Position; +import org.eclipse.lsp4j.Range; +import org.eclipse.lsp4j.TextDocumentIdentifier; +import org.eclipse.lsp4j.TextDocumentPositionParams; import org.junit.Ignore; import org.junit.Test; diff --git a/src/test/java/org/javacs/JavaCompilerServiceTest.java b/src/test/java/org/javacs/JavaCompilerServiceTest.java index d993968..4d8c968 100644 --- a/src/test/java/org/javacs/JavaCompilerServiceTest.java +++ b/src/test/java/org/javacs/JavaCompilerServiceTest.java @@ -4,17 +4,28 @@ import static org.hamcrest.Matchers.*; import static org.junit.Assert.*; import com.sun.javadoc.MethodDoc; -import com.sun.source.tree.*; -import com.sun.source.util.*; -import java.io.*; +import com.sun.source.tree.CompilationUnitTree; +import com.sun.source.tree.LineMap; +import com.sun.source.util.SourcePositions; +import com.sun.source.util.TreePath; +import com.sun.source.util.Trees; +import java.io.BufferedReader; +import java.io.IOException; +import java.io.InputStream; +import java.io.InputStreamReader; import java.net.URI; import java.net.URISyntaxException; import java.nio.file.Path; import java.nio.file.Paths; -import java.util.*; -import java.util.logging.*; +import java.util.ArrayList; +import java.util.Collections; +import java.util.List; +import java.util.Optional; +import java.util.Set; +import java.util.logging.Logger; import java.util.stream.Collectors; -import javax.lang.model.element.*; +import javax.lang.model.element.Element; +import javax.lang.model.element.ExecutableElement; import javax.tools.Diagnostic; import javax.tools.JavaFileObject; import org.junit.Test; diff --git a/src/test/java/org/javacs/LanguageServerFixture.java b/src/test/java/org/javacs/LanguageServerFixture.java index 37b2102..6af0aee 100644 --- a/src/test/java/org/javacs/LanguageServerFixture.java +++ b/src/test/java/org/javacs/LanguageServerFixture.java @@ -5,7 +5,12 @@ import java.nio.file.Paths; import java.util.concurrent.CompletableFuture; import java.util.function.Consumer; import java.util.logging.Logger; -import org.eclipse.lsp4j.*; +import org.eclipse.lsp4j.Diagnostic; +import org.eclipse.lsp4j.InitializeParams; +import org.eclipse.lsp4j.MessageActionItem; +import org.eclipse.lsp4j.MessageParams; +import org.eclipse.lsp4j.PublishDiagnosticsParams; +import org.eclipse.lsp4j.ShowMessageRequestParams; import org.eclipse.lsp4j.services.LanguageClient; class LanguageServerFixture { diff --git a/src/test/java/org/javacs/ParserFixImportsTest.java b/src/test/java/org/javacs/ParserFixImportsTest.java index f1896a9..2bdb2fe 100644 --- a/src/test/java/org/javacs/ParserFixImportsTest.java +++ b/src/test/java/org/javacs/ParserFixImportsTest.java @@ -3,8 +3,8 @@ package org.javacs; import static org.hamcrest.Matchers.*; import static org.junit.Assert.*; -import java.nio.file.*; -import java.util.*; +import java.util.Collections; +import java.util.Map; import org.junit.Test; public class ParserFixImportsTest { |