Skip to content

Commit

Permalink
QG
Browse files Browse the repository at this point in the history
  • Loading branch information
nquinquenel committed Dec 10, 2024
1 parent 0d2d77a commit 63de5a6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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"))))
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -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")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -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")
Expand Down

0 comments on commit 63de5a6

Please sign in to comment.