Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
Signed-off-by: RALAMBOTIANA MIORA <miora.ralambotiana@rte-france.com>
  • Loading branch information
miovd committed Mar 5, 2020
1 parent afbc2d9 commit 44ec378
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,14 @@ public void regulationTest() {
} catch (ValidationException ignored) {
// ignore
}
try {
shuntCompensator.setVoltageRegulatorOn(false);
shuntCompensator.setTargetDeadband(Double.NaN);
shuntCompensator.setVoltageRegulatorOn(true);
fail();
} catch (ValidationException ignored) {
// ignore
}
shuntCompensator.setTargetDeadband(5.0);
assertEquals(5.0, shuntCompensator.getTargetDeadband(), 0.0);
}
Expand Down

0 comments on commit 44ec378

Please sign in to comment.