Skip to content

Commit

Permalink
Update deprecated API usage (#697)
Browse files Browse the repository at this point in the history
Signed-off-by: Geoffroy Jamgotchian <geoffroy.jamgotchian@gmail.com>
  • Loading branch information
geofjamg authored and Caio Luke committed Jan 10, 2023
1 parent b2b911e commit cc70d6b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@ void testAdmittanceShift() {
assertVoltageEquals(395.684, shuntG.getTerminal().getBusView().getBus());

shuntG.setSectionCount(0);
parameters.setSimulShunt(true);
parameters.setShuntCompensatorVoltageControlOn(true);
LoadFlowResult result4 = loadFlowRunner.run(network, parameters);
assertTrue(result4.isOk());
assertVoltageEquals(390.93, shuntG.getTerminal().getBusView().getBus());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ void testStandByAutomaton2() {

@Test
void testStandByAutomaton3() {
svc1.setVoltageSetPoint(385)
svc1.setVoltageSetpoint(385)
.setRegulationMode(StaticVarCompensator.RegulationMode.VOLTAGE);
network.getGenerator("g1").setTargetV(405);

Expand All @@ -375,7 +375,7 @@ void testStandByAutomaton3() {
void testStandByAutomaton4() {
// Test a voltage controller and a voltage monitor connected to the same bus.
// Voltage monitor is discarded.
svc1.setVoltageSetPoint(385)
svc1.setVoltageSetpoint(385)
.setRegulationMode(StaticVarCompensator.RegulationMode.VOLTAGE);
svc1.newExtension(StandbyAutomatonAdder.class)
.withHighVoltageThreshold(397)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ void withAnAdditionalBattery() {
bus2.getVoltageLevel().newBattery()
.setId("bt2")
.setBus("b2")
.setP0(-1)
.setQ0(-0.1)
.setTargetP(-1)
.setTargetQ(-0.1)
.setMinP(-1)
.setMaxP(0)
.add();
Expand All @@ -106,8 +106,8 @@ void withAnAdditionalBattery2() {
bus2.getVoltageLevel().newBattery()
.setId("bt2")
.setBus("b2")
.setP0(-1)
.setQ0(-0.1)
.setTargetP(-1)
.setTargetQ(-0.1)
.setMinP(-2)
.setMaxP(2)
.add();
Expand All @@ -133,8 +133,8 @@ void withAnAdditionalBattery3() {
bus2.getVoltageLevel().newBattery()
.setId("bt2")
.setBus("b2")
.setP0(-1)
.setQ0(-0.1)
.setTargetP(-1)
.setTargetQ(-0.1)
.setMinP(-2)
.setMaxP(2)
.add();
Expand Down

0 comments on commit cc70d6b

Please sign in to comment.