Re: T5: testing using PageTester and EasyMock

2008-09-17 Thread Angelo Chen
Hi, This will be a very interesting topic, I'd like to see how TDD can be used in the development of T5 pages, my experience with T5 page tester isn't so successful, now I try to do everything in the services as it is a easy place to test. angelo akochnev wrote: Let's keep this

Re: T5: testing using PageTester and EasyMock

2008-09-17 Thread Peter Stavrinides
. - Original Message - From: Angelo Chen [EMAIL PROTECTED] To: users@tapestry.apache.org Sent: Wednesday, 17 September, 2008 1:16:57 PM GMT +02:00 Athens, Beirut, Bucharest, Istanbul Subject: Re: T5: testing using PageTester and EasyMock Hi, This will be a very interesting topic, I'd like

RE: T5: testing using PageTester and EasyMock

2008-09-17 Thread Russell Brown
Message- From: Alex Kotchnev [mailto:[EMAIL PROTECTED] Sent: 16 September 2008 17:39 To: Tapestry users Subject: Re: T5: testing using PageTester and EasyMock I was grappling with this issue myself, I still don't have a good answer to it. Because T5 is so heavily annotation driven (with the IoC

RE: T5: testing using PageTester and EasyMock

2008-09-17 Thread Russell Brown
To: Tapestry users Subject: Re: T5: testing using PageTester and EasyMock Hi all, I haven't got around to using PageTester yet, but I started using Easymock for my IoC services recently... Its quite amazing how you can create a full blown IoC service with all dependencies satisfied so easily

RE: T5: testing using PageTester and EasyMock

2008-09-17 Thread Angelo Chen
Hi Russel, Very interesting! possible to have a very simple sample project that get us started? thanks. Angelo Russell Brown-6 wrote: Hi Alex, Testing pages as POJOs is quite simple. You can roll your own very, very, very simple service injector and inject EasyMock services into the

Re: T5: testing using PageTester and EasyMock

2008-09-17 Thread Peter Stavrinides
@tapestry.apache.org Sent: Wednesday, 17 September, 2008 2:00:12 PM GMT +02:00 Athens, Beirut, Bucharest, Istanbul Subject: RE: T5: testing using PageTester and EasyMock Hi Peter, How have you done this? When I try to use Tapestry to Build my EasyMock services the resultant proxies are rejected by EasyMock

RE: T5: testing using PageTester and EasyMock

2008-09-17 Thread Russell Brown
have no truck with my mock service. Boo. Cheers Russell -Original Message- From: Peter Stavrinides [mailto:[EMAIL PROTECTED] Sent: 17 September 2008 14:08 To: Tapestry users Subject: Re: T5: testing using PageTester and EasyMock Sorry about that hit the send by accident, here

Re: T5: testing using PageTester and EasyMock

2008-09-17 Thread Alex Kotchnev
users@tapestry.apache.org Sent: Wednesday, 17 September, 2008 2:00:12 PM GMT +02:00 Athens, Beirut, Bucharest, Istanbul Subject: RE: T5: testing using PageTester and EasyMock Hi Peter, How have you done this? When I try to use Tapestry to Build my EasyMock services the resultant proxies

Re: T5: testing using PageTester and EasyMock

2008-09-17 Thread Peter Stavrinides
. cheers, Peter - Original Message - From: Russell Brown [EMAIL PROTECTED] To: Tapestry users users@tapestry.apache.org Sent: Wednesday, 17 September, 2008 5:16:33 PM GMT +02:00 Athens, Beirut, Bucharest, Istanbul Subject: RE: T5: testing using PageTester and EasyMock Hi Peter, Thanks

RE: T5: testing using PageTester and EasyMock

2008-09-17 Thread Russell Brown
: Re: T5: testing using PageTester and EasyMock Sorry about that hit the send by accident, here is the rest of it: @BeforeClass public static void setup() { // tapestry interfaces _mockAsm = createMock(ApplicationStateManager.class

RE: T5: testing using PageTester and EasyMock

2008-09-17 Thread Russell Brown
-Original Message- From: Russell Brown [mailto:[EMAIL PROTECTED] Sent: 17 September 2008 16:09 To: Tapestry users Subject: RE: T5: testing using PageTester and EasyMock Alex, Yeah. I think that the approach you outline may well work but is unworkable (if you know what I mean). I hold out

RE: T5: testing using PageTester and EasyMock

2008-09-16 Thread SergeEby
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

Re: T5: testing using PageTester and EasyMock

2008-09-16 Thread Alex Kotchnev
I was grappling with this issue myself, I still don't have a good answer to it. Because T5 is so heavily annotation driven (with the IoC and the framework doing a lot of the magic heavy lifting behind the scenes), testing the pages as POJOs (e.g. setting some properties, performing an action,