[jboss-cvs] JBossAS SVN: r82308 - projects/ejb3/trunk/testsuite/src/test/java/org/jboss/ejb3/test/ejbthree1040/unit.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Tue Dec 16 06:16:11 EST 2008
Author: wolfc
Date: 2008-12-16 06:16:11 -0500 (Tue, 16 Dec 2008)
New Revision: 82308
Modified:
projects/ejb3/trunk/testsuite/src/test/java/org/jboss/ejb3/test/ejbthree1040/unit/RequireDeploymentDescriptorFlagUnitTestCase.java
Log:
EJBTHREE-1040: also catching MBeanException to detect missing MBean interface
Modified: projects/ejb3/trunk/testsuite/src/test/java/org/jboss/ejb3/test/ejbthree1040/unit/RequireDeploymentDescriptorFlagUnitTestCase.java
===================================================================
--- projects/ejb3/trunk/testsuite/src/test/java/org/jboss/ejb3/test/ejbthree1040/unit/RequireDeploymentDescriptorFlagUnitTestCase.java 2008-12-16 11:16:04 UTC (rev 82307)
+++ projects/ejb3/trunk/testsuite/src/test/java/org/jboss/ejb3/test/ejbthree1040/unit/RequireDeploymentDescriptorFlagUnitTestCase.java 2008-12-16 11:16:11 UTC (rev 82308)
@@ -25,6 +25,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;
import javax.naming.NameNotFoundException;
@@ -226,6 +227,12 @@
{
fail(this.on + " does not expose a MBean interface");
}
+ catch(MBeanException e)
+ {
+ if(e.getCause() instanceof InstanceNotFoundException)
+ fail(this.on + " does not expose a MBean interface");
+ throw e;
+ }
}
}
More information about the jboss-cvs-commits
mailing list