From 63de5a6daf30f8cd41420b59ed06ca0f4b29ca37 Mon Sep 17 00:00:00 2001 From: Nicolas Quinquenel Date: Tue, 10 Dec 2024 12:38:37 +0100 Subject: [PATCH] QG --- .../test/java/mediumtest/analysis/AnalysisMediumTests.java | 6 +++--- .../hotspots/MatchWithServerHotspotsMediumTests.java | 4 ++-- .../mediumtest/issues/TrackWithServerIssuesMediumTests.java | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/medium-tests/src/test/java/mediumtest/analysis/AnalysisMediumTests.java b/medium-tests/src/test/java/mediumtest/analysis/AnalysisMediumTests.java index 1a7ca8f1e6..ee23e260e8 100644 --- a/medium-tests/src/test/java/mediumtest/analysis/AnalysisMediumTests.java +++ b/medium-tests/src/test/java/mediumtest/analysis/AnalysisMediumTests.java @@ -229,7 +229,7 @@ void it_should_analyze_xml_file_in_connected_mode(@TempDir Path baseDir) { var client = newFakeClient() .withInitialFs(CONFIG_SCOPE_ID, baseDir, List.of(new ClientFileDto(fileUri, baseDir.relativize(filePath), CONFIG_SCOPE_ID, false, null, filePath, null, null, true))) .build(); - var server = newSonarQubeServer().start(); + server = newSonarQubeServer().start(); backend = newBackend() .withSonarQubeConnection("connectionId", server, storage -> storage.withPlugin(TestPlugin.XML).withProject("projectKey", project -> project.withRuleSet("xml", ruleSet -> ruleSet.withActiveRule("xml:S3421", "BLOCKER")))) @@ -770,7 +770,7 @@ void it_should_unload_rules_cache_on_config_scope_closed(@TempDir Path baseDir) var connectionId = "connectionId"; var projectKey2 = "projectKey-2"; var connectionId2 = "connectionId-2"; - var server = newSonarQubeServer().withSmartNotificationsSupported(false).start(); + server = newSonarQubeServer().withSmartNotificationsSupported(false).start(); backend = newBackend() .withSonarQubeConnection(connectionId, server, storage -> storage.withPlugin(TestPlugin.XML).withProject(projectKey, @@ -840,7 +840,7 @@ void it_should_not_unload_rules_cache_on_config_scope_closed_if_another_config_s var connectionId = "connectionId"; var projectKey2 = "projectKey-2"; var connectionId2 = "connectionId-2"; - var server = newSonarQubeServer().withSmartNotificationsSupported(false).start(); + server = newSonarQubeServer().withSmartNotificationsSupported(false).start(); backend = newBackend() .withSonarQubeConnection(connectionId, server, storage -> storage.withPlugin(TestPlugin.XML).withProject(projectKey, diff --git a/medium-tests/src/test/java/mediumtest/hotspots/MatchWithServerHotspotsMediumTests.java b/medium-tests/src/test/java/mediumtest/hotspots/MatchWithServerHotspotsMediumTests.java index 0e17badb6d..c77f987b1e 100644 --- a/medium-tests/src/test/java/mediumtest/hotspots/MatchWithServerHotspotsMediumTests.java +++ b/medium-tests/src/test/java/mediumtest/hotspots/MatchWithServerHotspotsMediumTests.java @@ -82,7 +82,7 @@ void it_should_not_track_server_hotspots_when_configuration_scope_is_not_bound() @Test void it_should_track_local_only_hotspots() { - var server = newSonarQubeServer().start(); + server = newSonarQubeServer().start(); backend = newBackend() .withSonarQubeConnection("connectionId", server) .withBoundConfigScope("configScopeId", "connectionId", "projectKey") @@ -104,7 +104,7 @@ void it_should_track_local_only_hotspots() { @Test void it_should_track_hotspots_for_unknown_branch() { - var server = newSonarQubeServer().start(); + server = newSonarQubeServer().start(); backend = newBackend() .withSonarQubeConnection("connectionId", server) .withBoundConfigScope("configScopeId", "connectionId", "projectKey") diff --git a/medium-tests/src/test/java/mediumtest/issues/TrackWithServerIssuesMediumTests.java b/medium-tests/src/test/java/mediumtest/issues/TrackWithServerIssuesMediumTests.java index 86e138d31e..4f6dbba206 100644 --- a/medium-tests/src/test/java/mediumtest/issues/TrackWithServerIssuesMediumTests.java +++ b/medium-tests/src/test/java/mediumtest/issues/TrackWithServerIssuesMediumTests.java @@ -93,7 +93,7 @@ void it_should_not_track_server_issues_when_configuration_scope_is_not_bound() { @Test void it_should_track_local_only_issues() { - var server = newSonarQubeServer().start(); + server = newSonarQubeServer().start(); backend = newBackend() .withSonarQubeConnection("connectionId", server) .withBoundConfigScope(CONFIG_SCOPE_ID, "connectionId", "projectKey") @@ -115,7 +115,7 @@ void it_should_track_local_only_issues() { @Test void it_should_track_issues_for_unknown_branch() { - var server = newSonarQubeServer().start(); + server = newSonarQubeServer().start(); backend = newBackend() .withSonarQubeConnection("connectionId", server) .withBoundConfigScope(CONFIG_SCOPE_ID, "connectionId", "projectKey")