[jboss-cvs] JBossAS SVN: r63908 - trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree751/unit.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Mon Jul 9 05:27:08 EDT 2007
Author: wolfc
Date: 2007-07-09 05:27:08 -0400 (Mon, 09 Jul 2007)
New Revision: 63908
Modified:
trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree751/unit/FailLocalRemoteSameInterfaceUnitTestCase.java
Log:
EJBTHREE-996: unit test complete
Modified: trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree751/unit/FailLocalRemoteSameInterfaceUnitTestCase.java
===================================================================
--- trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree751/unit/FailLocalRemoteSameInterfaceUnitTestCase.java 2007-07-08 02:57:37 UTC (rev 63907)
+++ trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree751/unit/FailLocalRemoteSameInterfaceUnitTestCase.java 2007-07-09 09:27:08 UTC (rev 63908)
@@ -53,7 +53,21 @@
public void testDeploymentFailure() throws Exception
{
- redeploy("ejbthree751-fail.jar");
- fail("should throw an exception");
+ try
+ {
+ redeploy("ejbthree751-fail.jar");
+ fail("should throw an exception");
+ }
+ catch(Exception e)
+ {
+ for(Throwable t = e;t != null; t = t.getCause())
+ {
+ // See ProxyFactoryHelper.getLocalInterfaces
+ if(t.getMessage().contains("EJB3 Spec 4.6.7, Bullet 5.4"))
+ return;
+ }
+ e.printStackTrace();
+ fail("Exception did not contain expected message");
+ }
}
}
More information about the jboss-cvs-commits
mailing list