struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bhaarat Sharma <bhaara...@gmail.com>
Subject Re: Unit Testing in Struts 2.1.6
Date Wed, 14 Oct 2009 20:45:59 GMT
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 classes) how will it behave?

I mean Will I be able to just run the application (see index page) and
during that time all the unit cases will be ran?

I want to avoid going to each jsp page, clicking some link that triggers the
call to the DAO method.

On Wed, Oct 14, 2009 at 12:53 PM, Phillips, Bruce A <bphillips@ku.edu>wrote:

>
> 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:daneclab@gmail.com]
> Sent: Tue 10/13/2009 5:04 PM
> To: user@struts.apache.org
> Subject: Unit Testing in Struts 2.1.6
>
> I have gone to the page found at
> http://struts.apache.org/2.1.6/docs/how-can-we-test-actions.html.
> However, the code on that page is not possible with Struts 2.1.6
> although it is found in the docs for Struts 2.1.6. How can we get this
> page updated to show how to test actions in Struts 2.1.6 so I can have a
> better idea of how I would test my actions in my own apps?
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message