hivemind-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joel Trunick" <joel.trun...@webifysolutions.com>
Subject RE: Testing Services
Date Mon, 16 Jan 2006 06:58:56 GMT

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] 
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] 
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


Mime
View raw message