Re: JUNIT and Struts

2001-03-30 Thread Ted Husted

Vincent and Ron have been working on some things. Take a look at the
web/test directory in the nightly build.

Vincent is also in midst of donating J2EEUnit to Apache/Jakarta. Yeah
Vincent!

 Padma Ginnaram wrote:
 Is there a sample available for testing struts with j2eeunit



RE: JUNIT and Struts

2001-03-30 Thread RAP

Absolutely,

Well done, and a very worthwhile contribution.

 -Original Message-
 From: Ted Husted [mailto:[EMAIL PROTECTED]]
 Sent: 30 March 2001 14:14
 To: [EMAIL PROTECTED]
 Subject: Re: JUNIT and Struts
 
 
 Vincent and Ron have been working on some things. Take a look at the
 web/test directory in the nightly build.
 
 Vincent is also in midst of donating J2EEUnit to Apache/Jakarta. Yeah
 Vincent!
 
  Padma Ginnaram wrote:
  Is there a sample available for testing struts with j2eeunit



RE: JUNIT and Struts

2001-03-29 Thread Padma Ginnaram
Title: RE: JUNIT and Struts






Is there a sample available for testing struts with j2eeunit


Thanks,
Padma
-Original Message-
From: Vincent Massol [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 02, 2001 5:27 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
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: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
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)









RE: JUNIT and Struts

2001-03-29 Thread Padma Ginnaram
Title: RE: JUNIT and Struts





Is there a sample available for testing struts with j2eeunit


Thanks,
Padma
-Original Message-
From: Vincent Massol [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 02, 2001 5:27 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
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: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
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)









Re: JUNIT and Struts

2001-03-02 Thread Vincent Massol

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: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
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)








JUNIT and Struts

2001-03-01 Thread dion

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)  
   



 pic26500.pcx
 pic19169.pcx
 pic15724.pcx


JUNIT and Struts

2001-02-22 Thread Julia Reynolds

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




RE: JUNIT and Struts

2001-02-22 Thread Shkuro, Yuri

Since Struts is MVC:

1. Model: put all business logic into beans and use JUNIT as usual to test
them.

2. View: you can try using HttpUnit, but it's a pain to test HTML output.

3. Controller: you can probably use J2EEUnit to test Action classes, however
I
   don't know if they support reading web.xml file, which you would need in
order
   to properly initialize ActionServlet or any extensions of it (e.g., I am
using
   an extension that also depends on some context-param's from web.xml to
do 
   application-specific initialization).

Struts 1.1 TODO list contains entries for unit testing framework extension
to Struts.

YS.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 22, 2001 11:16 AM
To: [EMAIL PROTECTED]
Subject: 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



Re: JUNIT and Struts

2001-02-22 Thread Vincent Massol

Hi,

J2EEUnit author
J2EEUnit does support reading web.xml file and I have already used it to
test some struts features. Yuri is absolutely right about his 3 points
(MVC).
/J2EEUnit author

Thanks.
Vincent.

- Original Message -
From: "Shkuro, Yuri" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, February 22, 2001 5:48 PM
Subject: RE: JUNIT and Struts


 Since Struts is MVC:

 1. Model: put all business logic into beans and use JUNIT as usual to test
 them.

 2. View: you can try using HttpUnit, but it's a pain to test HTML output.

 3. Controller: you can probably use J2EEUnit to test Action classes,
however
 I
don't know if they support reading web.xml file, which you would need
in
 order
to properly initialize ActionServlet or any extensions of it (e.g., I
am
 using
an extension that also depends on some context-param's from web.xml
to
 do
application-specific initialization).

 Struts 1.1 TODO list contains entries for unit testing framework extension
 to Struts.

 YS.

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, February 22, 2001 11:16 AM
 To: [EMAIL PROTECTED]
 Subject: 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