Skip to content

Commit

Permalink
WBRI-326
Browse files Browse the repository at this point in the history
  • Loading branch information
nickarls committed Dec 8, 2009
1 parent 1011c67 commit 477ffd7
Showing 1 changed file with 19 additions and 0 deletions.
@@ -1,5 +1,7 @@
package org.jboss.weld.tests.enterprise;

import javax.ejb.EJBException;

import org.jboss.testharness.impl.packaging.Artifact;
import org.jboss.testharness.impl.packaging.IntegrationTest;
import org.jboss.testharness.impl.packaging.Packaging;
Expand All @@ -19,6 +21,23 @@ public void testSFSBWithOnlyRemoteInterfacesDeploys()

}

@Test(description="WBRI-326")
public void testInvocationExceptionIsUnwrapped()
{
try
{
getCurrentManager().getInstanceByType(Fedora.class).causeRuntimeException();
}
catch (Throwable t)
{
if (t instanceof EJBException && t.getCause() instanceof BowlerHatException)
{
return;
}
}
assert false : "Expected a BowlerHatException to be thrown";
}

@Test(description="WBRI-275")
public void testSLSBBusinessMethodThrowsRuntimeException()
{
Expand Down

0 comments on commit 477ffd7

Please sign in to comment.