Weld Testing 6.0.0.Beta1
By Matej Novotny | June 15, 2026
Weld Testing 6.0.0.Beta1 is now available in Maven Central.
This is the first release supporting Weld 7.0.0.Beta2 and CDI 5.0, completing the toolkit needed to run and test your CDI applications with the latest versions.
Breaking changes
The JUnit 5 extension artifact has been renamed from weld-junit5 to weld-junit-jupiter and the org.jboss.weld.junit5 package has been renamed to org.jboss.weld.junit.jupiter.
The original name contained a version number which became misleading with the release of JUnit 6 — the extension is tied to the Jupiter engine, not to a specific JUnit version, and works with both JUnit 5 and JUnit 6 (#293, #329).
An OpenRewrite migration recipe is provided to automate the transition.
It handles the package rename in Java sources, the Maven dependency artifact change, and the META-INF/services SPI file rename for custom WeldJunitEnricher implementations.
See the migration guide for details.
Other notable changes
-
Jakarta Persistence 4.0
EntityAgentsupport — JPA 4.0 introducesEntityAgent, a stateless alternative toEntityManager. The testing extensions now allow injecting it via@PersistenceAgentin your tests, mirroring the support added in Weld Core 7.0.0.Beta2. Thanks to Marko Bekhta for the contribution (#336). -
JUnit 6 compatibility — the extension now works with both JUnit 5 and JUnit 6 (#304).
[ Release ]
