Return-Path: Delivered-To: apmail-jakarta-hivemind-user-archive@www.apache.org Received: (qmail 4441 invoked from network); 16 Jan 2006 06:59:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 16 Jan 2006 06:59:20 -0000 Received: (qmail 76273 invoked by uid 500); 16 Jan 2006 06:59:20 -0000 Delivered-To: apmail-jakarta-hivemind-user-archive@jakarta.apache.org Received: (qmail 76011 invoked by uid 500); 16 Jan 2006 06:59:19 -0000 Mailing-List: contact hivemind-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: hivemind-user@jakarta.apache.org List-Id: Delivered-To: mailing list hivemind-user@jakarta.apache.org Received: (qmail 75999 invoked by uid 99); 16 Jan 2006 06:59:19 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 15 Jan 2006 22:59:18 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [66.194.80.215] (HELO webifymail01.webify.local) (66.194.80.215) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 15 Jan 2006 22:59:18 -0800 X-MimeOLE: Produced By Microsoft Exchange V6.0.6487.1 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: Testing Services Date: Mon, 16 Jan 2006 00:58:56 -0600 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Testing Services Thread-Index: AcYYUePOkev85mmxQJW2TU7Ink/yjAAA0jdwAAMXByAAAmB3cAB/tvLg From: "Joel Trunick" To: X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N James, Thanks for your help, but I'm not sure I understand, is that what's being done here: http://jakarta.jp/hivemind/hivemind-examples/panorama.html#Unit+Testing Is newMock() re-registering HiveMind implementations or some such? BTW, I use Maven2, so it compiles the .jar (with hivemodule), and I run tests against that. Is that appropriate? Thanks, Joel -----Original Message----- From: James Carman [mailto:james@carmanconsulting.com]=20 Sent: Friday, January 13, 2006 12:00 PM To: hivemind-user@jakarta.apache.org Subject: RE: Testing Services Don't test your services within the service registry. Test them outside. Then, you can manually inject your mock dependencies and test your services at will. -----Original Message----- From: Joel Trunick [mailto:joel.trunick@webifysolutions.com]=20 Sent: Friday, January 13, 2006 11:57 AM To: hivemind-user@jakarta.apache.org Subject: Testing Services If I have a service-point X in module A, a module B with a dependency on X, how do I specify a mock/test implementation of X in B, without exposing that implementation to modules dependent on B? Joel --------------------------------------------------------------------- To unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: hivemind-user-help@jakarta.apache.org