HiveMQ Testcontainer 1.2.0 Released
HiveMQ Testcontainer 1.2.0
The HiveMQ team is pleased to announce the release of HiveMQ Testcontainer 1.2.0. This new version adds the following improvements:
Explicit waiting for the startup of extensions
Improved wait strategy for HiveMQ startup
Waiting for extension startups
By default, the HiveMQ Testcontainer waits for the HiveMQ startup log message. Now, you can define additional wait conditions for your HiveMQ Extensions:
JUnit 4
@Rule
public final @NotNull HiveMQTestContainerRule rule =
new HiveMQTestContainerRule()
.withExtension(new File("src/test/resources/modifier-extension"))
.waitForExtension("My Extension Name"); JUnit 5
@RegisterExtension
public final @NotNull HiveMQTestContainerExtension extension =
new HiveMQTestContainerExtension()
.withExtension(new File("src/test/resources/modifier-extension"))
.waitForExtension("My Extension Name"); JUnit 4
private final @NotNull HiveMQExtension hiveMQExtension = HiveMQExtension.builder()
.id("extension-1")
.name("my-extension")
.version("1.0")
.mainClass(MyExtension.class).build();
@Rule
public final @NotNull HiveMQTestContainerRule rule =
new HiveMQTestContainerRule("hivemq/hivemq4", "latest")
.withExtension(hiveMQExtension)
.waitForExtension(hiveMQExtension); JUnit 5
private final @NotNull HiveMQExtension hiveMQExtension = HiveMQExtension.builder()
.id("extension-1")
.name("my-extension")
.version("1.0")
.mainClass(MyExtension.class).build();
@RegisterExtension
public final @NotNull HiveMQTestContainerExtension extension =
new HiveMQTestContainerExtension("hivemq/hivemq4", "latest")
.withExtension(hiveMQExtension)
.waitForExtension(hiveMQExtension); HiveMQ Team
Team HiveMQ shares deep expertise in MQTT, Industrial AI, IoT data streaming, Unified Namespace (UNS), and Industrial IoT protocols. Our blogs explore real-world challenges, practical deployment guidance, and best practices for building modern, reliable, and a secure data backbone on the HiveMQ platform, along with thought leadership shaping the future of the connected world.
We’re on a mission to build the Industrial AI Platform that transforms industrial data into real-time intelligence, actionable insights, and measurable business outcomes.
Our experts are here to support your journey. Have questions? We’re happy to help. Contact us.
