jakarta-watchdog-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From morg...@apache.org
Subject cvs commit: jakarta-watchdog-4.0/src/server/servlet-tests/WEB-INF/classes/tests/javax_servlet_http/HttpServletRequest GetRequestURIWithQSTestServlet.java
Date Thu, 25 Jul 2002 17:02:51 GMT
morgand     2002/07/25 10:02:51

  Modified:    latka-scratch/src/distribution/tests servlet-tests.web.xml
               src/server/servlet-tests/WEB-INF web.xml
               src/server/servlet-tests/WEB-INF/classes/tests/javax_servlet_http/HttpServletRequest
                        GetRequestURIWithQSTestServlet.java
  Log:
  moved RequestURITestServlet expected URI from hardcoded value to servlet init param
  
  Revision  Changes    Path
  1.7       +5 -0      jakarta-watchdog-4.0/latka-scratch/src/distribution/tests/servlet-tests.web.xml
  
  Index: servlet-tests.web.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-watchdog-4.0/latka-scratch/src/distribution/tests/servlet-tests.web.xml,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- servlet-tests.web.xml	25 Jul 2002 16:51:31 -0000	1.6
  +++ servlet-tests.web.xml	25 Jul 2002 17:02:51 -0000	1.7
  @@ -3855,6 +3855,11 @@
       
       <servlet-class>tests.javax_servlet_http.HttpServletRequest.GetRequestURIWithQSTestServlet</servlet-class>
       
  +    <init-param>
  +      <param-name>expectedResult</param-name>
  +      <param-value>/servlet-tests/tests/javax_servlet_http/HttpServletRequest/GetRequestURIWithQSTestServlet</param-value>
  +    </init-param>
  +    
       <load-on-startup>0</load-on-startup>
       
     
  
  
  
  1.16      +5 -1      jakarta-watchdog-4.0/src/server/servlet-tests/WEB-INF/web.xml
  
  Index: web.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-watchdog-4.0/src/server/servlet-tests/WEB-INF/web.xml,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- web.xml	25 Jul 2002 16:51:32 -0000	1.15
  +++ web.xml	25 Jul 2002 17:02:51 -0000	1.16
  @@ -1836,7 +1836,11 @@
     <servlet>
       <servlet-name>GetRequestURIWithQSTest</servlet-name>
       <display-name>GetRequestURIWithQSTest</display-name>
  -    <servlet-class>tests.javax_servlet_http.HttpServletRequest.GetRequestURIWithQSTestServlet</servlet-class>
  +    <servlet-class>tests.javax_servlet_http.HttpServletRequest.GetRequestURIWithQSTestServlet</servlet-class>
   
  +    <init-param>
  +      <param-name>expectedResult</param-name>
  +      <param-value>/servlet-tests/GetRequestURIWithQSTest</param-value>
  +    </init-param>
       <load-on-startup>0</load-on-startup>
     </servlet>
     <servlet>
  
  
  
  1.3       +4 -4      jakarta-watchdog-4.0/src/server/servlet-tests/WEB-INF/classes/tests/javax_servlet_http/HttpServletRequest/GetRequestURIWithQSTestServlet.java
  
  Index: GetRequestURIWithQSTestServlet.java
  ===================================================================
  RCS file: /home/cvs/jakarta-watchdog-4.0/src/server/servlet-tests/WEB-INF/classes/tests/javax_servlet_http/HttpServletRequest/GetRequestURIWithQSTestServlet.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- GetRequestURIWithQSTestServlet.java	11 Jan 2002 22:29:15 -0000	1.2
  +++ GetRequestURIWithQSTestServlet.java	25 Jul 2002 17:02:51 -0000	1.3
  @@ -77,7 +77,7 @@
       public void service ( HttpServletRequest request, HttpServletResponse response ) throws
ServletException, IOException {
   
           PrintWriter out = response.getWriter();
  -        String expectedResult = "/servlet-tests/GetRequestURIWithQSTest";
  +        String expectedResult = getServletConfig().getInitParameter("expectedResult");
           String result = request.getRequestURI();
           //not null value expected
           if ( result != null ) {
  
  
  

--
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