commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From morg...@apache.org
Subject cvs commit: jakarta-commons/latka/src/watchdog GTestContentHandler.java LatkaServletTests.xml
Date Tue, 16 Jul 2002 21:18:26 GMT
morgand     2002/07/16 14:18:26

  Modified:    latka/src/watchdog GTestContentHandler.java
                        LatkaServletTests.xml
  Log:
  updated to latest servlet gtest - added ability to process 410 response codes
  
  Revision  Changes    Path
  1.2       +2 -1      jakarta-commons/latka/src/watchdog/GTestContentHandler.java
  
  Index: GTestContentHandler.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/latka/src/watchdog/GTestContentHandler.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- GTestContentHandler.java	15 Jul 2002 21:56:46 -0000	1.1
  +++ GTestContentHandler.java	16 Jul 2002 21:18:26 -0000	1.2
  @@ -333,7 +333,8 @@
   
               if (returnCode.equals("200") || returnCode.equals("HTTP/1.0 200 OK")) {
               } else if (returnCode.equals("500") || returnCode.equals("503") ||
  -                       returnCode.equals("100") || returnCode.equals("302")) {
  +                       returnCode.equals("100") || returnCode.equals("302") ||
  +                       returnCode.equals("410")) {
                   element.setAttribute("code", returnCode);       
               } else {
                   throw new SAXException("Unrecognized return code value for watchdog tag:
" + returnCode);
  
  
  
  1.2       +8 -8      jakarta-commons/latka/src/watchdog/LatkaServletTests.xml
  
  Index: LatkaServletTests.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/latka/src/watchdog/LatkaServletTests.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- LatkaServletTests.xml	15 Jul 2002 21:56:46 -0000	1.1
  +++ LatkaServletTests.xml	16 Jul 2002 21:18:26 -0000	1.2
  @@ -1841,14 +1841,14 @@
     <request followRedirects="false" path="/servlet-tests/SendErrorTest" label="SendErrorTest">
       <validate>
         <!--TEST STRATEGY: A test for HttpServletResponse.sendError(int sc) method.-->
  -      <statusCode code="100" label="Sends an error response to the client using the
specified status code,specified in the Java Servlet Pages Specification v2.3, Sec 14" />
  +      <statusCode code="410" label="Sends an error response to the client using the
specified status code,specified in the Java Servlet Pages Specification v2.3, Sec 14" />
       </validate>
     </request>
     
     <request followRedirects="false" path="/servlet-tests/SendErrorIgnoreHeaderTest" label="SendErrorIgnoreHeaderTest">
       <validate>
         <!--TEST STRATEGY: Issue a request to target servlet which will call sendError()
and then add a header to the response. The added header should not be visible to the client.-->
  -      <statusCode code="100" label="Verify that headers added after sendError(int) are
ignored by the container. Servlet Specification 2.3 section SRV.5.2." />
  +      <statusCode code="410" label="Verify that headers added after sendError(int) are
ignored by the container. Servlet Specification 2.3 section SRV.5.2." />
         <responseHeader headerName="HttpServletResponse" headerValue="sendErrorIgnoreHeader"
cond="false" label="Verify that headers added after sendError(int) are ignored by the container.
Servlet Specification 2.3 section SRV.5.2." />
       </validate>
     </request>
  @@ -1864,7 +1864,7 @@
           <watchdog request="GET /servlet-tests/SendError_StringTest HTTP/1.0"
               testName="SendError_StringTest" debug="0"
               host="${host}" port="${port}" exactMatch="true"
  -            returnCode="100" returnCodeMsg="in SendError_StringTest servlet"
  +            returnCode="410" returnCodeMsg="in SendError_StringTest servlet"
               assertion="Sends an error response to the client using the specified status
code and descriptive message,specified in the Java Servlet Pages Specification v2.3, Sec 14"
               testStrategy="A test for HttpServletResponse.sendError(int sc, java.lang.String
msg) method."
           />
  @@ -1873,7 +1873,7 @@
     <request followRedirects="false" path="/servlet-tests/SendError_StringIgnoreHeaderTest"
label="SendError_StringIgnoreHeaderTest">
       <validate>
         <!--TEST STRATEGY: Issue a request to target servlet which will call sendError()
and then add a header to the response. The added header should not be visible to the client.-->
  -      <statusCode code="100" label="Verify that headers added after sendError(int,String)
are ignored by the container. Servlet Specification 2.3 section SRV.5.2." />
  +      <statusCode code="410" label="Verify that headers added after sendError(int,String)
are ignored by the container. Servlet Specification 2.3 section SRV.5.2." />
         <responseHeader headerName="HttpServletResponse" headerValue="sendErrorMsgIgnoreHeader"
cond="false" label="Verify that headers added after sendError(int,String) are ignored by the
container. Servlet Specification 2.3 section SRV.5.2." />
       </validate>
     </request>
  @@ -2426,7 +2426,7 @@
     <request followRedirects="false" path="/servlet-tests/hsresw/HttpServletResponseWrapperSendErrorTest"
label="HttpServletResponseWrapperSendErrorTest">
       <validate>
         <!--TEST STRATEGY: Client calls a servlet who's response has been wrapped. The
wrapper object adds a specific header to the response object and calls the responses sendError
method.-->
  -      <statusCode code="100" label="Test for default behavior of this method is to call
sendError(int sc) on the wrapped response object, specified in the Java Servlet Pages Specification
v2.3, Sec 14 - javax.servlet.HttpServletResponseWrapper.sendError(int) method" />
  +      <statusCode code="410" label="Test for default behavior of this method is to call
sendError(int sc) on the wrapped response object, specified in the Java Servlet Pages Specification
v2.3, Sec 14 - javax.servlet.HttpServletResponseWrapper.sendError(int) method" />
         <responseHeader headerName="GenericResponseWrapper" headerValue="sendError" label="Test
for default behavior of this method is to call sendError(int sc) on the wrapped response object,
specified in the Java Servlet Pages Specification v2.3, Sec 14 - javax.servlet.HttpServletResponseWrapper.sendError(int)
method" />
       </validate>
     </request>
  @@ -2451,7 +2451,7 @@
     <request followRedirects="false" path="/servlet-tests/hsresw/HttpServletResponseWrapperSendErrorMsgIgnoreHeaderTest"
label="HttpServletResponseWrapperSendErrorMsgIgnoreHeaderTest">
       <validate>
         <!--TEST STRATEGY: Client calls a servlet whose response has been wrapped. The
wrapper object will call sendError() and then add a header. The header should not be visible
to the client.-->
  -      <statusCode code="100" label="Test that headers added after a call to sendError(int,String),
will be ignored by the container and will not be sent to the client. See Servlet Specification
2.3 section SRV.5.2." />
  +      <statusCode code="410" label="Test that headers added after a call to sendError(int,String),
will be ignored by the container and will not be sent to the client. See Servlet Specification
2.3 section SRV.5.2." />
         <responseHeader headerName="GenericResponseWrapper" headerValue="sendErrorMsgIgnoreHeader"
cond="false" label="Test that headers added after a call to sendError(int,String), will be
ignored by the container and will not be sent to the client. See Servlet Specification 2.3
section SRV.5.2." />
       </validate>
     </request>
  @@ -2459,7 +2459,7 @@
     <request followRedirects="false" path="/servlet-tests/hsresw/HttpServletResponseWrapperSendErrorIgnoreHeaderTest"
label="HttpServletResponseWrapperSendErrorIgnoreHeaderTest">
       <validate>
         <!--TEST STRATEGY: Client calls a servlet whose response has been wrapped. The
wrapper object will call sendError() and then add a header. The header should not be visible
to the client.-->
  -      <statusCode code="100" label="Test that headers added after a call to sendError(int),
will be ignored by the container and will not be sent to the client. See Servlet Specification
2.3 section SRV.5.2." />
  +      <statusCode code="410" label="Test that headers added after a call to sendError(int),
will be ignored by the container and will not be sent to the client. See Servlet Specification
2.3 section SRV.5.2." />
         <responseHeader headerName="GenericResponseWrapper" headerValue="sendErrorIgnoreHeader"
cond="false" label="Test that headers added after a call to sendError(int), will be ignored
by the container and will not be sent to the client. See Servlet Specification 2.3 section
SRV.5.2." />
       </validate>
     </request>
  @@ -3412,7 +3412,7 @@
           <watchdog request="GET /servlet-tests/SendError_StringTest HTTP/1.0"
               testName="SendError_StringTest" debug="0"
               host="${host}" port="${port}" exactMatch="true"
  -            returnCode="100" returnCodeMsg="in SendError_StringTest servlet"
  +            returnCode="410" returnCodeMsg="in SendError_StringTest servlet"
               assertion="Sends an error response to the client using the specified  status
code and descriptive message,specified in the Java  Servlet Pages Specification v2.3, Sec
14"
               testStrategy="A test for HttpServletResponse.sendError(int sc,  java.lang.String
msg) method."
           />
  
  
  

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


Mime
View raw message