struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vincent Massol" <vmas...@octo.fr>
Subject Re: JUNIT and Struts
Date Fri, 02 Mar 2001 10:26:33 GMT
Yes, and you can also do unit tests of your server side code if you want,
using J2EEUnit (http://j2eeunit.sourceforge.net). We are in the process of
writing a test suite using J2EEUnit for Struts.
Thanks.
Vincent.

----- Original Message -----
From: <dion@multitask.com.au>
To: <julia.reynolds@healthstream.com>
Cc: <struts-user@jakarta.apache.org>
Sent: Friday, March 02, 2001 5:43 AM
Subject: JUNIT and Struts


> We use a JUnit extension (HttpUnit) to do all of our functional testing.
We
> can effectively 'fake' the user submitting a form, and check for page
> results. We've added some code into a base test class so that we can use
> methods like assertPageText("xyz") or assertPageError
> ("struts.resources.key").
>
> This works very well.
> --
> dIon Gillard, Multitask Consulting
> Work:      http://www.multitask.com.au
> NetRexx: http://www.multitask.com.au/NetRexx.nsf
> ----- Forwarded by dIon Gillard/Multitask Consulting/AU on 02/03/2001
03:39
> PM -----
> JUNIT and Struts
>
>
> Hello,
>
> We are using the XP development
process(http://www.extremeprogramming.org/)
> as
> we develop our Struts web application.  We need to write some tests in
> JUnit(http://www.junit.org) to incrementally test as we write code.  Has
> anyone
> ever used JUnit with Struts?  Does anyone have any advice about how to
> proceed
> in coding these tests?
>
> TIA,
>
> Julia
>
>
>
>
>
>
>               Previous Document (Embe (Embe Next Document
>                                 dded   dded
>                                 image image
>                                 moved moved
>                                 to       to
>                                 file: file:
>                                 pic26 pic19
>                                 500.p 169.p
>                                 cx)     cx)
>
>                                                     Return to View
>
>                                                 (Embedded image moved to
>                                                   file: pic15724.pcx)
>
>
>
>


Mime
View raw message