From 501f22cc7faef0e0e1b04a6d2e8f8430372320ac Mon Sep 17 00:00:00 2001 From: Abdelsalem <46495975+AbdelHedhili@users.noreply.github.com> Date: Tue, 9 Jul 2024 14:12:00 +0200 Subject: [PATCH] TCK: remove reference comparison for TapChangers step (#3090) Signed-off-by: Abdelsalem --- .../powsybl/iidm/network/tck/AbstractTapChangerTest.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/iidm/iidm-tck/src/test/java/com/powsybl/iidm/network/tck/AbstractTapChangerTest.java b/iidm/iidm-tck/src/test/java/com/powsybl/iidm/network/tck/AbstractTapChangerTest.java index 24954126d3b..5fa05f14ca5 100644 --- a/iidm/iidm-tck/src/test/java/com/powsybl/iidm/network/tck/AbstractTapChangerTest.java +++ b/iidm/iidm-tck/src/test/java/com/powsybl/iidm/network/tck/AbstractTapChangerTest.java @@ -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);