Skip to content

Commit 0639ae0

Browse files
committed
test(mqtt): add unit tests for MQTTRepositoryImpl
Cover constructor, disconnect(), publish() drop when client is null, address parsing with TLS fallback port, and exponential backoff logic. Reconnect loop and publishReceived callbacks require an integration test with an embedded MQTT broker (e.g. Moquette) as MQTTClient.run() is a blocking call that needs a real TCP connection — out of scope for unit tests.
1 parent dd666aa commit 0639ae0

1 file changed

Lines changed: 352 additions & 16 deletions

File tree

0 commit comments

Comments
 (0)