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 ka...@apache.org on 2008/04/03 11:58:58 UTC
svn commit: r644248 -
/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/ServerPropertiesTest.policy
Author: kahatlen
Date: Thu Apr 3 02:58:57 2008
New Revision: 644248
URL: http://svn.apache.org/viewvc?rev=644248&view=rev
Log:
DERBY-3561: testStartStopManagementFromApplication(org.apache.derbyTesting.functionTests.tests.management.ManagementMBeanTest)junit.framework.AssertionFailedError: expected:<2> but was:<5>
Added permission so that all tests can unregister MBeans when they
shut down the database.
Patch contributed by John H. Embretsen <Jo...@Sun.COM>.
Modified:
db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/ServerPropertiesTest.policy
Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/ServerPropertiesTest.policy
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/ServerPropertiesTest.policy?rev=644248&r1=644247&r2=644248&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/ServerPropertiesTest.policy (original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/ServerPropertiesTest.policy Thu Apr 3 02:58:57 2008
@@ -76,7 +76,12 @@
// JDK14 has the JCE preloaded
permission java.security.SecurityPermission "insertProvider.SunJCE";
permission java.security.SecurityPermission "insertProvider.IBMJCE";
-
+
+ // 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";
+
};
//