You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-commits@db.apache.org by jo...@apache.org on 2008/08/27 14:41:05 UTC

svn commit: r689462 - /db/derby/code/branches/10.4/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/ServerPropertiesTest.policy

Author: johnemb
Date: Wed Aug 27 05:41:04 2008
New Revision: 689462

URL: http://svn.apache.org/viewvc?rev=689462&view=rev
Log:
DERBY-3561: testStartStopManagementFromApplication fails with "expected:<2> but was:<5>"
 - applying same change to ServerPropertiesTest.policy's section for classes as
   revision 644248 did to its section for derby.jar.
 - that is, added permission which allows ServerPropertiesTest's JVM to unregister 
   MBeans that are automatically registered upon Derby boot by that test or previous 
   tests.

Modified:
    db/derby/code/branches/10.4/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/ServerPropertiesTest.policy

Modified: db/derby/code/branches/10.4/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/ServerPropertiesTest.policy
URL: http://svn.apache.org/viewvc/db/derby/code/branches/10.4/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/ServerPropertiesTest.policy?rev=689462&r1=689461&r2=689462&view=diff
==============================================================================
--- db/derby/code/branches/10.4/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/ServerPropertiesTest.policy (original)
+++ db/derby/code/branches/10.4/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/ServerPropertiesTest.policy Wed Aug 27 05:41:04 2008
@@ -215,6 +215,11 @@
   // streams. Currently the nist suite runs with useprocess=false.
   permission java.lang.RuntimePermission "setSecurityManager";
   permission java.lang.RuntimePermission "setIO"; 
+
+  // This permission is needed to avoid test failures in subsequent tests that
+  // may be testing JMX functionality. Without this permission, old MBeans
+  // might not be unregistered from the MBean server. See DERBY-3561.
+  permission javax.management.MBeanPermission "org.apache.derby.*#[org.apache.derby:*]","unregisterMBean";
 };
 
 // JUnit jar file tries to read junit.properties in the user's