-
Notifications
You must be signed in to change notification settings - Fork 14
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
Bump to powsybl-core 5.2.0 and to junit5 #509
Conversation
Signed-off-by: Sophie Frasnedo <sophie.frasnedo@rte-france.com>
@@ -39,7 +39,7 @@ protected AbstractDiagramDataExporter(TripleStore tripleStore, ExportContext con | |||
} | |||
|
|||
protected String addDiagramObject(String id, String name, double rotation, String diagramObjectStyleId, String diagramId) { | |||
PropertyBag diagramObjectProperties = new PropertyBag(Arrays.asList(CgmesDLModel.IDENTIFIED_OBJECT_NAME, CgmesDLModel.IDENTIFIED_OBJECT, "rotation", CgmesDLModel.DIAGRAM, CgmesDLModel.DIAGRAM_OBJECT_STYLE)); | |||
PropertyBag diagramObjectProperties = new PropertyBag(Arrays.asList(CgmesDLModel.IDENTIFIED_OBJECT_NAME, CgmesDLModel.IDENTIFIED_OBJECT, "rotation", CgmesDLModel.DIAGRAM, CgmesDLModel.DIAGRAM_OBJECT_STYLE), true); |
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.
Do we need to decode identifiers?
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.
I don't know which option is the most suitable. It could be a layout parameter with a default value to true or false instead of a hard-coded value.
Signed-off-by: Florian Dupuy <florian.dupuy@rte-france.com>
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.
Be careful, you committed IntelliJ project files (.idea/*)
Signed-off-by: Sophie Frasnedo <93923177+So-Fras@users.noreply.github.com>
Signed-off-by: Sophie Frasnedo <93923177+So-Fras@users.noreply.github.com>
Signed-off-by: Sophie Frasnedo <93923177+So-Fras@users.noreply.github.com>
Signed-off-by: Sophie Frasnedo <93923177+So-Fras@users.noreply.github.com>
Signed-off-by: Sophie Frasnedo <93923177+So-Fras@users.noreply.github.com>
Signed-off-by: Sophie Frasnedo <sophie.frasnedo@rte-france.com>
Signed-off-by: Sophie Frasnedo <sophie.frasnedo@rte-france.com>
Signed-off-by: Sophie Frasnedo <sophie.frasnedo@rte-france.com>
Signed-off-by: Sophie Frasnedo <sophie.frasnedo@rte-france.com>
Signed-off-by: Sophie Frasnedo <sophie.frasnedo@rte-france.com>
Signed-off-by: Florian Dupuy <66690739+flo-dup@users.noreply.github.com>
Signed-off-by: Sophie Frasnedo <sophie.frasnedo@rte-france.com>
Signed-off-by: Sophie Frasnedo <sophie.frasnedo@rte-france.com>
Signed-off-by: Sophie Frasnedo <sophie.frasnedo@rte-france.com>
network-area-diagram/pom.xml
Outdated
<artifactId>powsybl-loadflow-api</artifactId> | ||
<scope>test</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.powsybl</groupId> | ||
<artifactId>powsybl-open-loadflow</artifactId> | ||
<scope>test</scope> |
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.
You can remove powsybl-loadflow-api too
|
||
import java.io.IOException; | ||
|
||
import static org.junit.Assert.assertEquals; | ||
import static org.junit.jupiter.api.Assertions.assertEquals; | ||
|
||
/** | ||
* @author Sophie Frasnedo <sophie.frasnedo at rte-france.com> | ||
*/ | ||
public class TestBattery extends AbstractTestCaseIidm { |
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.
public
can be removed
|
||
import static com.powsybl.sld.model.coordinate.Direction.TOP; | ||
import static org.junit.Assert.assertEquals; | ||
import static org.junit.jupiter.api.Assertions.assertEquals; | ||
|
||
/** | ||
* @author Sophie Frasnedo <sophie.frasnedo at rte-france.com> | ||
*/ | ||
public class TestAddBatteries extends AbstractTestCaseRaw { |
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.
public
can be removed
remove public modifier Signed-off-by: Sophie Frasnedo <93923177+So-Fras@users.noreply.github.com>
remove public modifier Signed-off-by: Sophie Frasnedo <93923177+So-Fras@users.noreply.github.com>
remove powsybl-loadflow-api dependency Signed-off-by: Sophie Frasnedo <93923177+So-Fras@users.noreply.github.com>
Kudos, SonarCloud Quality Gate passed! |
* Bump powsybl-core to 5.2.0 * Bump to junit5 * remove olf dependency from nad * update test reference Signed-off-by: Sophie Frasnedo <sophie.frasnedo@rte-france.com> Signed-off-by: BenoitJeanson <benoit.jeanson@rte-france.com>
* Bump powsybl-core to 5.2.0 * Bump to junit5 * remove olf dependency from nad * update test reference Signed-off-by: Sophie Frasnedo <sophie.frasnedo@rte-france.com>
* Bump powsybl-core to 5.2.0 * Bump to junit5 * remove olf dependency from nad * update test reference Signed-off-by: Sophie Frasnedo <sophie.frasnedo@rte-france.com>
Please check if the PR fulfills these requirements (please use
'[x]'
to check the checkboxes, or submit the PR and then click the checkboxes)What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
Dependency update / clean
What is the new behavior (if this is a feature change)?
Bump to JUnit 5
Bump to version 5.2.0 of powsybl-core
Remove open-loadflow dependency to avoid updating unit tests when loadflow and/or test networks have been changed
Does this PR introduce a breaking change or deprecate an API?
No