Ok, thanks! One more stupid question: Each test method runs in its own thread, right? So the only place where I need to use Runnable and Thread are inside test methods that need to test if several threads don't share the same cached value? Given that the registry is stored and cached globally in my test superclass so all tests use the same registry instance.
On Wed, Feb 17, 2010 at 12:17 PM, Ulrich Stärk <u...@spielviel.de> wrote: > Querying the registry for the same service from different threads should > yield different instances when using the perthread scope. Just test that. No > need for a request if your service doesn't require one. > > Uli > > On 17.02.2010 11:42 schrieb Inge Solvoll: > > Hi! >> >> I recently encountered a bug in one of my services, where it had the wrong >> scope because I put the scope annotation on the interface rather than on >> the >> implementing class. I got the idea that I could manually create a T5 IOC >> registry to do integration testing on my services. But how can I test >> "perthread" scope on services in the test registry when there are no real >> requests? I'm assuming this requires mocking the Request object in some >> way? >> >> Inge >> >> > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > >