The HiveMQ Testcontainer enables testing MQTT client applications and integration testing of custom HiveMQ extensions. It allows the automatic start of HiveMQ Docker containers for JUnit4 and JUnit5 tests.
Automatic testing of MQTT client applications is challenging since an MQTT Broker deployment of some kind is required. If you use a locally installed MQTT Broker for testing, you can't be sure that the tests run with the same results in a different environment. When you use a public MQTT broker, it is always possible for other clients to interfere with your test, and you are fully dependent on the uptime of the public MQTT broker. The solution, therefore, is the HiveMQ Testcontainer.
Relevant Links for HiveMQ Testcontainer
HiveMQ Testcontainer: https://github.com/hivemq/hivemq-test...
HiveMQ Community Forum: https://bit.ly/2zja5TU
HiveMQ Testcontainer Blogpost: https://bit.ly/2zkmJSB
Example Code on GitHub: https://github.com/hivemq/hivemq-exam...
Don't forget to subscribe to our monthly newsletter with fresh blog posts and news about MQTT, IoT Protocols, and HiveMQ related news: https://bit.ly/3ooYri6
Time Stamps:
0:00 Introduction
0:20 Requirements
0:40 HiveMQ Testcontainer
1:13 MQTT Application: Smart Aquarium
1:45 Programming demo
#MQTT #MQTT Client Application #Testing MQTT Clients