[ https://issues.apache.org/jira/browse/CASSANDRA-12016?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15352904#comment-15352904 ]
Paulo Motta commented on CASSANDRA-12016: ----------------------------------------- Overall I like the approach and I think it can be a good complement (not replacement) to dtests, reducing the overhead to implement unit tests that need to interact with the MessagingService and allowing finer grained testing of local state of distributed protocols like repair, which is much trickier to do with dtests. It's also very lightweight, reusing the existing message sink while making it cleaner/easier to use. > Create MessagingService mocking classes > --------------------------------------- > > Key: CASSANDRA-12016 > URL: https://issues.apache.org/jira/browse/CASSANDRA-12016 > Project: Cassandra > Issue Type: New Feature > Components: Testing > Reporter: Stefan Podkowinski > Assignee: Stefan Podkowinski > > Interactions between clients and nodes in the cluster are taking place by > exchanging messages through the {{MessagingService}}. Black box testing for > message based systems is usually pretty easy, as we're just dealing with > messages in/out. My suggestion would be to add tests that make use of this > fact by mocking message exchanges via MessagingService. Given the right use > case, this would turn out to be a much simpler and more efficient alternative > for dtests. -- This message was sent by Atlassian JIRA (v6.3.4#6332)