Tapestry 4.0 includes a class, Creator, that has the logic for
creating instantiatble subclasses of abstract pages and components.

The XML-scripted mock integration test suite from Tapestry 3 and 4 is
not well documented, is very creeky and limited, and was never meant
for production.

When I started Tapestry 3.1 ^H^H^H^H 4.0 coding, I started to write a
productized, simplified version of that stuff as the basis of my
testing.  That was a time sink and I ended up testing things mostly
using EasyMock.

For 4.1 I do expect to revisit a strteamlined, simplified testing
approach.  Perhaps leverage jwebunit but not require the external
servlet process?  We'll see.

On 11/22/05, Matt Raible <[EMAIL PROTECTED]> wrote:
> I figured the dev list is the most appropriate place for this question
> since it has to do with how Tapestry is distributed.
>
> Currently, in both Equinox and AppFuse, I have a tapestry-mock.jar
> that I created from the Tapestry 3.0's CVS - specifically
> org.apache.tapestry.junit, as well as org.apache.tapestry.junit.mock
> and org.apache.tapestry.junit.engine.  In addition, I have an
> AbstractInstantiator.java (from Tapestry Test Assist) and a
> MockRequestCycle.java that I can add request parameters and such to.
>
> I'd rather not maintain my own mechanism for testing Tapestry pages
> out-of-container.
>
> 1.  Will Tapestry 4.0 be providing a mechanism (and documentation) to
> test page classes?
>
> 2.  If not, is it possible to add something to simplify testing for
> users?  I'd be happy to contribute what I use - but I suspect the
> Tapestry developers can do a much better job than I have.
>
> Thanks,
>
> Matt
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
Howard M. Lewis Ship
Independent J2EE / Open-Source Java Consultant
Creator, Jakarta Tapestry
Creator, Jakarta HiveMind

Professional Tapestry training, mentoring, support
and project work.  http://howardlewisship.com

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

Reply via email to