classpathx-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Classpathx-discuss] Servlet API


From: cowboyd
Subject: Re: [Classpathx-discuss] Servlet API
Date: Wed, 6 Jun 2001 09:38:43 -0500


Ok, I'll checkout paperclips.

In answer to your junit questions:

1) it uses the IBM public license, which is listed as a non-GPL-compatible free software license. Does this mean that we wouldn't be able to distribute the test cases?

2) I don't see why the unit test couldn't be packaged in along with the individual cvs modules.

3) in my opinion, using a framework like junit is better that just writing ad-hoc cases into main because it encourages consistency in the way you test. It makes test cases easier to write (therefore making it more likely that a lazy developer will actually write them). And once written, makes them easier to combine into test suites.

for more info see

http://junit.sourceforge.net/

The only reason I mentioned junit is because it is the framework that I have the most experience with, but I wouldn't have any objection to something else...

cheers,
Charles





"Nic Ferrier" <address@hidden>
Sent by: address@hidden

06/06/2001 04:16 AM

       
        To:        address@hidden
        cc:        
        Subject:        Re: [Classpathx-discuss] Servlet API



>>> <address@hidden> 06-Jun-01 3:33:52 AM >>>

 javax.servlet.ServletRequestWrapper
 javax.servlet.ServletResponseWraper
 javax.servlet.http.HttpSessionActivationListener
 javax.servlet.http.HttpSessionAttributeListener
 javax.servlet.http.HttpServletRequestWrapper
 javax.servlet.http.HttpServletResponseWrapper

 and I'd be happy to finish these sometime either this
 weekend or next week.

Cool. As I said, I have classes for HttpServletXXXWrapper but they're
not seperated into ServletXXXWrapper and HttpServletXXXWrapper.

If you want them they're in the Paperclips CVS.


 Also, even though it is probably not necessary
 in this case, I'm in the habit of writing test cases
 for all the code just to keep me honest.

Peronsally, I just concentrate on the code that can be tested. It's
impossible to test some methods with almost no implementation.


 I don't know >if there is a process for this in place
 already, but I usually use JUnit. I can check in those
 test cases (as well as write compliance test cases for
 the rest of the servlet API if you'd like) in the
 "developer-only" section.


Hmmm.... Dave Brownell has some ideas about testing too. Maybe we can
sort this issue out soon-ish. Some questions for you:

- is junit free?
- could junit tests be easily packaged within the individual cvs
modules?
- are junit tests really better than main() with some test code?


Nic

_______________________________________________
Classpathx-discuss mailing list
address@hidden
http://mail.gnu.org/mailman/listinfo/classpathx-discuss



reply via email to

[Prev in Thread] Current Thread [Next in Thread]