--- a/java/sql-dk/pom.xml Mon Mar 04 22:11:11 2019 +0100
+++ b/java/sql-dk/pom.xml Mon Mar 04 22:20:36 2019 +0100
@@ -6,21 +6,28 @@
<version>0.10-SNAPSHOT</version>
<packaging>jar</packaging>
- <dependencies>
- <dependency>
- <groupId>org.testng</groupId>
- <artifactId>testng</artifactId>
- <version>6.9.9</version>
- <scope>test</scope>
- </dependency>
- </dependencies>
-
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
+ <junit.version>5.4.0</junit.version>
</properties>
+ <dependencies>
+ <dependency>
+ <groupId>org.junit.jupiter</groupId>
+ <artifactId>junit-jupiter-engine</artifactId>
+ <version>${junit.version}</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.junit.jupiter</groupId>
+ <artifactId>junit-jupiter-params</artifactId>
+ <version>${junit.version}</version>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
+
<build>
<plugins>
<plugin>
@@ -63,6 +70,22 @@
</execution>
</executions>
</plugin>
+ <plugin>
+ <!--
+ Without this, tests are executed as „POJO Tests“ instead of „JUnit5 Tests“
+ and @BeforeEach annotation does not work.
+ http://maven.apache.org/surefire/maven-surefire-plugin/examples/pojo-test.html
+ -->
+ <artifactId>maven-surefire-plugin</artifactId>
+ <version>2.22.0</version>
+ <dependencies>
+ <dependency>
+ <groupId>org.junit.platform</groupId>
+ <artifactId>junit-platform-surefire-provider</artifactId>
+ <version>1.2.0</version>
+ </dependency>
+ </dependencies>
+ </plugin>
</plugins>
</build>