jakarta-watchdog-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From craig...@locus.apache.org
Subject cvs commit: jakarta-watchdog-4.0/src/server/servlet-tests/WEB-INF/classes/tests/javax_servlet_http/HttpServletResponse SendRedirectTestServlet.java SendRedirect_1TestServlet.java
Date Wed, 06 Dec 2000 02:14:28 GMT
craigmcc    00/12/05 18:14:27

  Modified:    src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpServletResponse
                        SendRedirectTest.html
               src/server/servlet-tests/WEB-INF/classes/tests/javax_servlet_http/HttpServletResponse
                        SendRedirectTestServlet.java
                        SendRedirect_1TestServlet.java
  Log:
  Correct the redirect tests so that the right things will happen if the client
  participates correctly.  NOTE:  GTest does not currently do this, so it still
  reports a failure on SendRedirectTest.
  
  Revision  Changes    Path
  1.3       +1 -1      jakarta-watchdog-4.0/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpServletResponse/SendRedirectTest.html
  
  Index: SendRedirectTest.html
  ===================================================================
  RCS file: /home/cvs/jakarta-watchdog-4.0/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpServletResponse/SendRedirectTest.html,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- SendRedirectTest.html	2000/11/09 17:54:47	1.2
  +++ SendRedirectTest.html	2000/12/06 02:14:26	1.3
  @@ -1 +1 @@
  -Message from Redirected Servlet
  +SendRedirectTest test PASSED
  
  
  
  1.3       +3 -3      jakarta-watchdog-4.0/src/server/servlet-tests/WEB-INF/classes/tests/javax_servlet_http/HttpServletResponse/SendRedirectTestServlet.java
  
  Index: SendRedirectTestServlet.java
  ===================================================================
  RCS file: /home/cvs/jakarta-watchdog-4.0/src/server/servlet-tests/WEB-INF/classes/tests/javax_servlet_http/HttpServletResponse/SendRedirectTestServlet.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- SendRedirectTestServlet.java	2000/11/09 17:54:48	1.2
  +++ SendRedirectTestServlet.java	2000/12/06 02:14:27	1.3
  @@ -1,6 +1,6 @@
   /*
  - * $Header: /home/cvs/jakarta-watchdog-4.0/src/server/servlet-tests/WEB-INF/classes/tests/javax_servlet_http/HttpServletResponse/SendRedirectTestServlet.java,v
1.2 2000/11/09 17:54:48 santosh Exp $
  - * $Date: 2000/11/09 17:54:48 $
  + * $Header: /home/cvs/jakarta-watchdog-4.0/src/server/servlet-tests/WEB-INF/classes/tests/javax_servlet_http/HttpServletResponse/SendRedirectTestServlet.java,v
1.3 2000/12/06 02:14:27 craigmcc Exp $
  + * $Date: 2000/12/06 02:14:27 $
    *
    * The Apache Software License, Version 1.1
    *
  @@ -78,7 +78,7 @@
   
   		// Relative path of the new Location
   
  -		String path = "RedirectedTestServlet";
  +		String path = "RedirectedTest";
   		response.sendRedirect(path);
   	}
   }
  
  
  
  1.3       +3 -9      jakarta-watchdog-4.0/src/server/servlet-tests/WEB-INF/classes/tests/javax_servlet_http/HttpServletResponse/SendRedirect_1TestServlet.java
  
  Index: SendRedirect_1TestServlet.java
  ===================================================================
  RCS file: /home/cvs/jakarta-watchdog-4.0/src/server/servlet-tests/WEB-INF/classes/tests/javax_servlet_http/HttpServletResponse/SendRedirect_1TestServlet.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- SendRedirect_1TestServlet.java	2000/11/09 17:54:48	1.2
  +++ SendRedirect_1TestServlet.java	2000/12/06 02:14:27	1.3
  @@ -1,6 +1,6 @@
   /*
  - * $Header: /home/cvs/jakarta-watchdog-4.0/src/server/servlet-tests/WEB-INF/classes/tests/javax_servlet_http/HttpServletResponse/SendRedirect_1TestServlet.java,v
1.2 2000/11/09 17:54:48 santosh Exp $
  - * $Date: 2000/11/09 17:54:48 $
  + * $Header: /home/cvs/jakarta-watchdog-4.0/src/server/servlet-tests/WEB-INF/classes/tests/javax_servlet_http/HttpServletResponse/SendRedirect_1TestServlet.java,v
1.3 2000/12/06 02:14:27 craigmcc Exp $
  + * $Date: 2000/12/06 02:14:27 $
    *
    * The Apache Software License, Version 1.1
    *
  @@ -79,15 +79,9 @@
   
   		response.setContentType("text/html");
   		PrintWriter out = response.getWriter();
  -		ServletOutputStream sos =null; 
  -		sos = response.getOutputStream();
  -		response.setBufferSize(60);
  -
   		response.flushBuffer();
  -		sos.println("Good Luck");
  -		sos.flush();
   		try {
  -			response.sendRedirect("/RedirectedTest");
  +			response.sendRedirect("RedirectedTest");
   			out.println("SendRedirect_1Test test FAILED");
   		}catch(IllegalStateException ise) {
   			out.println("SendRedirect_1Test test PASSED");
  
  
  

Mime
View raw message