sraeburn    2003/07/25 00:19:48

  Modified:    src/test/org/apache/struts/util TestRequestUtils.java
  Log:
  Add initialisation of module prefixes for selectApplication tests
  
  Revision  Changes    Path
  1.20      +9 -6      
jakarta-struts/src/test/org/apache/struts/util/TestRequestUtils.java
  
  Index: TestRequestUtils.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-struts/src/test/org/apache/struts/util/TestRequestUtils.java,v
  retrieving revision 1.19
  retrieving revision 1.20
  diff -u -r1.19 -r1.20
  --- TestRequestUtils.java     2 Jul 2003 03:09:47 -0000       1.19
  +++ TestRequestUtils.java     25 Jul 2003 07:19:48 -0000      1.20
  @@ -1503,8 +1503,10 @@
   
       // Map to the second module -- direct
       public void testSelectApplication1b() {
  -
  +        String[] prefixes = { "/1", "/2" };
  +        context.setAttribute(Globals.MODULE_PREFIXES_KEY, prefixes);    
           request.setPathElements("/myapp", "/2/noform.do", null, null);
  +        
           RequestUtils.selectModule(request, context);
           ApplicationConfig appConfig = (ApplicationConfig)
               request.getAttribute(Globals.MODULE_KEY);
  @@ -1535,7 +1537,8 @@
   
       // Map to the second module -- include
       public void testSelectApplication2b() {
  -
  +        String[] prefixes = { "/1", "/2" };
  +        context.setAttribute(Globals.MODULE_PREFIXES_KEY, prefixes);    
           request.setPathElements("/myapp", "/noform.do", null, null);
           request.setAttribute(RequestProcessor.INCLUDE_SERVLET_PATH,
                                "/2/noform.do");
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to