Skip to content

Commit

Permalink
Fix Side -> TwoSides
Browse files Browse the repository at this point in the history
Signed-off-by: Florian Dupuy <[email protected]>
  • Loading branch information
flo-dup committed Dec 13, 2023
1 parent 3180b5a commit 7aab005
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import com.powsybl.dynawaltz.models.hvdc.HvdcVscDangling;
import com.powsybl.iidm.network.HvdcLine;
import com.powsybl.iidm.network.Network;
import com.powsybl.iidm.network.TwoSides;
import com.powsybl.iidm.network.test.HvdcTestNetwork;
import org.junit.jupiter.api.Test;

Expand All @@ -34,11 +35,11 @@ void testDanglingConnectedStation() {
Network network = HvdcTestNetwork.createVsc();
HvdcLine line = network.getHvdcLine("L");

HvdcPDangling hvdc = new HvdcPDangling("hvdc", line, "HVDC", "HvdcPVDangling", Side.ONE);
HvdcPDangling hvdc = new HvdcPDangling("hvdc", line, "HVDC", "HvdcPVDangling", TwoSides.ONE);
assertEquals(1, hvdc.getConnectedStations().size());
assertEquals(line.getConverterStation2(), hvdc.getConnectedStations().get(0));

HvdcVscDangling hvdc2 = new HvdcVscDangling("hvdc", line, "HVDC", "HvdcVSCDanglingP", Side.TWO);
HvdcVscDangling hvdc2 = new HvdcVscDangling("hvdc", line, "HVDC", "HvdcVSCDanglingP", TwoSides.TWO);
assertEquals(1, hvdc.getConnectedStations().size());
assertEquals(line.getConverterStation1(), hvdc2.getConnectedStations().get(0));
}
Expand Down

0 comments on commit 7aab005

Please sign in to comment.