@@ -77,7 +77,7 @@ void updateAllExtRefIedNames_should_return_success_status() {
7777 // When
7878 List <SclReportItem > sclReportItems = ExtRefService .updateAllExtRefIedNames (scd );
7979 // Then
80- assertThat (sclReportItems .stream ().noneMatch (SclReportItem ::isFatal ))
80+ assertThat (sclReportItems .stream ().noneMatch (SclReportItem ::isError ))
8181 .overridingErrorMessage (String .valueOf (sclReportItems ))
8282 .isTrue ();
8383 }
@@ -90,7 +90,7 @@ void updateAllExtRefIedNames_should_report_errors(String testCase, SCL scl, SclR
9090 List <SclReportItem > sclReportItems = ExtRefService .updateAllExtRefIedNames (scl );
9191 // Then : the sclReport should report all errors described in the comments in the SCD file
9292 assertThat (sclReportItems ).isNotNull ();
93- assertThat (sclReportItems .stream ().noneMatch (SclReportItem ::isFatal )).isFalse ();
93+ assertThat (sclReportItems .stream ().noneMatch (SclReportItem ::isError )).isFalse ();
9494 assertThat (sclReportItems ).containsExactlyInAnyOrder (errors );
9595 }
9696
@@ -100,18 +100,18 @@ public static Stream<Arguments> updateAllExtRefIedNamesErrors() {
100100 "Errors on ExtRefs" ,
101101 SclTestMarshaller .getSCLFromFile ("/scd-extref-iedname/scd_set_extref_iedname_with_extref_errors.xml" ),
102102 new SclReportItem []{
103- SclReportItem .fatal (
103+ SclReportItem .error (
104104 "/SCL/IED[@name=\" IED_NAME1\" ]/AccessPoint/Server/LDevice[@inst=\" LD_INST11\" ]" +
105105 "/LN0/Inputs/ExtRef[@desc=\" No matching compas:Flow\" ]" ,
106106 "The signal ExtRef has no matching compas:Flow Private" ),
107- SclReportItem .fatal (
107+ SclReportItem .error (
108108 "/SCL/IED[@name=\" IED_NAME1\" ]/AccessPoint/Server/LDevice[@inst=\" LD_INST11\" ]" +
109109 "/LN0/Inputs/ExtRef[@desc=\" Matching two compas:Flow\" ]" ,
110110 "The signal ExtRef has more than one matching compas:Flow Private" ),
111- SclReportItem .fatal (
111+ SclReportItem .error (
112112 "/SCL/IED[@name=\" IED_NAME1\" ]/AccessPoint/Server/LDevice[@inst=\" LD_INST13\" ]" ,
113113 "The Ldevice status test does not exist. It should be among [on, off]" ),
114- SclReportItem .fatal (
114+ SclReportItem .error (
115115 "/SCL/IED[@name=\" IED_NAME1\" ]/AccessPoint/Server/LDevice[@inst=\" LD_INST14\" ]" ,
116116 "The LDevice status is undefined" ),
117117 SclReportItem .warning (
@@ -131,12 +131,12 @@ public static Stream<Arguments> updateAllExtRefIedNamesErrors() {
131131 "/SCL/IED[@name=\" IED_NAME1\" ]/AccessPoint/Server/LDevice[@inst=\" LD_INST11\" ]" +
132132 "/LN0/Inputs/ExtRef[@desc=\" Source LDevice is off for this ExtRef\" ]" ,
133133 "The signal ExtRef source LDevice /SCL/IED[@name=\" IED_NAME2\" ]/AccessPoint/Server/LDevice[@inst=\" LD_INST22\" ] status is off" ),
134- SclReportItem .fatal (
134+ SclReportItem .error (
135135 "/SCL/IED[@name=\" IED_NAME1\" ]/AccessPoint/Server/LDevice[@inst=\" LD_INST11\" ]" +
136136 "/LN0/Inputs/ExtRef[@desc=\" Source LDevice is undefined for this ExtRef\" ]" ,
137137 "The signal ExtRef source LDevice /SCL/IED[@name=\" IED_NAME2\" ]/AccessPoint/Server/LDevice[@inst=\" LD_INST23\" ] status is " +
138138 "undefined" ),
139- SclReportItem .fatal (
139+ SclReportItem .error (
140140 "/SCL/IED[@name=\" IED_NAME1\" ]/AccessPoint/Server/LDevice[@inst=\" LD_INST11\" ]" +
141141 "/LN0/Inputs/ExtRef[@desc=\" Source LDevice is neither on nor off for this ExtRef\" ]" ,
142142 "The signal ExtRef source LDevice /SCL/IED[@name=\" IED_NAME2\" ]/AccessPoint/Server/LDevice[@inst=\" LD_INST24\" ] " +
@@ -146,12 +146,12 @@ public static Stream<Arguments> updateAllExtRefIedNamesErrors() {
146146 "Errors on IEDs" ,
147147 SclTestMarshaller .getSCLFromFile ("/scd-extref-iedname/scd_set_extref_iedname_with_ied_errors.xml" ),
148148 new SclReportItem []{
149- SclReportItem .fatal (
149+ SclReportItem .error (
150150 "/SCL/IED[@name=\" IED_NAME1\" ], /SCL/IED[@name=\" IED_NAME2\" ]" ,
151151 "/IED/Private/compas:ICDHeader[@ICDSystemVersionUUID] must be unique but the same ICDSystemVersionUUID was found on several IED." ),
152- SclReportItem .fatal ("/SCL/IED[@name=\" IED_NAME3\" ]" , "IED has no Private COMPAS-ICDHeader element" ),
153- SclReportItem .fatal ("/SCL/IED[@name=\" IED_NAME4\" ]" , "IED private COMPAS-ICDHeader as no icdSystemVersionUUID or iedName attribute" ),
154- SclReportItem .fatal ("/SCL/IED[@name=\" IED_NAME5\" ]" , "IED private COMPAS-ICDHeader as no icdSystemVersionUUID or iedName attribute" )
152+ SclReportItem .error ("/SCL/IED[@name=\" IED_NAME3\" ]" , "IED has no Private COMPAS-ICDHeader element" ),
153+ SclReportItem .error ("/SCL/IED[@name=\" IED_NAME4\" ]" , "IED private COMPAS-ICDHeader as no icdSystemVersionUUID or iedName attribute" ),
154+ SclReportItem .error ("/SCL/IED[@name=\" IED_NAME5\" ]" , "IED private COMPAS-ICDHeader as no icdSystemVersionUUID or iedName attribute" )
155155 })
156156 );
157157 }
@@ -420,7 +420,7 @@ void configureNetworkForAllControlBlocks_should_create_GSE_and_SMV_elements() {
420420 // When
421421 List <SclReportItem > sclReportItems = ExtRefService .configureNetworkForAllControlBlocks (scd , controlBlockNetworkSettings , RANGES_PER_CB_TYPE );
422422 // Then
423- assertThat (sclReportItems .stream ().noneMatch (SclReportItem ::isFatal )).isTrue ();
423+ assertThat (sclReportItems .stream ().noneMatch (SclReportItem ::isError )).isTrue ();
424424 TConnectedAP connectedAP = new SclRootAdapter (scd ).findConnectedApAdapter ("IED_NAME2" , "AP_NAME" ).get ().getCurrentElem ();
425425 TGSE gse = connectedAP .getGSE ().stream ()
426426 .filter (tgse -> "CB_LD_INST21_GSI" .equals (tgse .getCbName ()))
@@ -462,7 +462,7 @@ void configureNetworkForAllControlBlocks_should_create_GSE_with_incremental_appi
462462 // When
463463 List <SclReportItem > sclReportItems = ExtRefService .configureNetworkForAllControlBlocks (scd , controlBlockNetworkSettings , RANGES_PER_CB_TYPE );
464464 // Then
465- assertThat (sclReportItems .stream ().noneMatch (SclReportItem ::isFatal )).isTrue ();
465+ assertThat (sclReportItems .stream ().noneMatch (SclReportItem ::isError )).isTrue ();
466466 assertThat (streamAllConnectedApGseP (scd , "APPID" ))
467467 .containsExactlyInAnyOrder ("0009" , "000A" , "000B" );
468468 assertThat (streamAllConnectedApGseP (scd , "MAC-Address" ))
@@ -479,9 +479,9 @@ void configureNetworkForAllControlBlocks_should_fail_when_no_settings_for_this_c
479479 // When
480480 List <SclReportItem > sclReportItems = ExtRefService .configureNetworkForAllControlBlocks (scd , controlBlockNetworkSettings , rangesPerCbType );
481481 // Then
482- assertThat (sclReportItems .stream ().noneMatch (SclReportItem ::isFatal )).isFalse ();
482+ assertThat (sclReportItems .stream ().noneMatch (SclReportItem ::isError )).isFalse ();
483483 assertThat (sclReportItems )
484- .extracting (SclReportItem ::getMessage , SclReportItem ::getXpath )
484+ .extracting (SclReportItem ::message , SclReportItem ::xpath )
485485 .contains (Tuple .tuple (expectedMessage ,
486486 "/SCL/IED[@name=\" IED_NAME2\" ]/AccessPoint/Server/LDevice[@inst=\" LD_INST21\" ]/LN0/GSEControl[@name=\" CB_LD_INST21_GMI\" ]" ));
487487 }
@@ -704,7 +704,7 @@ void manageBindingForLDEPF_should_return_report_when_manyIedSourceFound() {
704704 List <SclReportItem > sclReportItems = ExtRefService .manageBindingForLDEPF (scd , settings );
705705 // Then
706706 assertThat (sclReportItems ).hasSize (2 )
707- .extracting (SclReportItem ::getMessage )
707+ .extracting (SclReportItem ::message )
708708 .isEqualTo (List .of ("There is more than one IED source to bind the signal /IED@name=IED_NAME2/LDevice@inst=LDEPF/LN0/ExtRef@desc=DYN_LDEPF_DIGITAL CHANNEL 1_1_BOOLEEN_1_general_1" ,
709709 "There is more than one IED source to bind the signal /IED@name=IED_NAME3/LDevice@inst=LDEPF/LN0/ExtRef@desc=DYN_LDEPF_DIGITAL CHANNEL 1_1_BOOLEEN_1_general_1" ));
710710 TExtRef extRef1 = findExtRef (scd , "IED_NAME1" , "LDEPF" , "DYN_LDEPF_DIGITAL CHANNEL 1_1_BOOLEEN_1_general_1" );
0 commit comments