Skip to content

Commit

Permalink
Add a unit test
Browse files Browse the repository at this point in the history
Signed-off-by: Romain Courtier <romain.courtier@rte-france.com>
  • Loading branch information
rcourtier authored and olperr1 committed Feb 25, 2025
1 parent 7fd746c commit 52a71c3
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2227,4 +2227,9 @@
<entsoe:IdentifiedObject.energyIdentCodeEic>10BE------1</entsoe:IdentifiedObject.energyIdentCodeEic>
<cim:ControlArea.type rdf:resource="http://iec.ch/TC57/2013/CIM-schema-cim16#ControlAreaTypeKind.Interchange"/>
</cim:ControlArea>
<cim:ControlArea rdf:ID="_BE_FORECAST">
<cim:IdentifiedObject.name>BE FORECAST</cim:IdentifiedObject.name>
<entsoe:IdentifiedObject.energyIdentCodeEic>10BEFORCAST</entsoe:IdentifiedObject.energyIdentCodeEic>
<cim:ControlArea.type rdf:resource="http://iec.ch/TC57/2013/CIM-schema-cim16#ControlAreaTypeKind.Forecast"/>
</cim:ControlArea>
</rdf:RDF>
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
<cim:ControlArea rdf:about="#_BECONTROLAREA">
<cim:ControlArea.netInterchange>-205.90011555672567</cim:ControlArea.netInterchange>
</cim:ControlArea>
<cim:ControlArea rdf:about="#_BE_FORECAST">
<cim:ControlArea.netInterchange>-205.90011555672567</cim:ControlArea.netInterchange>
</cim:ControlArea>
<cim:Terminal rdf:about="#_57ae9251-c022-4c67-a8eb-611ad54c963c">
<cim:ACDCTerminal.connected>true</cim:ACDCTerminal.connected>
</cim:Terminal>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,9 @@ void microBETieFlow() {
Network network = new CgmesImport().importData(CgmesConformity1ModifiedCatalog.microGridBaseCaseBEWithTieFlow().dataSource(),
NetworkFactory.findDefault(), importParams);

// Check that the query discarded the areas that aren't of type Interchange
assertEquals(1, network.getAreaCount());

Area area = network.getArea("BECONTROLAREA");
assertEquals(CgmesNames.CONTROL_AREA_TYPE_KIND_INTERCHANGE, area.getAreaType());
assertEquals("BE", area.getNameOrId());
Expand Down

0 comments on commit 52a71c3

Please sign in to comment.