use:
org.apache.tapestry.test.use PageTester

pass your module
 PageTester(String appPackage, String appName, String contextPath,
Class... moduleClasses)

same as you setup the app in web.xml
create a test page and use @Inject inside it to access any service you wish...

OR.....

if you want to manualy test some services inside registry you have to start it,

example how to start ioc manualy is here:
http://wiki.apache.org/tapestry/Tapestry5HowToIocOnly

add if you need:
org.apache.tapestry.services.TapestryModule
org.apache.tapestry.hibernate.HibernateModule

Davor Hrg


On 2/27/08, Mark W. Shead <[EMAIL PROTECTED]> wrote:
> On Feb 26, 2008, at 11:13 PM, Angelo Chen wrote:
>
> > @Inject is only for pages and components.
>
> That makes sense.  But I'm still looking for a way to get something
> from the ioc container into a test class.  Any suggestions?
>
> Mark
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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

Reply via email to