[jboss-cvs] JBossAS SVN: r82339 - projects/ejb3/trunk/testsuite/src/test/java/org/jboss/ejb3/test/deployer/unit.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Wed Dec 17 06:46:18 EST 2008


Author: wolfc
Date: 2008-12-17 06:46:18 -0500 (Wed, 17 Dec 2008)
New Revision: 82339

Modified:
   projects/ejb3/trunk/testsuite/src/test/java/org/jboss/ejb3/test/deployer/unit/DeployerUnitTestCase.java
Log:
EJBTHREE-1627: also catching MBeanException to detect missing MBean interface

Modified: projects/ejb3/trunk/testsuite/src/test/java/org/jboss/ejb3/test/deployer/unit/DeployerUnitTestCase.java
===================================================================
--- projects/ejb3/trunk/testsuite/src/test/java/org/jboss/ejb3/test/deployer/unit/DeployerUnitTestCase.java	2008-12-17 10:15:45 UTC (rev 82338)
+++ projects/ejb3/trunk/testsuite/src/test/java/org/jboss/ejb3/test/deployer/unit/DeployerUnitTestCase.java	2008-12-17 11:46:18 UTC (rev 82339)
@@ -24,6 +24,7 @@
 import javax.management.Attribute;
 import javax.management.AttributeNotFoundException;
 import javax.management.InstanceNotFoundException;
+import javax.management.MBeanException;
 import javax.management.MBeanServerConnection;
 import javax.management.ObjectName;
 
@@ -99,6 +100,12 @@
       {
          fail(name + " does not have attribute " + attribute.getName());
       }
+      catch(MBeanException e)
+      {
+         if(e.getCause() instanceof InstanceNotFoundException)
+            fail(name + " does not expose a MBean interface");
+         throw e;
+      }
    }
    
    public static Test suite() throws Exception




More information about the jboss-cvs-commits mailing list