#906 - Add dependencies for JUnit 5 including vintage engine.
We now support tests using Junit 4 and 5 using the JUnit Jupiter engine and the Vintage engine.
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
Preconfigures the following:
|
||||
|
||||
- Logging dependencies: SLF4j + Commons Logging bridge and Logback as test dependency
|
||||
- Test dependencies: JUnit / Hamcrest / Mockito
|
||||
- Test dependencies: JUnit 4+5 / Hamcrest / Mockito
|
||||
- Dependency versions for commonly used dependencies
|
||||
|
||||
-->
|
||||
@@ -108,7 +108,9 @@
|
||||
<jacoco>0.8.2</jacoco>
|
||||
<jodatime>2.10.4</jodatime>
|
||||
<jsonpath>2.4.0</jsonpath>
|
||||
<!-- Deprecated: Use junit-vintage-engine and JUnit 4 is included as transitive dependency -->
|
||||
<junit>4.12</junit>
|
||||
<junit5>5.5.2</junit5>
|
||||
<kotlin>1.3.50</kotlin>
|
||||
<kotlin-coroutines>1.3.2</kotlin-coroutines>
|
||||
<logback>1.2.3</logback>
|
||||
@@ -927,6 +929,13 @@
|
||||
<type>pom</type>
|
||||
<scope>import</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.junit</groupId>
|
||||
<artifactId>junit-bom</artifactId>
|
||||
<version>${junit5}</version>
|
||||
<type>pom</type>
|
||||
<scope>import</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</dependencyManagement>
|
||||
|
||||
@@ -948,9 +957,14 @@
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>junit</groupId>
|
||||
<artifactId>junit</artifactId>
|
||||
<version>${junit}</version>
|
||||
<groupId>org.junit.jupiter</groupId>
|
||||
<artifactId>junit-jupiter</artifactId>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.junit.vintage</groupId>
|
||||
<artifactId>junit-vintage-engine</artifactId>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user