struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Padma Ginnaram <padma.ginna...@s1.com>
Subject RE: JUNIT and Struts
Date Thu, 29 Mar 2001 15:18:01 GMT

Is there a sample available for testing struts with j2eeunit

Thanks,
Padma
-----Original Message-----
From: Vincent Massol [mailto:vmassol@octo.fr]
Sent: Friday, March 02, 2001 5:27 AM
To: struts-user@jakarta.apache.org; julia.reynolds@healthstream.com
Cc: struts-user@jakarta.apache.org
Subject: Re: JUNIT and Struts


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