Repository navigation
Refactor and group validation writer tests data - #4312
Open
samirromdhani wants to merge 9 commits into
Open
samirromdhani wants to merge 9 commits into
samirromdhani wants to merge 9 commits into
Conversation
samirromdhani
force-pushed
the
refactor/loadflow_validation-formatter-tests
branch
from
December 3, 2026 10:58
be61c4a to
6406f2e
Compare
samirromdhani
force-pushed
the
refactor/loadflow_validation-formatter-tests
branch
from
December 3, 2026 13:12
6406f2e to
cb5a3e5
Compare
Signed-off-by: Samir Romdhani <samir.romdhani_externe@rte-france.com>
Signed-off-by: Samir Romdhani <samir.romdhani_externe@rte-france.com>
samirromdhani
force-pushed
the
refactor/loadflow_validation-formatter-tests
branch
from
December 3, 2026 13:34
cb5a3e5 to
3b8d746
Compare
Signed-off-by: Samir Romdhani <samir.romdhani_externe@rte-france.com>
Signed-off-by: Samir Romdhani <samir.romdhani_externe@rte-france.com>
Signed-off-by: Samir Romdhani <samir.romdhani_externe@rte-france.com>
Signed-off-by: Samir Romdhani <samir.romdhani_externe@rte-france.com>
samirromdhani
force-pushed
the
refactor/loadflow_validation-formatter-tests
branch
from
December 4, 2026 13:54
0e85e9c to
073b59d
Compare
Signed-off-by: Samir Romdhani <samir.romdhani_externe@rte-france.com>
samirromdhani
commented
Dec 4, 2026
| String.join(";", svcId, "p", String.format(Locale.getDefault(), "%g", -p)), | ||
| String.join(";", svcId, "q", String.format(Locale.getDefault(), "%g", -q)), | ||
| String.join(";", svcId, "vControlled", String.format(Locale.getDefault(), "%g", v)), | ||
| String.join(";", svcId, "vController", String.format(Locale.getDefault(), "%g", v)), |
Contributor
Author
There was a problem hiding this comment.
Fixed: both (vControlled) and (vController) used v
…n component in twt3w Signed-off-by: Samir Romdhani <samir.romdhani_externe@rte-france.com>
samirromdhani
force-pushed
the
refactor/loadflow_validation-formatter-tests
branch
from
December 4, 2026 15:57
2bd69c0 to
9574ea9
Compare
samirromdhani
commented
Dec 4, 2026
| String.format(Locale.getDefault(), "%g", TwtTestData.RATED_U0), | ||
| Boolean.toString(TwtTestData.CONNECTED1), | ||
| Boolean.toString(TwtTestData.CONNECTED2), Boolean.toString(TwtTestData.CONNECTED3), Boolean.toString(TwtTestData.MAIN_COMPONENT1), | ||
| Boolean.toString(TwtTestData.MAIN_COMPONENT2), Boolean.toString(TwtTestData.MAIN_COMPONENT2), AbstractValidationFormatterWriter.SUCCESS)); |
Contributor
Author
There was a problem hiding this comment.
Fixed: mainComponent3 used MAIN_COMPONENT2.
| String.join(";", twt3wId, AbstractValidationFormatterWriter.CONNECTED + "3", Boolean.toString(TwtTestData.CONNECTED3)), | ||
| String.join(";", twt3wId, AbstractValidationFormatterWriter.MAIN_COMPONENT + "1", Boolean.toString(TwtTestData.MAIN_COMPONENT1)), | ||
| String.join(";", twt3wId, AbstractValidationFormatterWriter.MAIN_COMPONENT + "2", Boolean.toString(TwtTestData.MAIN_COMPONENT1)), | ||
| String.join(";", twt3wId, AbstractValidationFormatterWriter.MAIN_COMPONENT + "3", Boolean.toString(TwtTestData.MAIN_COMPONENT1)), |
Contributor
Author
There was a problem hiding this comment.
Fixed : mainComponent2 and mainComponent3 used MAIN_COMPONENT1.
Signed-off-by: Samir Romdhani <samir.romdhani_externe@rte-france.com>
samirromdhani
force-pushed
the
refactor/loadflow_validation-formatter-tests
branch
from
December 4, 2026 16:14
744d876 to
038f14c
Compare
samirromdhani
marked this pull request as ready for review
December 4, 2026 16:15
|
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.



Please check if the PR fulfills these requirements
Does this PR already have an issue describing the problem?
What kind of change does this PR introduce?
What is the current behavior?
Formatter writer tests share many generic fields (
p,q,v,connected,mainComponent...) between elementsA wrong or shared value can go undetected, this is already the case for
vControlledandvControllerboth usedv. Each one now reads its own value.mainComponent2andmainComponent3used the wrong constant. (fixed)What is the new behavior (if this is a feature change)?
Test data is grouped by element. The written output is unchanged.
Does this PR introduce a breaking change or deprecate an API?
If yes, please check if the following requirements are fulfilled
What changes might users need to make in their application due to this PR? (migration steps)
Other information: