-
Notifications
You must be signed in to change notification settings - Fork 1
Wff #73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Wff #73
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
793476a
Fix report resource bundle
antoinebhs d295a52
Add regression test
antoinebhs 6efc6d4
Merge branch 'main' into fix-reports
antoinebhs 62376d6
Code improvement
antoinebhs 9b2f6f1
Merge remote-tracking branch 'origin/fix-reports' into fix-reports
antoinebhs ffee8bc
Code improvement
antoinebhs 8a1e8b4
Code improvement
antoinebhs 2c6d624
Code improvement
antoinebhs 63408ef
Code improvement
antoinebhs 193b255
Code improvement
antoinebhs File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
...g/gridsuite/monitor/worker/server/report/MonitorWorkerServerReportResourceBundleTest.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| /** | ||
| * Copyright (c) 2026, RTE (http://www.rte-france.com) | ||
| * This Source Code Form is subject to the terms of the Mozilla Public | ||
| * License, v. 2.0. If a copy of the MPL was not distributed with this | ||
| * file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
| */ | ||
| package org.gridsuite.monitor.worker.server.report; | ||
|
|
||
| import com.powsybl.commons.report.ReportResourceBundle; | ||
| import org.junit.jupiter.api.Test; | ||
|
|
||
| import java.util.ResourceBundle; | ||
| import java.util.ServiceLoader; | ||
|
|
||
| import static org.assertj.core.api.Assertions.assertThat; | ||
| import static org.assertj.core.api.Assertions.assertThatNoException; | ||
|
|
||
| /** | ||
| * @author Antoine Bouhours <antoine.bouhours at rte-france.com> | ||
| */ | ||
| class MonitorWorkerServerReportResourceBundleTest { | ||
|
|
||
| @Test | ||
| void reportResourceBundleIsRegisteredViaAutoService() { | ||
| ServiceLoader<ReportResourceBundle> loader = ServiceLoader.load(ReportResourceBundle.class); | ||
|
|
||
| assertThat(loader).anyMatch(MonitorWorkerServerReportResourceBundle.class::isInstance); | ||
| } | ||
|
|
||
| @Test | ||
| void reportBundleIsFound() { | ||
| assertThatNoException().isThrownBy(() -> | ||
| ResourceBundle.getBundle(MonitorWorkerServerReportResourceBundle.BASE_NAME) | ||
| ); | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Restore the recognized Sonar property name.
Line 45 uses
sonar.projecttetedddKey, which Sonar ignores. That makes the scanner fall back toorg.gridsuite:gridsuite-monitor-core, matching the failing CI in this PR, so analysis stays broken until this is renamed back tosonar.projectKey.🔧 Proposed fix
📝 Committable suggestion
🤖 Prompt for AI Agents