Hi Kai,

> > How would I test a page or a component when a @Parameter is not 
accessible
> > because of its need to be a private variable?

As well as tests directly on the page/component object that you can do 
with Tapestry's TestBase class, you can also write tests that run a page 
through one or more requests and where you test the rendered output. You 
can test components by embedding them into a "demo" page and writing tests 
against that.

See:
http://tapestry.apache.org/tapestry5.1/guide/unit-testing-pages.html

If you start on this route then you'll want to use the Testify library to 
help you:
http://tapestry.formos.com/nightly/tapestry-testify/

And you'll find the XPath library useful for asserting things about parts 
of the output:
http://tapestry.formos.com/nightly/tapestry-xpath/

Best wishes,

Paul

------------------
Paul Field
Research IT
Deutsche Bank



---

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