Tests should include assertions
A test case without assertions ensures only that no exceptions are thrown. Beyond basic runnability, it ensures nothing about the behavior of the code under test.
Issue-ID: INT-1517
Signed-off-by: Aleksandra Maciaga <aleksandra.maciaga@nokia.com>
Change-Id: I0f60482a6db2e24b23630c88bf13264c4d6fbbd6
doThrow(new EncodeException("","")).when(remoteEndpoint).sendObject(any(KafkaMessage.class));
netconfMessageListener.onMessage(KAFKA_RECORD);
+
+ verify(remoteEndpoint).sendObject(any(KafkaMessage.class));
}
}