Registry / testing / vertx-junit5

vertx-junit5

JSON →
library5.0.8javamavenunverified

JUnit 5 extension for testing Vert.x applications.

<dependency> <groupId>io.vertx</groupId> <artifactId>vertx-junit5</artifactId> <version>5.0.8</version> </dependency>
INSTALL
IMPORT
SIG · VERTX-JUNIT5
V
vertx-junit5
testingjavav5.0.8
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

VertxExtension
io.vertx.junit5.VertxExtension

Minimal Vert.x test using JUnit 5 extension.

import io.vertx.junit5.VertxExtension; import io.vertx.junit5.VertxTestContext; import io.vertx.core.Vertx; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.ExtendWith; @ExtendWith(VertxExtension.class) class MyTest { @Test void testSomething(Vertx vertx, VertxTestContext testContext) { vertx.createHttpServer().requestHandler(req -> req.response().end("OK")) .listen(8080, testContext.succeedingThenComplete()); } }
Debug
Known issues
breakingRequires Vert.x 5.x; not compatible with Vert.x 4.x.
fix
Use vertx-junit5 version 4.x for Vert.x 4 compatibility.
affects: >=5.0.0
Upgrade
Version history
5.0.8latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
vertx-junit5 — mvn dependency:get vertx-junit5 · libregistry