[jboss-cvs] JBossAS SVN: r73623 - in projects/microcontainer/trunk/aop-mc-int/src: tests/org/jboss/test/microcontainer/test and 1 other directory.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Fri May 23 11:17:30 EDT 2008


Author: kabir.khan at jboss.com
Date: 2008-05-23 11:17:30 -0400 (Fri, 23 May 2008)
New Revision: 73623

Added:
   projects/microcontainer/trunk/aop-mc-int/src/resources/tests/org/jboss/test/microcontainer/test/DeployersInterceptedAspectManagerJMXTestCase.properties
   projects/microcontainer/trunk/aop-mc-int/src/resources/tests/org/jboss/test/microcontainer/test/MixinTestCase.properties
Modified:
   projects/microcontainer/trunk/aop-mc-int/src/resources/tests/org/jboss/test/microcontainer/test/JMXDecoratedTestCase.properties
   projects/microcontainer/trunk/aop-mc-int/src/resources/tests/org/jboss/test/microcontainer/test/JMXLifecycleTestCase.properties
   projects/microcontainer/trunk/aop-mc-int/src/resources/tests/org/jboss/test/microcontainer/test/MultipleLifecycleTestCase.properties
   projects/microcontainer/trunk/aop-mc-int/src/tests/org/jboss/test/microcontainer/test/FieldAccessTestCase.java
   projects/microcontainer/trunk/aop-mc-int/src/tests/org/jboss/test/microcontainer/test/HasInstanceAnnotationTestCase.java
Log:
Fix failures when running not woven with a security manager

Added: projects/microcontainer/trunk/aop-mc-int/src/resources/tests/org/jboss/test/microcontainer/test/DeployersInterceptedAspectManagerJMXTestCase.properties
===================================================================
--- projects/microcontainer/trunk/aop-mc-int/src/resources/tests/org/jboss/test/microcontainer/test/DeployersInterceptedAspectManagerJMXTestCase.properties	                        (rev 0)
+++ projects/microcontainer/trunk/aop-mc-int/src/resources/tests/org/jboss/test/microcontainer/test/DeployersInterceptedAspectManagerJMXTestCase.properties	2008-05-23 15:17:30 UTC (rev 73623)
@@ -0,0 +1,3 @@
+test.Permission.1=javax.management.MBeanPermission, *#*, getMBeanInfo,invoke,registerMBean,unregisterMBean
+test.Permission.2=javax.management.MBeanServerPermission, createMBeanServer
+test.Permission.3=javax.management.MBeanTrustPermission, register
\ No newline at end of file

Modified: projects/microcontainer/trunk/aop-mc-int/src/resources/tests/org/jboss/test/microcontainer/test/JMXDecoratedTestCase.properties
===================================================================
--- projects/microcontainer/trunk/aop-mc-int/src/resources/tests/org/jboss/test/microcontainer/test/JMXDecoratedTestCase.properties	2008-05-23 14:32:17 UTC (rev 73622)
+++ projects/microcontainer/trunk/aop-mc-int/src/resources/tests/org/jboss/test/microcontainer/test/JMXDecoratedTestCase.properties	2008-05-23 15:17:30 UTC (rev 73623)
@@ -1 +1,3 @@
-test.Permission.1=javax.management.MBeanPermission, *#*, getMBeanInfo,invoke,registerMBean
\ No newline at end of file
+test.Permission.1=javax.management.MBeanPermission, *#*, getMBeanInfo,invoke,registerMBean,unregisterMBean
+test.Permission.2=javax.management.MBeanServerPermission, createMBeanServer
+test.Permission.3=javax.management.MBeanTrustPermission, register

Modified: projects/microcontainer/trunk/aop-mc-int/src/resources/tests/org/jboss/test/microcontainer/test/JMXLifecycleTestCase.properties
===================================================================
--- projects/microcontainer/trunk/aop-mc-int/src/resources/tests/org/jboss/test/microcontainer/test/JMXLifecycleTestCase.properties	2008-05-23 14:32:17 UTC (rev 73622)
+++ projects/microcontainer/trunk/aop-mc-int/src/resources/tests/org/jboss/test/microcontainer/test/JMXLifecycleTestCase.properties	2008-05-23 15:17:30 UTC (rev 73623)
@@ -1 +1,3 @@
-test.Permission.1=javax.management.MBeanPermission, *#*, getMBeanInfo,invoke,registerMBean
\ No newline at end of file
+test.Permission.1=javax.management.MBeanPermission, *#*, getMBeanInfo,invoke,registerMBean,unregisterMBean
+test.Permission.2=javax.management.MBeanServerPermission, createMBeanServer
+test.Permission.3=javax.management.MBeanTrustPermission, register

Added: projects/microcontainer/trunk/aop-mc-int/src/resources/tests/org/jboss/test/microcontainer/test/MixinTestCase.properties
===================================================================
--- projects/microcontainer/trunk/aop-mc-int/src/resources/tests/org/jboss/test/microcontainer/test/MixinTestCase.properties	                        (rev 0)
+++ projects/microcontainer/trunk/aop-mc-int/src/resources/tests/org/jboss/test/microcontainer/test/MixinTestCase.properties	2008-05-23 15:17:30 UTC (rev 73623)
@@ -0,0 +1,2 @@
+test.Permission.1=javax.management.MBeanPermission, *#*, getMBeanInfo,invoke,registerMBean
+test.Permission.2=javax.management.MBeanServerPermission, createMBeanServer

Modified: projects/microcontainer/trunk/aop-mc-int/src/resources/tests/org/jboss/test/microcontainer/test/MultipleLifecycleTestCase.properties
===================================================================
--- projects/microcontainer/trunk/aop-mc-int/src/resources/tests/org/jboss/test/microcontainer/test/MultipleLifecycleTestCase.properties	2008-05-23 14:32:17 UTC (rev 73622)
+++ projects/microcontainer/trunk/aop-mc-int/src/resources/tests/org/jboss/test/microcontainer/test/MultipleLifecycleTestCase.properties	2008-05-23 15:17:30 UTC (rev 73623)
@@ -1 +1,2 @@
-test.Permission.1=javax.management.MBeanPermission, *#*, getMBeanInfo,invoke,registerMBean
\ No newline at end of file
+test.Permission.1=javax.management.MBeanPermission, *#*, getMBeanInfo,invoke,registerMBean
+test.Permission.2=javax.management.MBeanServerPermission, createMBeanServer

Modified: projects/microcontainer/trunk/aop-mc-int/src/tests/org/jboss/test/microcontainer/test/FieldAccessTestCase.java
===================================================================
--- projects/microcontainer/trunk/aop-mc-int/src/tests/org/jboss/test/microcontainer/test/FieldAccessTestCase.java	2008-05-23 14:32:17 UTC (rev 73622)
+++ projects/microcontainer/trunk/aop-mc-int/src/tests/org/jboss/test/microcontainer/test/FieldAccessTestCase.java	2008-05-23 15:17:30 UTC (rev 73623)
@@ -22,6 +22,8 @@
 package org.jboss.test.microcontainer.test;
 
 import junit.framework.Test;
+
+import org.jboss.test.AbstractTestDelegate;
 import org.jboss.test.aop.junit.AbstractTypeTest;
 import org.jboss.test.aop.junit.AbstractTypeTestDelegate;
 import org.jboss.test.microcontainer.beans.support.AccessBean;
@@ -43,6 +45,13 @@
       return suite(FieldAccessTestCase.class);
    }
 
+   public static AbstractTestDelegate getDelegate(Class<?> clazz) throws Exception
+   {
+      //Don't use security for this test
+      AbstractTypeTestDelegate delegate = new AbstractTypeTestDelegate(clazz);
+      return delegate;
+   }
+
    protected void testAccessBean(String name) throws Throwable
    {
       AccessBean bean = getBean(name, AccessBean.class);

Modified: projects/microcontainer/trunk/aop-mc-int/src/tests/org/jboss/test/microcontainer/test/HasInstanceAnnotationTestCase.java
===================================================================
--- projects/microcontainer/trunk/aop-mc-int/src/tests/org/jboss/test/microcontainer/test/HasInstanceAnnotationTestCase.java	2008-05-23 14:32:17 UTC (rev 73622)
+++ projects/microcontainer/trunk/aop-mc-int/src/tests/org/jboss/test/microcontainer/test/HasInstanceAnnotationTestCase.java	2008-05-23 15:17:30 UTC (rev 73623)
@@ -22,7 +22,10 @@
 package org.jboss.test.microcontainer.test;
 
 import junit.framework.Test;
+
+import org.jboss.test.AbstractTestDelegate;
 import org.jboss.test.aop.junit.AbstractTypeTest;
+import org.jboss.test.aop.junit.AbstractTypeTestDelegate;
 
 /**
  * Test instance annotations, do we require aop proxy for them.
@@ -40,6 +43,13 @@
    {
       return suite(HasInstanceAnnotationTestCase.class);
    }
+   
+   public static AbstractTestDelegate getDelegate(Class<?> clazz) throws Exception
+   {
+      //Don't use security for this test
+      AbstractTypeTestDelegate delegate = new AbstractTypeTestDelegate(clazz);
+      return delegate;
+   }
 
    public void testInstanceAnnotation() throws Throwable
    {




More information about the jboss-cvs-commits mailing list