jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vincent Massol" <vmas...@octo.com>
Subject RE: Last call before 1.3 reelase
Date Sat, 20 Apr 2002 08:47:34 GMT

First thank you for your feedback. See below for my comments.

> -----Original Message-----
> From: Arthur.Jasso@acuity.com [mailto:Arthur.Jasso@acuity.com]
> Sent: 19 April 2002 23:59
> To: Cactus Users List
> Subject: Re: Last call before 1.3 reelase
> 1. Could you add the error.jsp to your examples of JSP. The reason is
> this might eliminate the FileNotFound error when the SampleTestServlet
> trying to forward that file.

I've just looked at SampleServlet and all other sample files and could
not find a reference anywhere to error.jsp. The only jsp that is used
for testing forward is test.jsp and it is already included in the

> 2. In the documentation please mention the order each test is
> within the TestCase.
> I found that no matter what you called the test methods they go in
> of
> bottom to top.  For example:
> the DoPost tests will be preformed before the DoGet Tests.
> SampleServletTest
> ----------------------------
> ________________
> beginDoGet()
> testDoGet()
> endDoGet()
> beginDoPost()
> testDoPost()
> endDoPost()
> ------------------------------

There are 2 things here :

1/ The order is not guaranteed. It is the order returned by the JVM when
calling getMethods(). I don't think the JVM guarantees an order.

2/ However, even if it did, it is important that unit tests are
independent of each other and you should not rely on any order. See
JUnit resources and FAQ for lengthy discussions on this item. Cactus is
simply following this sound rule.


> --
> To unsubscribe, e-mail:   <mailto:cactus-user-
> unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:cactus-user-
> help@jakarta.apache.org>

To unsubscribe, e-mail:   <mailto:cactus-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:cactus-user-help@jakarta.apache.org>

View raw message