Skip to content

Commit

Permalink
Migrate tests to JUnit5 (#108)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tristan-WorkGH authored Oct 21, 2024
1 parent 00713ac commit c450e1f
Show file tree
Hide file tree
Showing 6 changed files with 100 additions and 137 deletions.
14 changes: 0 additions & 14 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,7 @@

<properties>
<gridsuite-dependencies.version>34</gridsuite-dependencies.version>
<string-template.version>4.3.1</string-template.version>
<liquibase-hibernate-package>org.gridsuite.actions.server</liquibase-hibernate-package>
<collections4.version>4.5.0-M2</collections4.version>
<!-- FIXME: powsybl-network-store modules'version is overloaded in the dependencies section.The overloads and this property below have to be removed at next powsybl-ws-dependencies.version upgrade -->
<powsybl-network-store.version>1.18.2</powsybl-network-store.version>
</properties>
Expand Down Expand Up @@ -169,7 +167,6 @@
<dependency>
<groupId>org.antlr</groupId>
<artifactId>ST4</artifactId>
<version>${string-template.version}</version>
</dependency>

<!-- Runtime dependencies -->
Expand Down Expand Up @@ -231,21 +228,10 @@
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.vintage</groupId>
<artifactId>junit-vintage-engine</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies>

</project>
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ public ContingencyList toPowsyblContingencyList(Network network) {

//TODO this a temporary workaround to get elements not found in the network
// this should be deleted when a fix is added to powsybl
@Override
public Map<String, Set<String>> getNotFoundElements(Network network) {
Map<String, Set<String>> contingencyEquipmentMap = new LinkedHashMap<>();
Pattern pattern = Pattern.compile("contingency\\('([^']+)'\\)\\s*\\{\\s*equipments\\s*'([^']+)'");
Expand Down
Loading

0 comments on commit c450e1f

Please sign in to comment.