Skip to content
This repository has been archived by the owner on Nov 18, 2022. It is now read-only.

Commit

Permalink
Add unit test
Browse files Browse the repository at this point in the history
Signed-off-by: Florian Dupuy <florian.dupuy@rte-france.com>
  • Loading branch information
flo-dup committed Feb 17, 2022
1 parent e22f5b7 commit 26d6b86
Show file tree
Hide file tree
Showing 2 changed files with 927 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,14 @@ void testDisconnection() {
assertEquals(toString("/IEEE_14_bus_disconnection.svg"), generateSvgString(network, "/IEEE_14_bus_disconnection.svg"));
}

@Test
void testFictitiousVoltageLevel() {
Network network = IeeeCdfNetworkFactory.create14();
network.getVoltageLevel("VL12").setFictitious(true);
network.getVoltageLevel("VL14").setFictitious(true);
assertEquals(toString("/IEEE_14_bus_fictitious.svg"), generateSvgString(network, "/IEEE_14_bus_fictitious.svg"));
}

@Test
void testIEEE24() {
Network network = NetworkXml.read(getClass().getResourceAsStream("/IEEE_24_bus.xiidm"));
Expand Down
Loading

0 comments on commit 26d6b86

Please sign in to comment.