[Jboss-cvs] JBossAS SVN: r56645 - projects/test/trunk/test/src/main/org/jboss/test

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Fri Sep 8 09:30:10 EDT 2006


Author: adrian at jboss.org
Date: 2006-09-08 09:30:08 -0400 (Fri, 08 Sep 2006)
New Revision: 56645

Modified:
   projects/test/trunk/test/src/main/org/jboss/test/AbstractTestCase.java
Log:
If the error is a Junit error, just rethrow it.

Modified: projects/test/trunk/test/src/main/org/jboss/test/AbstractTestCase.java
===================================================================
--- projects/test/trunk/test/src/main/org/jboss/test/AbstractTestCase.java	2006-09-08 13:12:17 UTC (rev 56644)
+++ projects/test/trunk/test/src/main/org/jboss/test/AbstractTestCase.java	2006-09-08 13:30:08 UTC (rev 56645)
@@ -192,6 +192,8 @@
          fail("Must provide an expected class");
       if (throwable == null)
          fail("Must provide a throwable for comparison");
+      if (throwable instanceof AssertionFailedError || throwable instanceof AssertionError)
+         throw (Error) throwable;
       if (expected.equals(throwable.getClass()) == false)
       {
          getLog().error("Unexpected throwable", throwable);




More information about the jboss-cvs-commits mailing list