[jboss-cvs] JBossAS SVN: r82272 - in projects/ejb3/trunk/testsuite/src/test: resources and 1 other directory.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Mon Dec 15 03:07:52 EST 2008
Author: wolfc
Date: 2008-12-15 03:07:51 -0500 (Mon, 15 Dec 2008)
New Revision: 82272
Modified:
projects/ejb3/trunk/testsuite/src/test/java/org/jboss/ejb3/test/deployer/unit/DeployerUnitTestCase.java
projects/ejb3/trunk/testsuite/src/test/resources/known-issues.xml
Log:
EJBTHREE-1627: known issue
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-15 07:55:59 UTC (rev 82271)
+++ projects/ejb3/trunk/testsuite/src/test/java/org/jboss/ejb3/test/deployer/unit/DeployerUnitTestCase.java 2008-12-15 08:07:51 UTC (rev 82272)
@@ -22,13 +22,16 @@
package org.jboss.ejb3.test.deployer.unit;
import javax.management.Attribute;
+import javax.management.AttributeNotFoundException;
+import javax.management.InstanceNotFoundException;
import javax.management.MBeanServerConnection;
import javax.management.ObjectName;
+import junit.framework.Test;
+
import org.jboss.ejb3.test.stateless.RunAsStateless;
import org.jboss.logging.Logger;
import org.jboss.test.JBossTestCase;
-import junit.framework.Test;
/**
* @author <a href="mailto:bdecoste at jboss.com">William DeCoste</a>
@@ -47,7 +50,7 @@
{
MBeanServerConnection server = getServer();
ObjectName on = new ObjectName("jboss.ejb3:service=EJB3Deployer");
- server.setAttribute(on, new Attribute("DeployEjb3ExtensionOnly", new Boolean(true)));
+ setAttribute(on, new Attribute("DeployEjb3ExtensionOnly", new Boolean(true)));
try
{
Boolean value = (Boolean)server.getAttribute(on, "DeployEjb3ExtensionOnly");
@@ -67,7 +70,7 @@
RunAsStateless runAs = (RunAsStateless) getInitialContext().lookup("RunAsStatelessEjbName/remote");
this.undeploy("stateless-test.ejb3");
- server.setAttribute(on, new Attribute("DeployEjb3ExtensionOnly", new Boolean(false)));
+ setAttribute(on, new Attribute("DeployEjb3ExtensionOnly", new Boolean(false)));
value = (Boolean)server.getAttribute(on, "DeployEjb3ExtensionOnly");
assertFalse(value.booleanValue());
@@ -77,11 +80,27 @@
}
finally
{
- server.setAttribute(on, new Attribute("DeployEjb3ExtensionOnly", false));
+ setAttribute(on, new Attribute("DeployEjb3ExtensionOnly", false));
}
}
+ private void setAttribute(ObjectName name, Attribute attribute) throws Exception
+ {
+ try
+ {
+ getServer().setAttribute(name, attribute);
+ }
+ catch (InstanceNotFoundException e)
+ {
+ fail(name + " does not expose a MBean interface");
+ }
+ catch (AttributeNotFoundException e)
+ {
+ fail(name + " does not have attribute " + attribute.getName());
+ }
+ }
+
public static Test suite() throws Exception
{
return getDeploySetup(DeployerUnitTestCase.class, "");
Modified: projects/ejb3/trunk/testsuite/src/test/resources/known-issues.xml
===================================================================
--- projects/ejb3/trunk/testsuite/src/test/resources/known-issues.xml 2008-12-15 07:55:59 UTC (rev 82271)
+++ projects/ejb3/trunk/testsuite/src/test/resources/known-issues.xml 2008-12-15 08:07:51 UTC (rev 82272)
@@ -8,6 +8,9 @@
- ignore : do nothing
- show : show the issue on System.err
</comment>
+ <!-- EJBTHREE-1627 -->
+ <entry key="org.jboss.ejb3.test.deployer.unit.DeployerUnitTestCase.testDeployEjb3ExtensionOnly">show</entry>
+ <!-- EJBTHREE-1040 -->
<entry key="org.jboss.ejb3.test.ejbthree1040.unit.RequireDeploymentDescriptorFlagUnitTestCase.testDeploymentFailureWithRequiredFlagSet">show</entry>
<entry key="org.jboss.ejb3.test.ejbthree1040.unit.RequireDeploymentDescriptorFlagUnitTestCase.testDeploySuccessWithRequiredDdAndJbossXml">show</entry>
<entry key="org.jboss.ejb3.test.ejbthree1040.unit.RequireDeploymentDescriptorFlagUnitTestCase.testDeploySuccessWithRequiredDdAndEjbJarXml">show</entry>
More information about the jboss-cvs-commits
mailing list