mx4j/src/test/test/javax/management LocalSecurityManagerTest.java,1.1,1.2

[email protected]
Newsgroups gmane.comp.java.mx4j.cvs
Message-ID <[email protected]>
Update of /cvsroot/mx4j/mx4j/src/test/test/javax/management
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31872/test/test/javax/management

Modified Files:
	LocalSecurityManagerTest.java 
Log Message:
Fixed the test in the automated run, when the many jar causes classes to be loaded from not usual places

Index: LocalSecurityManagerTest.java
===================================================================
RCS file: /cvsroot/mx4j/mx4j/src/test/test/javax/management/LocalSecurityManagerTest.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** LocalSecurityManagerTest.java	1 Mar 2004 18:31:56 -0000	1.1
--- LocalSecurityManagerTest.java	2 Mar 2004 18:49:06 -0000	1.2
***************
*** 32,35 ****
--- 32,36 ----
  import junit.framework.TestCase;
  import mx4j.server.MX4JMBeanServer;
+ import mx4j.log.Log;
  
  /**
***************
*** 458,461 ****
--- 459,466 ----
           permissionsMap.put(implCodeSource, createAllPermissions());
  
+          // In the automated tests, the log classes may be taken from the JSR 160 jars.
+          CodeSource logCodeSource = Log.class.getProtectionDomain().getCodeSource();
+          permissionsMap.put(logCodeSource, createAllPermissions());
+ 
           ClassLoader loader = getClass().getClassLoader();
  



-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.