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 20
20
import com .powsybl .network .store .client .PreloadingStrategy ;
21
21
import com .powsybl .network .store .iidm .impl .NetworkFactoryImpl ;
22
22
import org .apache .commons .lang3 .tuple .Pair ;
23
+ import org .assertj .core .api .Assertions ;
23
24
import org .gridsuite .modification .server .Impacts .TestImpactUtils ;
24
25
import org .gridsuite .modification .server .dto .*;
25
26
import org .gridsuite .modification .server .dto .LoadCreationInfos .LoadCreationInfosBuilder ;
54
55
import java .util .*;
55
56
import java .util .stream .Collectors ;
56
57
58
+ import static org .assertj .core .api .Assertions .*;
57
59
import static org .gridsuite .modification .server .Impacts .TestImpactUtils .*;
58
60
import static org .gridsuite .modification .server .NetworkModificationException .Type .*;
59
61
import static org .gridsuite .modification .server .utils .TestUtils .assertLogMessage ;
@@ -1095,4 +1097,10 @@ public void testGetLineTypesCatalog() throws Exception {
1095
1097
});
1096
1098
assertEquals (0 , emptyLineTypes .size ());
1097
1099
}
1100
+
1101
+ @ Test
1102
+ public void testLineTypesConverion () throws Exception {
1103
+ // juste for the coverage
1104
+ assertThatThrownBy (() -> new LineTypeInfos ().toEntity ()).isInstanceOf (UnsupportedOperationException .class );
1105
+ }
1098
1106
}
You can’t perform that action at this time.
0 commit comments