From 9fa05f5a08503057284cf2aef088816b464f6c41 Mon Sep 17 00:00:00 2001 From: BoykoAlex Date: Tue, 3 May 2022 13:45:01 -0400 Subject: [PATCH] Unit tests failures --- .../src/main/resources/problem-types.json | 6 ++++++ .../vscode/boot/test/ApplicationPropertiesEditorTest.java | 5 ++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/headless-services/spring-boot-language-server/src/main/resources/problem-types.json b/headless-services/spring-boot-language-server/src/main/resources/problem-types.json index 8657db6d3..79cfb3363 100644 --- a/headless-services/spring-boot-language-server/src/main/resources/problem-types.json +++ b/headless-services/spring-boot-language-server/src/main/resources/problem-types.json @@ -5,6 +5,12 @@ "label": "SpEL Expression Syntax", "description": "SpEL parser raised a ParseException", "defaultSeverity": "ERROR" + }, + { + "code": "JAVA_AUTOWIRED_CONSTRUCTOR", + "label": "Unnecessary @Autowired", + "description": "Unnecessary @Autowired over the only constructor", + "defaultSeverity": "WARNING" } ], "application-yaml": [ diff --git a/headless-services/spring-boot-language-server/src/test/java/org/springframework/ide/vscode/boot/test/ApplicationPropertiesEditorTest.java b/headless-services/spring-boot-language-server/src/test/java/org/springframework/ide/vscode/boot/test/ApplicationPropertiesEditorTest.java index 3486bb7a5..bffd64558 100644 --- a/headless-services/spring-boot-language-server/src/test/java/org/springframework/ide/vscode/boot/test/ApplicationPropertiesEditorTest.java +++ b/headless-services/spring-boot-language-server/src/test/java/org/springframework/ide/vscode/boot/test/ApplicationPropertiesEditorTest.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2016, 2019 Pivotal, Inc. + * Copyright (c) 2016, 2022 Pivotal, Inc. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -23,7 +23,6 @@ import java.nio.charset.Charset; import java.nio.file.Path; import java.time.Duration; import java.util.List; -import java.util.Properties; import org.eclipse.lsp4j.CompletionItem; import org.eclipse.lsp4j.Diagnostic; @@ -256,7 +255,7 @@ public class ApplicationPropertiesEditorTest extends AbstractPropsEditorTest { @Test public void testReconcileCatchesParseError() throws Exception { Editor editor = newEditor("key\n"); - editor.assertProblems("key|extraneous input"); + editor.assertProblems("key|{':', '=', Space}"); } @Test public void bug_GH_STS4_314() throws Exception {