Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 5E137200B58 for ; Tue, 12 Jul 2016 19:12:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 5CA2D160A53; Tue, 12 Jul 2016 17:12:22 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id CADBD160A75 for ; Tue, 12 Jul 2016 19:12:21 +0200 (CEST) Received: (qmail 32042 invoked by uid 500); 12 Jul 2016 17:12:21 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 31766 invoked by uid 99); 12 Jul 2016 17:12:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Jul 2016 17:12:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id A62EA2C02B1 for ; Tue, 12 Jul 2016 17:12:20 +0000 (UTC) Date: Tue, 12 Jul 2016 17:12:20 +0000 (UTC) From: "Tyler Hobbs (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CASSANDRA-12016) Create MessagingService mocking classes MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 12 Jul 2016 17:12:22 -0000 [ https://issues.apache.org/jira/browse/CASSANDRA-12016?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Tyler Hobbs updated CASSANDRA-12016: ------------------------------------ Resolution: Fixed Fix Version/s: 3.10 Status: Resolved (was: Ready to Commit) The tests look good, +1 Committed as {{7751588f7715386db0a92bfc4b5db9f151e15133}} to trunk. Thanks! > 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 > Fix For: 3.10 > > Attachments: 12016-trunk.patch > > > 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)