[jboss-cvs] JBossAS SVN: r82246 - 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
Fri Dec 12 09:30:21 EST 2008
Author: wolfc
Date: 2008-12-12 09:30:21 -0500 (Fri, 12 Dec 2008)
New Revision: 82246
Modified:
projects/ejb3/trunk/testsuite/src/test/java/org/jboss/ejb3/test/ejbthree1040/unit/RequireDeploymentDescriptorFlagUnitTestCase.java
Log:
EJBTHREE-1040: fail on 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-12 14:23:11 UTC (rev 82245)
+++ projects/ejb3/trunk/testsuite/src/test/java/org/jboss/ejb3/test/ejbthree1040/unit/RequireDeploymentDescriptorFlagUnitTestCase.java 2008-12-12 14:30:21 UTC (rev 82246)
@@ -24,6 +24,7 @@
import javax.management.Attribute;
import javax.management.AttributeNotFoundException;
+import javax.management.InstanceNotFoundException;
import javax.management.MBeanServerConnection;
import javax.management.ObjectName;
import javax.naming.NameNotFoundException;
@@ -221,6 +222,10 @@
{
fail("Attribute not found " + RequireDeploymentDescriptorFlagUnitTestCase.ATTRIBUTE_REQUIRE_DEPLOYMENT_DESCRIPTOR + " on " + this.on);
}
+ catch(InstanceNotFoundException e)
+ {
+ fail(this.on + " does not expose a MBean interface");
+ }
}
}
More information about the jboss-cvs-commits
mailing list