I usually create base class where I construct registry instance, then I use
registry.getService(Intf.class) when I need an instance of a service.

Like here:
https://github.com/anjlab/anjlab-tapestry-commons/blob/master/anjlab-tapestry-quartz/src/test/java/com/anjlab/tapestry5/services/quartz/SchedulerTest.java


On Tue, Jan 21, 2014 at 9:07 PM, George Christman
<gchrist...@cardaddy.com>wrote:

> Hello, we are trying to unit test our services, but our services contain
> other injected services. I'm wondering how you test injected services. Is
> there a configuration I'm missing?
>
> --
> George Christman
> www.CarDaddy.com
> P.O. Box 735
> Johnstown, New York
>



-- 
Dmitry Gusev

AnjLab Team
http://anjlab.com

Reply via email to