How to test callbacks for MqttClientConnection when mocking #308
mogambo100
started this conversation in
General
Replies: 1 comment
-
This is a question of which third party tool to use to mock callbacks, and we don't have any suggestions for what works well with this sdk. But I would encourage anyone else to recommend what they are using. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a MqttClientConnection object created like this
I want to mock the callbacks so that when mqttClientConnection.connect is hit we can verify our callbacks functionality.
I tried mocking via doAnswer but resulted in OutOfBoundException
Whats should be the correct way to verify. Post callbacks we will be checking value of mqttClientConnectedStatus variable.
Beta Was this translation helpful? Give feedback.
All reactions