@@ -14,6 +14,7 @@ dependencies {
1414
1515 // Logging
1616 implementation ' org.jboss.logging:jboss-logging:3.5.0.Final'
17+ testImplementation ' org.junit.jupiter:junit-jupiter:5.8.1'
1718 compileOnly ' org.jboss.logging:jboss-logging-annotations:2.2.1.Final'
1819
1920 annotationProcessor ' org.jboss.logging:jboss-logging:3.5.0.Final'
@@ -24,8 +25,9 @@ dependencies {
2425 implementation " io.vertx:vertx-sql-client:${ vertxVersion} "
2526
2627 // Testing
28+ testImplementation ' org.junit.jupiter:junit-jupiter-api:5.8.1'
2729 testImplementation ' org.assertj:assertj-core:3.24.2'
28- testImplementation " io.vertx:vertx-unit :${ vertxVersion} "
30+ testImplementation " io.vertx:vertx-junit5 :${ vertxVersion} "
2931
3032 // Drivers
3133 testImplementation " io.vertx:vertx-pg-client:${ vertxVersion} "
@@ -37,6 +39,9 @@ dependencies {
3739 // Optional dependency of vertx-pg-client, essential when connecting via SASL SCRAM
3840 testImplementation ' com.ongres.scram:client:2.1'
3941
42+ // JUnit5 engine
43+ testRuntimeOnly ' org.junit.jupiter:junit-jupiter-engine:5.8.1'
44+
4045 // JDBC driver to test with ORM and PostgreSQL
4146 testRuntimeOnly " org.postgresql:postgresql:42.6.0"
4247
@@ -73,6 +78,10 @@ dependencies {
7378 testImplementation " org.testcontainers:oracle-xe:${ testcontainersVersion} "
7479}
7580
81+ test {
82+ useJUnitPlatform()
83+ }
84+
7685// Print a summary of the results of the tests (number of failures, successes and skipped)
7786def loggingSummary (db , result , desc ) {
7887 if ( ! desc. parent ) { // will match the outermost suite
0 commit comments