Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@
<liquibase-hibernate-package>org.gridsuite.loadflow.server</liquibase-hibernate-package>
<gridsuite-dependencies.version>46.0.0</gridsuite-dependencies.version>
<!-- TODO remove gridsuite-filter.version and computation.version when upgrading gridsuite dependencies -->
<gridsuite-filter.version>1.16.0</gridsuite-filter.version>
<gridsuite-computation.version>1.9.0</gridsuite-computation.version>
<gridsuite-filter.version>1.18.0</gridsuite-filter.version>
<gridsuite-computation.version>1.10.0</gridsuite-computation.version>
<!--
antlr4 from openloadflow conflicts ? Only on repository.count() method in this project..
[ERROR] org.gridsuite.loadflow.server.SupervisionControllerTest.testResultCount <<< ERROR!
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -518,21 +518,21 @@ public void testGetLimitViolationsWithGlobalFilters() throws Exception {

// get limit violations with filters and different globalFilters
assertLimitViolations(createStringGlobalFilter(
List.of("380", "150"),
List.of(List.of(350, 410), List.of(130, 170)),
Map.of(),
List.of(Country.FR, Country.IT),
List.of(),
List.of(LimitViolationType.CURRENT)
), 4);
assertLimitViolations(createStringGlobalFilter(
List.of("24"),
List.of(List.of(20, 30)),
Map.of(),
List.of(Country.FR, Country.IT),
List.of(),
List.of(LimitViolationType.HIGH_VOLTAGE, LimitViolationType.LOW_VOLTAGE)
), 0);
assertLimitViolations(createStringGlobalFilter(
List.of("380"),
List.of(List.of(350, 410)),
Map.of(),
List.of(),
List.of(),
Expand Down Expand Up @@ -603,14 +603,14 @@ public void testGetLimitViolationsWithGlobalFilters() throws Exception {
}

private String createStringGlobalFilter(
List<String> nominalVs,
Map<String, List<String>> substationProperty,
List<Country> countryCodes,
List<UUID> genericFiltersUuid,
List<LimitViolationType> limitViolationTypes
List<List<Integer>> voltageRanges,
Map<String, List<String>> substationProperty,
List<Country> countryCodes,
List<UUID> genericFiltersUuid,
List<LimitViolationType> limitViolationTypes
) throws JsonProcessingException {
GlobalFilter globalFilter = GlobalFilter.builder()
.nominalV(nominalVs)
.voltageRanges(voltageRanges)
.substationProperty(substationProperty)
.countryCode(countryCodes)
.genericFilter(genericFiltersUuid)
Expand Down