Skip to content

Commit

Permalink
fix coverage
Browse files Browse the repository at this point in the history
Signed-off-by: vmouradian <valentin.mouradian@artelys.com>
  • Loading branch information
vmouradian committed Dec 18, 2024
1 parent 4496149 commit 8c49e20
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ void testContingencyParametersExtension() {
void testContingencyParametersExtensionJson() throws IOException {
Contingency contingency = new Contingency("L2", new BranchContingency("L2"));
contingency.addExtension(ContingencyParameters.class, new ContingencyParameters(false, true, LoadFlowParameters.BalanceType.PROPORTIONAL_TO_LOAD));
assertEquals(ContingencyParameters.class, new ContingencyParametersJsonSerializer().getExtensionClass());
roundTripTest(contingency, JsonSerializer::write, JsonSerializer::readContingency, "/contingencies.json");
}
}

0 comments on commit 8c49e20

Please sign in to comment.