Hi Angelo,

I'm not entirely sure what's causing the error; but I have a workaround 
:-)

Testify runs on top of Tapestry's testing infrastructure. Tapestry's 
testing infrastructure doesn't route via 
HttpServletRequest/HttpServletResponse - it comes in at the level of 
Tapestry's own Request and Response objects. So, basically anything you do 
at the servlet level won't feature in the tests.

So, I'd suggest breaking your AppModule into several modules. Put the 
servlet-oriented parts into one module and then *don't* include that 
module when you create the TapestryTester.

FYI, I am coming to the conclusion that building the TapestryTester from 
an AppModule is not a good idea - you should pick and choose the modules 
that are relevant for the kinds of tests you are doing (See 
http://tapestry.formos.com/projects/tapestry-testify/types-of-testing.html).

- Paul


Angelo Chen <angelochen...@yahoo.com.hk> wrote on 13/03/2010 00:12:02:
> 
> Hi Paul,
> 
> THis is a good news, I'd like to give it another try. last time I gave 
up
> after encountering a problem and can't find any solution anywhere:
> 
> http://old.nabble.com/T5%3A-how-to-put-Testify-into-real-use--
> td26038980.html#a26038980
> 
> any idea why I'm getting that error?
> 
> Angelo





---

This e-mail may contain confidential and/or privileged information. If you are 
not the intended recipient (or have received this e-mail in error) please 
notify the sender immediately and delete this e-mail. Any unauthorized copying, 
disclosure or distribution of the material in this e-mail is strictly forbidden.

Please refer to http://www.db.com/en/content/eu_disclosures.htm for additional 
EU corporate and regulatory disclosures.

Reply via email to