Skip to content

Commit

Permalink
Fix JUnit setup
Browse files Browse the repository at this point in the history
  • Loading branch information
caesar-ralf committed Feb 5, 2024
1 parent 7896da8 commit 1187b65
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 30 deletions.
7 changes: 1 addition & 6 deletions feline/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,7 @@
<!-- test scope -->
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<artifactId>junit-jupiter</artifactId>
<scope>test</scope>
</dependency>

Expand Down
1 change: 0 additions & 1 deletion junit4/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
<plugins>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.2.5</version>
<configuration>
<properties>
<property>
Expand Down
7 changes: 1 addition & 6 deletions junit5/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,7 @@
<!-- test scope -->
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<artifactId>junit-jupiter</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
Expand Down
32 changes: 15 additions & 17 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,14 @@
<configuration>
<failOnWarning>true</failOnWarning>
<ignoredUnusedDeclaredDependencies>
<dependency>org.junit.jupiter:junit-jupiter-engine::</dependency>
<!-- junit -->
<dependency>org.junit.*:*-engine</dependency>
<dependency>org.junit.jupiter:junit-jupiter</dependency>
</ignoredUnusedDeclaredDependencies>
<ignoredUsedUndeclaredDependencies>
<!-- junit -->
<dependency>org.junit.jupiter:junit-jupiter-*</dependency>
</ignoredUsedUndeclaredDependencies>
</configuration>
<executions>
<execution>
Expand Down Expand Up @@ -132,25 +138,17 @@
</dependency>

<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
<version>${junit.version}</version>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<version>${junit.version}</version>
</dependency>
<dependency>
<groupId>org.junit.vintage</groupId>
<artifactId>junit-vintage-engine</artifactId>
<version>${junit.version}</version>
<groupId>org.junit.platform</groupId>
<artifactId>junit-platform-launcher</artifactId>
<version>1.10.2</version>
</dependency>

<dependency>
<groupId>org.junit.platform</groupId>
<artifactId>junit-platform-launcher</artifactId>
<version>1.9.3</version>
<groupId>org.junit</groupId>
<artifactId>junit-bom</artifactId>
<version>${junit.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>

<dependency>
Expand Down

0 comments on commit 1187b65

Please sign in to comment.