Use Tapestry's Creator class (in org.apache.tapestry.test)
to instanciate pages and components to be tested.

Creator allows passing mock instances of a component's 
properties.

>From Rob Dennett <[EMAIL PROTECTED]>:

> I have a listener like this:
> 
> @InjectService(&#65533;FooService&#65533;)
> public abstract FooService getFooService();
> 
> public void doSomething()
> {
>       FooService fs = getFooService();
>       fs.doBar();
> }
> 
> Can I inject a mock FooService into the component for testing purposes
> without having to change hivemodule.xml to go between test and deployment?
> 
> Thanks for your help,
> Rob
> 
> -- 
> No virus found in this outgoing message.
> Checked by AVG Free Edition.
> Version: 7.1.385 / Virus Database: 268.4.0/306 - Release Date: 4/9/2006
>  
> 
> ---------------------------------------------------------------------
> 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