Return-Path: X-Original-To: apmail-camel-dev-archive@www.apache.org Delivered-To: apmail-camel-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D5F2C10FB7 for ; Fri, 4 Oct 2013 13:23:21 +0000 (UTC) Received: (qmail 84566 invoked by uid 500); 4 Oct 2013 13:23:20 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 84515 invoked by uid 500); 4 Oct 2013 13:23:19 -0000 Mailing-List: contact dev-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list dev@camel.apache.org Received: (qmail 84502 invoked by uid 99); 4 Oct 2013 13:23:19 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Oct 2013 13:23:19 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy includes SPF record at spf.trusted-forwarder.org) Received: from [217.70.183.195] (HELO relay3-d.mail.gandi.net) (217.70.183.195) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Oct 2013 13:23:13 +0000 Received: from mfilter26-d.gandi.net (mfilter26-d.gandi.net [217.70.178.154]) by relay3-d.mail.gandi.net (Postfix) with ESMTP id C5872A80B8 for ; Fri, 4 Oct 2013 15:22:51 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mfilter26-d.gandi.net Received: from relay3-d.mail.gandi.net ([217.70.183.195]) by mfilter26-d.gandi.net (mfilter26-d.gandi.net [10.0.15.180]) (amavisd-new, port 10024) with ESMTP id aNMmmpfESEWs for ; Fri, 4 Oct 2013 15:22:48 +0200 (CEST) X-Originating-IP: 82.238.224.4 Received: from [192.168.134.15] (bre91-1-82-238-224-4.fbx.proxad.net [82.238.224.4]) (Authenticated sender: jb@nanthrax.net) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id 822EFA80C6 for ; Fri, 4 Oct 2013 15:22:48 +0200 (CEST) Message-ID: <524EC120.7010905@nanthrax.net> Date: Fri, 04 Oct 2013 15:22:40 +0200 From: =?ISO-8859-1?Q?Jean-Baptiste_Onofr=E9?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.0 MIME-Version: 1.0 To: dev@camel.apache.org Subject: Re: [DISCUSS] Mock Objects for Hazelcast Unit Tests... References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Hi James, it sounds good to me. I would advice Easymock. Regards JB On 10/04/2013 03:06 PM, James Carman wrote: > As opposed to using a real HazelcastInstance, I would like to change > the tests to use mock objects (using Mockito or something). There is > no real reason to use a live, running Hazelcast instance in a unit > test and it makes the unit tests very slow. Perhaps having a couple > of tests that test the integration would be fine, but having every > single test running against a real Hazelcast instance is just too time > consuming. Thoughts? > > James > --=20 Jean-Baptiste Onofr=E9 jbonofre@apache.org http://blog.nanthrax.net Talend - http://www.talend.com