Skip to content

Commit

Permalink
remove reference comparison for limits in tck
Browse files Browse the repository at this point in the history
Signed-off-by: Abdelsalem <abdelsalem.hedhili@rte-france.com>
  • Loading branch information
AbdelHedhili committed May 17, 2024
1 parent 7b6df4e commit c3cc050
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,26 +114,22 @@ public void baseAcLineTests() {
acLine.setB2(b2);
assertEquals(b2, acLine.getB2(), 0.0);

CurrentLimits currentLimits1 = acLine.newCurrentLimits1()
acLine.newCurrentLimits1()
.setPermanentLimit(100)
.beginTemporaryLimit()
.setName("5'")
.setAcceptableDuration(5 * 60)
.setValue(1400)
.endTemporaryLimit()
.add();
CurrentLimits currentLimits2 = acLine.newCurrentLimits2()
acLine.newCurrentLimits2()
.setPermanentLimit(50)
.beginTemporaryLimit()
.setName("20'")
.setAcceptableDuration(20 * 60)
.setValue(1200)
.endTemporaryLimit()
.add();
assertSame(currentLimits1, acLine.getCurrentLimits1().orElse(null));
assertSame(currentLimits2, acLine.getCurrentLimits2().orElse(null));
assertSame(currentLimits1, acLine.getLimits(LimitType.CURRENT, TwoSides.ONE).orElse(null));
assertSame(currentLimits2, acLine.getLimits(LimitType.CURRENT, TwoSides.TWO).orElse(null));

// add power on line
Terminal terminal1 = acLine.getTerminal1();
Expand Down

0 comments on commit c3cc050

Please sign in to comment.