Skip to content

Commit

Permalink
TCK: remove reference comparison for TapChangers step (#3090)
Browse files Browse the repository at this point in the history
Signed-off-by: Abdelsalem <abdelsalem.hedhili@rte-france.com>
  • Loading branch information
AbdelHedhili authored Jul 9, 2024
1 parent af3bcd2 commit 501f22c
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,12 @@ public void baseTestsPhaseTapChanger() {
assertEquals(1.0, neutralStep.getRho(), 0.0);
phaseTapChanger.setTapPosition(0);
assertEquals(0, phaseTapChanger.getTapPosition());
assertSame(phaseTapChanger.getCurrentStep(), phaseTapChanger.getStep(0));
assertEquals(phaseTapChanger.getCurrentStep().getR(), phaseTapChanger.getStep(0).getR(), 0.0);
assertEquals(phaseTapChanger.getCurrentStep().getX(), phaseTapChanger.getStep(0).getX(), 0.0);
assertEquals(phaseTapChanger.getCurrentStep().getG(), phaseTapChanger.getStep(0).getG(), 0.0);
assertEquals(phaseTapChanger.getCurrentStep().getB(), phaseTapChanger.getStep(0).getB(), 0.0);
assertEquals(phaseTapChanger.getCurrentStep().getAlpha(), phaseTapChanger.getStep(0).getAlpha(), 0.0);
assertEquals(phaseTapChanger.getCurrentStep().getRho(), phaseTapChanger.getStep(0).getRho(), 0.0);
phaseTapChanger.setRegulationValue(5.0);
assertEquals(5.0, phaseTapChanger.getRegulationValue(), 0.0);
phaseTapChanger.setTargetDeadband(0.5);
Expand Down

0 comments on commit 501f22c

Please sign in to comment.