cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stefan Podkowinski (JIRA)" <>
Subject [jira] [Commented] (CASSANDRA-12016) Create MessagingService mocking classes
Date Fri, 24 Jun 2016 10:55:16 GMT


Stefan Podkowinski commented on CASSANDRA-12016:

I've now implemented two more tests for CASSANDRA-3486. I'm quite happy with the result, especially
The tested code is not that trivial and was not covered by any unit tests before. I'd personally
prefer this approach compared to having to write dtests, not even mentioning that it takes
less than a second to run the java test.

> Create MessagingService mocking classes
> ---------------------------------------
>                 Key: CASSANDRA-12016
>                 URL:
>             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

View raw message