Fix unit tests

This commit is contained in:
BoykoAlex
2019-06-12 23:22:42 -04:00
parent c25fc4dc38
commit 3c21824763

View File

@@ -19,7 +19,6 @@ import org.eclipse.jdt.core.dom.MethodDeclaration;
import org.eclipse.lsp4j.CodeLens;
import org.eclipse.lsp4j.Command;
import org.springframework.ide.vscode.boot.app.SpringSymbolIndex;
import org.springframework.ide.vscode.boot.java.BootJavaLanguageServerComponents;
import org.springframework.ide.vscode.boot.java.handlers.CodeLensProvider;
import org.springframework.ide.vscode.boot.java.handlers.SymbolAddOnInformation;
import org.springframework.ide.vscode.commons.util.BadLocationException;
@@ -83,8 +82,10 @@ public class WebfluxHandlerCodeLensProvider implements CodeLensProvider {
String contentType = WebfluxUtils.getStringRep(handlerInfo.getContentTypes(), WebfluxUtils::getMediaType);
codeLensCommand += contentType != null ? " - Content-Type: " + contentType : "";
codeLens.setCommand(new Command(codeLensCommand, null));
Command cmd = new Command();
cmd.setTitle(codeLensCommand);
codeLens.setCommand(cmd);
resultAccumulator.add(codeLens);
} catch (BadLocationException e) {