You can try this :
http://cimballisblog.blogspot.com/2009/09/unit-testing-struts2-actions-with.html
Cimballi
On Tue, Aug 3, 2010 at 3:01 PM, akash uppal wrote:
>
>
>
> Dan - Is your Struts 2 application using Spring? If it isn't you shouldn't
> need to use the StrutsSprintTestCase (but then I
Dan - Is your Struts 2 application using Spring? If it isn't you shouldn't
need to use the StrutsSprintTestCase (but then I don't know why you would
get the error you did).
If you are using Spring then I don't have any good advice for you as I've
not used the JUnit plugin much with a Struts 2
I am using struts with spring, and getting same exception.
I used StrutsSpringTestCase class.
Anyone have come clue? I wud appreciate
Dan - Is your Struts 2 application using Spring? If it isn't you shouldn't
need to use the StrutsSprintTestCase (but then I don't know why you would
get
Dan - Is your Struts 2 application using Spring? If it isn't you shouldn't
need to use the StrutsSprintTestCase (but then I don't know why you would
get the error you did).
If you are using Spring then I don't have any good advice for you as I've
not used the JUnit plugin much with a Struts 2 -
I have not read your post in detail but have a quick question about unit
testing with struts2.
lets say I have lot of DAO classes each with multiple methods each running a
stored procedure.
using your article information and Junit plugin if I write a unit case for
each of them (methods in DAO clas
see:
http://www.brucephillips.name/blog/index.cfm/2009/9/5/Unit-Testing-A-Struts-2-Action-Class--Struts-2-JUnit-Plugin
Bruce
-Original Message-
From: Dan R. Olsen III [mailto:danec...@gmail.com]
Sent: Tue 10/13/2009 5:04 PM
To: user@struts.apache.org
Subject: Unit Testing in Struts 2.
6 matches
Mail list logo