[jboss-cvs] JBossAS SVN: r82243 - 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
Fri Dec 12 07:33:24 EST 2008
Author: wolfc
Date: 2008-12-12 07:33:24 -0500 (Fri, 12 Dec 2008)
New Revision: 82243
Added:
projects/ejb3/trunk/testsuite/src/test/resources/known-issues.xml
Modified:
projects/ejb3/trunk/testsuite/src/test/java/org/jboss/ejb3/test/ejbthree1040/unit/RequireDeploymentDescriptorFlagUnitTestCase.java
Log:
EJBTHREE-1241: EJBTHREE-1040 is under development (known-issue)
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 12:32:27 UTC (rev 82242)
+++ projects/ejb3/trunk/testsuite/src/test/java/org/jboss/ejb3/test/ejbthree1040/unit/RequireDeploymentDescriptorFlagUnitTestCase.java 2008-12-12 12:33:24 UTC (rev 82243)
@@ -23,6 +23,7 @@
package org.jboss.ejb3.test.ejbthree1040.unit;
import javax.management.Attribute;
+import javax.management.AttributeNotFoundException;
import javax.management.MBeanServerConnection;
import javax.management.ObjectName;
import javax.naming.NameNotFoundException;
@@ -187,7 +188,7 @@
*/
public void testDeploySuccessWithRequiredDdAndJbossXml() throws Exception
{
- throw new RuntimeException("IMPLEMENT");
+ fail("IMPLEMENT");
}
/**
@@ -196,7 +197,7 @@
*/
public final void testDeploySuccessWithRequiredDdAndEjbJarXml() throws Exception
{
- throw new RuntimeException("IMPLEMENT");
+ fail("IMPLEMENT");
}
// Internal Helper Methods
@@ -208,11 +209,18 @@
*/
private void setDeployerToRequireDd(boolean required) throws Exception
{
- // Set the flag for the deployer to require a deployment descriptor
- this.server.setAttribute(this.on, new Attribute(
- RequireDeploymentDescriptorFlagUnitTestCase.ATTRIBUTE_REQUIRE_DEPLOYMENT_DESCRIPTOR, required
- ? Boolean.TRUE
- : Boolean.FALSE));
+ try
+ {
+ // Set the flag for the deployer to require a deployment descriptor
+ this.server.setAttribute(this.on, new Attribute(
+ RequireDeploymentDescriptorFlagUnitTestCase.ATTRIBUTE_REQUIRE_DEPLOYMENT_DESCRIPTOR, required
+ ? Boolean.TRUE
+ : Boolean.FALSE));
+ }
+ catch(AttributeNotFoundException e)
+ {
+ fail("Attribute not found " + RequireDeploymentDescriptorFlagUnitTestCase.ATTRIBUTE_REQUIRE_DEPLOYMENT_DESCRIPTOR + " on " + this.on);
+ }
}
}
Added: projects/ejb3/trunk/testsuite/src/test/resources/known-issues.xml
===================================================================
--- projects/ejb3/trunk/testsuite/src/test/resources/known-issues.xml (rev 0)
+++ projects/ejb3/trunk/testsuite/src/test/resources/known-issues.xml 2008-12-12 12:33:24 UTC (rev 82243)
@@ -0,0 +1,14 @@
+<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd">
+<properties>
+ <comment>
+ This file contains the action to take when a known issue is encountered.
+
+ The following actions are allowed:
+ - fail : fail the test (set this when an issue is resolved)
+ - ignore : do nothing
+ - show : show the issue on System.err
+ </comment>
+ <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>
+</properties>
More information about the jboss-cvs-commits
mailing list