Re: [Mav-user] Re: Unit Testing Maverick

2002-11-06 Thread Ed Ward
Jeff, why wouldn't you consider using JUnitEE for this?

Ed.
- Original Message -
From: Jeff Schnitzer [EMAIL PROTECTED]
To: Holt, Jack C. [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Wednesday, November 06, 2002 5:20 AM
Subject: [Mav-user] Re: Unit Testing Maverick


 I don't know of anything - anyone else?

 On Fri, Nov 01, 2002 at 11:19:45AM -0800, Holt, Jack C. wrote:
  I'm a fan of Maverick.  It seems to implement MVC without the high
levels of
  abstraction with approaches such as Struts.
 
  I'm currently trying figure out how to unit test the maverick
controllers
  (classes that implement Controller) which I've written.
 
  I've been looking at jakarta cactus and I think it has promise for the
  purpose.
 
  Could you point me to some resource on the internet that would give me
some
  detailed examples of the best way to unit test Maverick controllers?
  Preferably examples that use Cactus?


 ---
 This sf.net email is sponsored by: See the NEW Palm
 Tungsten T handheld. Power  Color in a compact size!
 http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0001en
 [INVALID FOOTER]






---
This sf.net email is sponsored by: See the NEW Palm 
Tungsten T handheld. Power  Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0001en
[INVALID FOOTER]



RE: [Mav-user] Re: Unit Testing Maverick

2002-11-06 Thread Schnitzer, Jeff
What kind of testing?  What kinds of errors are you trying to catch?

JUnitEE is great for testing business logic, but if you want to exercise
Maverick controllers you either need Mock Objects for the
maverick/servlet objects or you need to test them live in the servlet
container.  If you're testing them in the servlet container, you really
need something like HTTPUnit - you're not really running JUnit tests,
you're exercising the HTTP frontend.

Personally, I focus on unit testing the business logic (stored in EJBs
and application-domain classes) and leave the frontend logic (including
Maverick controllers) to eyeball functional testing.  Since I've pushed
all the high-risk logic into the backend, testing the frontend is more a
question of is it formatted properly rather than does it display the
right numbers.

If you have unit tests for your business classes, and load test scripts
to verify that you get the right pages when you navigate your
application, you should be pretty well covered.

Jeff Schnitzer
[EMAIL PROTECTED]

 -Original Message-
 From: Ed Ward [mailto:ed;whatsa.co.uk]
 Sent: Wednesday, November 06, 2002 2:26 AM
 To: [EMAIL PROTECTED]
 Subject: Re: [Mav-user] Re: Unit Testing Maverick
 
 Jeff, why wouldn't you consider using JUnitEE for this?
 
 Ed.
 - Original Message -
 From: Jeff Schnitzer [EMAIL PROTECTED]
 To: Holt, Jack C. [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Sent: Wednesday, November 06, 2002 5:20 AM
 Subject: [Mav-user] Re: Unit Testing Maverick
 
 
  I don't know of anything - anyone else?
 
  On Fri, Nov 01, 2002 at 11:19:45AM -0800, Holt, Jack C. wrote:
   I'm a fan of Maverick.  It seems to implement MVC without the high
 levels of
   abstraction with approaches such as Struts.
  
   I'm currently trying figure out how to unit test the maverick
 controllers
   (classes that implement Controller) which I've written.
  
   I've been looking at jakarta cactus and I think it has promise for
the
   purpose.
  
   Could you point me to some resource on the internet that would
give me
 some
   detailed examples of the best way to unit test Maverick
controllers?
   Preferably examples that use Cactus?
 
 
  ---
  This sf.net email is sponsored by: See the NEW Palm
  Tungsten T handheld. Power  Color in a compact size!
  http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0001en
  [INVALID FOOTER]
 
 
 
 
 
 
 ---
 This sf.net email is sponsored by: See the NEW Palm
 Tungsten T handheld. Power  Color in a compact size!
 http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0001en
 [INVALID FOOTER]


---
This sf.net email is sponsored by: See the NEW Palm
Tungsten T handheld. Power  Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0001en
[INVALID FOOTER]