If you make sure your xwork.xml file is in the classpath, you can create
an ActionProxy using the ActionProxyFactory and execute it. This will do
all of the Interceptors, etc. You should tell it not to execute your
result, though, since dispatching to a JSP / VM is likely to fail in a
unit test :-)

> -----Original Message-----
> From: Francisco Hernandez [mailto:[EMAIL PROTECTED] 
> Sent: Sunday, August 24, 2003 11:24 AM
> To: [EMAIL PROTECTED]
> Subject: [OS-webwork] different methods of test actions
> 
> 
> what are the different methods you guys are using to test actions?
> 
> I am aware that I could easily instantiate the action, set 
> params, and 
> call execute() but what about all the ioc and interceptor stuff?
> 
> how would I go about testing actions just like if they were 
> being used 
> inside xw/ww2 where ioc and interceptors are being used?
> 
> 
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: VM Ware
> With VMware you can run multiple operating systems on a 
> single machine. WITHOUT REBOOTING! Mix Linux / Windows / 
> Novell virtual machines at the same time. Free trial click 
> here:http://www.vmware.com/wl/offer/358/0
> _______________________________________________
> Opensymphony-webwork mailing list 
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
> 


-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines
at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to