User: starksm 
  Date: 01/07/29 09:32:43

  Modified:    src/main/org/jboss/test/web/test Tag: Branch_2_4
                        TestWebIntegration.java
  Log:
  Need to flush the security manager authentication cache as different tests
  use the same security domain with different user to role mappings
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.7.2.2   +6 -1      
jbosstest/src/main/org/jboss/test/web/test/TestWebIntegration.java
  
  Index: TestWebIntegration.java
  ===================================================================
  RCS file: 
/cvsroot/jboss/jbosstest/src/main/org/jboss/test/web/test/TestWebIntegration.java,v
  retrieving revision 1.7.2.1
  retrieving revision 1.7.2.2
  diff -u -r1.7.2.1 -r1.7.2.2
  --- TestWebIntegration.java   2001/07/09 01:06:06     1.7.2.1
  +++ TestWebIntegration.java   2001/07/29 16:32:43     1.7.2.2
  @@ -26,7 +26,7 @@
   with a role of 'AuthorizedUser' in the servlet container.
   
   @author [EMAIL PROTECTED]
  -@version $Revision: 1.7.2.1 $
  +@version $Revision: 1.7.2.2 $
   */
   public class TestWebIntegration extends TestCase
   {
  @@ -76,6 +76,11 @@
                       e.printStackTrace();
                       fail("Failed to deploy jbosstest-web.ear");
                   }
  +                // Flush the security domain cache to avoid conflicts with other 
testcases
  +                ObjectName jaasMgr = new 
ObjectName("Security:name=JaasSecurityManager");
  +                params = new Object[]{"other"};
  +                signature = new String[]{"java.lang.String"};
  +                server.invoke(jaasMgr, "flushAuthenticationCache", params, 
signature);
               }
               else
               {
  
  
  

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to