@@ -184,7 +184,7 @@ protected void assertAfterNetworkModificationApplication() {
184184 }
185185
186186 @ Test
187- void testCreateTwoWindingsTransformerWithRatioTapChangerInNodeBreaker () throws Exception {
187+ void testCreateTwoWindingsTransformerWithRatioTapChangerInNodeBreaker () {
188188 // create new 2wt in voltage level with Node/breaker topology, having a RatioTapChanger
189189 RatioTapChangerCreationInfos ratioTapChangerCreationInfos = RatioTapChangerCreationInfos .builder ()
190190 .lowTapPosition (0 )
@@ -223,6 +223,7 @@ void testCreateTwoWindingsTransformerWithRatioTapChangerInNodeBreaker() throws E
223223 TwoWindingsTransformerCreationInfos twoWindingsTransformerCreationInfos2 = TwoWindingsTransformerCreationInfos .builder ()
224224 .equipmentId ("id2wt1WithRatioTapChanger2" )
225225 .equipmentName ("2wtName" )
226+ .description ("a dummy description" )
226227 .voltageLevelId1 ("v1" )
227228 .busOrBusbarSectionId1 ("1.1" )
228229 .connected1 (true )
@@ -241,7 +242,7 @@ void testCreateTwoWindingsTransformerWithRatioTapChangerInNodeBreaker() throws E
241242 .build ();
242243 testCreateTwoWindingsTransformerInNodeBreaker (twoWindingsTransformerCreationInfos2 );
243244 assertEquals (
244- "TwoWindingsTransformerCreationInfos(super=BranchCreationInfos(super=EquipmentCreationInfos(super=EquipmentModificationInfos(super=ModificationInfos(uuid=null, type=TWO_WINDINGS_TRANSFORMER_CREATION, date=null, stashed=false, messageType=null, messageValues=null, activated=true), equipmentId=id2wt1WithRatioTapChanger2, properties=null), equipmentName=2wtName), r=400.0, x=300.0, voltageLevelId1=v1, voltageLevelId2=v4, busOrBusbarSectionId1=1.1, busOrBusbarSectionId2=1.A, operationalLimitsGroups=null, selectedOperationalLimitsGroup1=null, selectedOperationalLimitsGroup2=null, connectionName1=null, connectionDirection1=TOP, connectionName2=null, connectionDirection2=TOP, connectionPosition1=null, connectionPosition2=null, connected1=true, connected2=true), g=100.0, b=200.0, ratedU1=1000.0, ratedU2=1010.0, ratedS=null, ratioTapChanger=RatioTapChangerCreationInfos(super=TapChangerCreationInfos(lowTapPosition=0, tapPosition=1, regulating=true, targetDeadband=null, terminalRefConnectableId=v1load, terminalRefConnectableType=LOAD, terminalRefConnectableVlId=v1, steps=[TapChangerStepCreationInfos(index=0, rho=1.0, r=39.78473, x=39.784725, g=0.0, b=0.0, alpha=0.0), TapChangerStepCreationInfos(index=0, rho=1.0, r=39.78474, x=39.784726, g=0.0, b=0.0, alpha=0.0), TapChangerStepCreationInfos(index=0, rho=1.0, r=39.78475, x=39.784727, g=0.0, b=0.0, alpha=0.0)], loadTapChangingCapabilities=true), targetV=220.0), phaseTapChanger=null)" ,
245+ "TwoWindingsTransformerCreationInfos(super=BranchCreationInfos(super=EquipmentCreationInfos(super=EquipmentModificationInfos(super=ModificationInfos(uuid=null, type=TWO_WINDINGS_TRANSFORMER_CREATION, date=null, stashed=false, messageType=null, messageValues=null, activated=true, description=a dummy description), equipmentId=id2wt1WithRatioTapChanger2, properties=null), equipmentName=2wtName), r=400.0, x=300.0, voltageLevelId1=v1, voltageLevelId2=v4, busOrBusbarSectionId1=1.1, busOrBusbarSectionId2=1.A, operationalLimitsGroups=null, selectedOperationalLimitsGroup1=null, selectedOperationalLimitsGroup2=null, connectionName1=null, connectionDirection1=TOP, connectionName2=null, connectionDirection2=TOP, connectionPosition1=null, connectionPosition2=null, connected1=true, connected2=true), g=100.0, b=200.0, ratedU1=1000.0, ratedU2=1010.0, ratedS=null, ratioTapChanger=RatioTapChangerCreationInfos(super=TapChangerCreationInfos(lowTapPosition=0, tapPosition=1, regulating=true, targetDeadband=null, terminalRefConnectableId=v1load, terminalRefConnectableType=LOAD, terminalRefConnectableVlId=v1, steps=[TapChangerStepCreationInfos(index=0, rho=1.0, r=39.78473, x=39.784725, g=0.0, b=0.0, alpha=0.0), TapChangerStepCreationInfos(index=0, rho=1.0, r=39.78474, x=39.784726, g=0.0, b=0.0, alpha=0.0), TapChangerStepCreationInfos(index=0, rho=1.0, r=39.78475, x=39.784727, g=0.0, b=0.0, alpha=0.0)], loadTapChangingCapabilities=true), targetV=220.0), phaseTapChanger=null)" ,
245246 twoWindingsTransformerCreationInfos2 .toString ()
246247 );
247248
@@ -291,7 +292,7 @@ void testApplySelectedLimitsGroupsNotExist() {
291292 }
292293
293294 @ Test
294- void testCreateTwoWindingsTransformerWithPhaseTapChangerInNodeBreaker () throws Exception {
295+ void testCreateTwoWindingsTransformerWithPhaseTapChangerInNodeBreaker () {
295296 // create new 2wt in voltage level with Node/breaker topology, having a PhaseTapChanger with Load regulating
296297 PhaseTapChangerCreationInfos phaseTapChangerLoadRegulatingCreationInfos = PhaseTapChangerCreationInfos .builder ()
297298 .lowTapPosition (0 )
@@ -410,7 +411,7 @@ protected void checkModification() {
410411 assertEquals ("TWO_WINDINGS_TRANSFORMER_ALREADY_EXISTS : trf1" , exception .getMessage ());
411412 }
412413
413- private void testCreateTwoWindingsTransformerInNodeBreaker (TwoWindingsTransformerCreationInfos twoWindingsTransformerCreationInfos ) throws Exception {
414+ private void testCreateTwoWindingsTransformerInNodeBreaker (TwoWindingsTransformerCreationInfos twoWindingsTransformerCreationInfos ) {
414415 final String transformerId = twoWindingsTransformerCreationInfos .getEquipmentId ();
415416 twoWindingsTransformerCreationInfos .toModification ().apply (getNetwork ());
416417 TwoWindingsTransformer twoWindingsTransformer = getNetwork ().getTwoWindingsTransformer (transformerId );
0 commit comments