You can step up one level with some integration tests by directly
calling
ActionProxyFactory.getFactory().createActionProxy("namespace","action",
extraParams) which will use your xwork.xml file to create the
ActionProxy. You can then execute it and verify the results and output
parameters without having to go through a Servlet container or render a
view (if you mock out the Http stuff so it can try to dispatch, etc)

> -----Original Message-----
> From: jun cai [mailto:[EMAIL PROTECTED] 
> Sent: Saturday, November 29, 2003 3:10 AM
> To: webwork
> Subject: [OS-webwork] How to write webwork 2 test?
> 
> 
> Now I'm using webwork 2 as our web application
> framework.How to write test file to test my
> application.For exmaple ,I want to test createForm
> action.How to test it?I find Junit doesn't test it
> completely.
> 
> thanks.
> 
> =====
> Welcome to acai's blog ( http://acai.ejb.cn/blog )
> 
> __________________________________
> Do you Yahoo!?
> Free Pop-Up Blocker - Get it now
> http://companion.yahoo.com/
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: SF.net Giveback Program. 
> Does SourceForge.net help you be more productive?  Does it 
> help you create better code?  SHARE THE LOVE, and help us 
> help YOU!  Click Here: http://sourceforge.net/donate/ 
> _______________________________________________
> Opensymphony-webwork mailing list 
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
> 


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to