Hi,

I had a similar question a few weeks ago and didn't get any response.
Can someone else chime in?
It would be nice to have "real world" example in the documentation to
showcase TDD features of T5.

/Serge


Russell Brown-6 wrote:
> 
> One more related question would be this: in the docs at
> http://tapestry.apache.org/tapestry5/guide/unit-testing-pages.html you
> tell the PageTester class the name of your "filter" so it can load your
> module. But how can you tell the PageTester to use the Spring filter not
> the plain tapestry filter? All my services are Spring services so as
> soon as I try and run a test I get a load of errors about no service
> realizing interface XXX (which is the type of a field annotated with
> @Inject).
> 
> Any ideas on this one either?
> 
> I'm having quite a hard time testing anything beyond the most
> rudimentary. I notice that tap core and tap ioc have themselves very
> high test coverage indeed.
> 
> Cheers
> 
> Russell
> 
> -----Original Message-----
> From: Russell Brown [mailto:[EMAIL PROTECTED] 
> Sent: 15 September 2008 17:09
> To: Tapestry users
> Subject: T5: testing using PageTester and EasyMock
> 
> Hi,
> 
> Does anyone have any ideas for testing components using mock services? I
> can create a MyAppMockModule class and use that to configure the page
> tester. This class builds mocks of my services, so far so good. I use
> PageTester.getRegistry() and then Registry.getService(MyService.class)
> and then I have my mock to set up in my test. No? No! I have a proxy
> wrapped instance instead which I can't use at all.
> 
>  
> 
> Any ideas out there? How are you testing your components pages when you
> have expense to construct services with complex external dependencies?
> 
>  
> 
> Cheers
> 
>  
> 
> Russell
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/T5%3A-testing-using-PageTester-and-EasyMock-tp19496126p19513126.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to