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 GetServletPathTestServlet.java
Date Thu, 25 Jul 2002 18:26:12 GMT
morgand     2002/07/25 11:26:12

  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
                        GetServletPathTestServlet.java
  Log:
  moved  expected URI from hardcoded value to servlet init param
  
  Revision  Changes    Path
  1.8       +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.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- servlet-tests.web.xml	25 Jul 2002 17:02:51 -0000	1.7
  +++ servlet-tests.web.xml	25 Jul 2002 18:26:12 -0000	1.8
  @@ -3621,6 +3621,11 @@
       
       <servlet-class>tests.javax_servlet_http.HttpServletRequest.GetServletPathTestServlet</servlet-class>
       
  +    <init-param>
  +      <param-name>expectedResult</param-name>
  +      <param-value>/tests/javax_servlet_http/HttpServletRequest/GetServletPathTestServlet</param-value>
  +    </init-param>
  +    
       <load-on-startup>0</load-on-startup>
       
     
  
  
  
  1.17      +4 -0      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.16
  retrieving revision 1.17
  diff -u -r1.16 -r1.17
  --- web.xml	25 Jul 2002 17:02:51 -0000	1.16
  +++ web.xml	25 Jul 2002 18:26:12 -0000	1.17
  @@ -1729,6 +1729,10 @@
       <servlet-name>GetServletPathTest</servlet-name>
       <display-name>GetServletPathTest</display-name>
       <servlet-class>tests.javax_servlet_http.HttpServletRequest.GetServletPathTestServlet</servlet-class>
  +    <init-param>
  +      <param-name>expectedResult</param-name>
  +      <param-value>/GetServletPathTest</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/GetServletPathTestServlet.java
  
  Index: GetServletPathTestServlet.java
  ===================================================================
  RCS file: /home/cvs/jakarta-watchdog-4.0/src/server/servlet-tests/WEB-INF/classes/tests/javax_servlet_http/HttpServletRequest/GetServletPathTestServlet.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- GetServletPathTestServlet.java	11 Jan 2002 22:29:15 -0000	1.2
  +++ GetServletPathTestServlet.java	25 Jul 2002 18:26:12 -0000	1.3
  @@ -76,7 +76,7 @@
       public void service ( HttpServletRequest request, HttpServletResponse response ) throws
ServletException, IOException {
   
           PrintWriter out = response.getWriter();
  -        String expectedResult = "/GetServletPathTest";
  +        String expectedResult = getServletConfig().getInitParameter("expectedResult");
           String result = request.getServletPath();
   
           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