Skip to content

Commit

Permalink
Add unit test.
Browse files Browse the repository at this point in the history
Signed-off-by: Anne Tilloy <[email protected]>
  • Loading branch information
annetill committed Aug 17, 2022
1 parent 6c68e2d commit 430450c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/test/java/com/powsybl/openloadflow/sa/LfActionTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@
import java.util.List;
import java.util.Set;

import static org.junit.jupiter.api.Assertions.assertTrue;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.*;

/**
* @author Anne Tilloy <anne.tilloy at rte-france.com>
Expand Down Expand Up @@ -58,5 +57,7 @@ void test() throws IOException {
assertFalse(lfNetworks.get(0).getBranchById("C").isDisabled());
lfAction.apply(true, Collections.emptyList());
assertTrue(lfNetworks.get(0).getBranchById("C").isDisabled());
assertEquals("C", lfAction.getDisabledBranch().getId());
assertNull(lfAction.getEnabledBranch());
}
}

0 comments on commit 430450c

Please sign in to comment.