vmassol     01/08/30 05:56:28

  Modified:    cactus/src/sample/share/org/apache/commons/cactus/sample
                        TestSampleServlet.java
  Log:
  improved test
  
  Revision  Changes    Path
  1.7       +4 -2      
jakarta-commons/cactus/src/sample/share/org/apache/commons/cactus/sample/TestSampleServlet.java
  
  Index: TestSampleServlet.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-commons/cactus/src/sample/share/org/apache/commons/cactus/sample/TestSampleServlet.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- TestSampleServlet.java    2001/08/24 16:23:19     1.6
  +++ TestSampleServlet.java    2001/08/30 12:56:28     1.7
  @@ -70,7 +70,7 @@
    *
    * @author <a href="mailto:[EMAIL PROTECTED]";>Vincent Massol</a>
    *
  - * @version $Id: TestSampleServlet.java,v 1.6 2001/08/24 16:23:19 vmassol Exp $
  + * @version $Id: TestSampleServlet.java,v 1.7 2001/08/30 12:56:28 vmassol Exp $
    */
   public class TestSampleServlet extends ServletTestCase
   {
  @@ -354,7 +354,9 @@
           Hashtable cookies = AssertUtils.getCookies(theConnection);
   
           Vector list = (Vector)cookies.get("responsecookie");
  -        assert(list.size() == 1);
  +        assert("Cannot find [responsecookie]", list != null);
  +        assert("There is more than one cookie value for " +
  +            "cookie [responsecookie]", list.size() == 1);
   
           ClientCookie cookie = (ClientCookie)list.elementAt(0);
           assertEquals("responsecookie", cookie.getName());
  
  
  

Reply via email to