File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
src/test/java/org/gridsuite/modification/server Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 2020import com .powsybl .network .store .client .PreloadingStrategy ;
2121import com .powsybl .network .store .iidm .impl .NetworkFactoryImpl ;
2222import org .apache .commons .lang3 .tuple .Pair ;
23+ import org .assertj .core .api .Assertions ;
2324import org .gridsuite .modification .server .Impacts .TestImpactUtils ;
2425import org .gridsuite .modification .server .dto .*;
2526import org .gridsuite .modification .server .dto .LoadCreationInfos .LoadCreationInfosBuilder ;
5455import java .util .*;
5556import java .util .stream .Collectors ;
5657
58+ import static org .assertj .core .api .Assertions .*;
5759import static org .gridsuite .modification .server .Impacts .TestImpactUtils .*;
5860import static org .gridsuite .modification .server .NetworkModificationException .Type .*;
5961import static org .gridsuite .modification .server .utils .TestUtils .assertLogMessage ;
@@ -1095,4 +1097,10 @@ public void testGetLineTypesCatalog() throws Exception {
10951097 });
10961098 assertEquals (0 , emptyLineTypes .size ());
10971099 }
1100+
1101+ @ Test
1102+ public void testLineTypesConverion () throws Exception {
1103+ // juste for the coverage
1104+ assertThatThrownBy (() -> new LineTypeInfos ().toEntity ()).isInstanceOf (UnsupportedOperationException .class );
1105+ }
10981106}
You can’t perform that action at this time.
0 commit comments