smartcat-labs / cassandra-diagnostics

Cassandra Node Diagnostics Tools
Apache License 2.0
51 stars 6 forks source link

Improve DataDog unit test with mocks #241

Closed nbozic-zz closed 7 years ago

nbozic-zz commented 7 years ago

Currently UDP server is created and receiving of messages is tested through it. We should instead mock client which is sending messages and verify if it is sending as we expect. We are not interested in what is received on other side as long as we send as we should.