jakarta-watchdog-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rlu...@apache.org
Subject cvs commit: jakarta-watchdog-4.0/src/server/servlet-tests/WEB-INF/classes/tests/javax_servlet/ServletResponseWrapper ServletResponseWrapperSetContentLengthTestServlet.java
Date Fri, 21 Jun 2002 15:12:50 GMT
rlubke      2002/06/21 08:12:50

  Modified:    src/server/servlet-tests/WEB-INF/classes/tests/javax_servlet/ServletResponse
                        SetContentLengthTestServlet.java
               src/server/servlet-tests/WEB-INF/classes/tests/javax_servlet/ServletResponseWrapper
                        ServletResponseWrapperSetContentLengthTestServlet.java
  Log:
  Patch to correct EOL in ContentLength tests.
  
  Patch submitted by Christopher K. St. John (cks at distributopia.com)
  
  Revision  Changes    Path
  1.5       +5 -5      jakarta-watchdog-4.0/src/server/servlet-tests/WEB-INF/classes/tests/javax_servlet/ServletResponse/SetContentLengthTestServlet.java
  
  Index: SetContentLengthTestServlet.java
  ===================================================================
  RCS file: /home/cvs/jakarta-watchdog-4.0/src/server/servlet-tests/WEB-INF/classes/tests/javax_servlet/ServletResponse/SetContentLengthTestServlet.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- SetContentLengthTestServlet.java	6 May 2002 17:47:05 -0000	1.4
  +++ SetContentLengthTestServlet.java	21 Jun 2002 15:12:50 -0000	1.5
  @@ -75,7 +75,7 @@
       public void service ( ServletRequest request, ServletResponse response ) throws ServletException,
IOException {
   
           PrintWriter out = response.getWriter();
  -        response.setContentLength( PASSED.length() + 2 );
  -        out.println( PASSED );
  +        response.setContentLength( PASSED.length() + 2);
  +        out.print( PASSED + "\r\n" );
       }
   }
  
  
  
  1.4       +5 -5      jakarta-watchdog-4.0/src/server/servlet-tests/WEB-INF/classes/tests/javax_servlet/ServletResponseWrapper/ServletResponseWrapperSetContentLengthTestServlet.java
  
  Index: ServletResponseWrapperSetContentLengthTestServlet.java
  ===================================================================
  RCS file: /home/cvs/jakarta-watchdog-4.0/src/server/servlet-tests/WEB-INF/classes/tests/javax_servlet/ServletResponseWrapper/ServletResponseWrapperSetContentLengthTestServlet.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- ServletResponseWrapperSetContentLengthTestServlet.java	22 May 2002 02:54:18 -0000	1.3
  +++ ServletResponseWrapperSetContentLengthTestServlet.java	21 Jun 2002 15:12:50 -0000	1.4
  @@ -77,12 +77,12 @@
           sl.resetLog();
           // this length includes the output from the wrapper.
           response.setContentLength( PASSED.length() + 48 );
  -        out.println( PASSED );
  +        out.print( PASSED + "\r\n" );
           Enumeration e = sl.readFromLog();
   
           while ( e.hasMoreElements() ) {
               String tmp = ( String ) e.nextElement();
  -            out.println( tmp );
  +            out.print( tmp + "\r\n" );
           }
       }
   }
  
  
  

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


Mime
View raw message