[jboss-cvs] JBossAS SVN: r70493 - projects/microcontainer/trunk/kernel/src/main/org/jboss/test/kernel/junit.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Thu Mar 6 11:13:56 EST 2008
Author: adrian at jboss.org
Date: 2008-03-06 11:13:56 -0500 (Thu, 06 Mar 2008)
New Revision: 70493
Modified:
projects/microcontainer/trunk/kernel/src/main/org/jboss/test/kernel/junit/MicrocontainerTestDelegate.java
Log:
If deployment setup fails, teardown the logging/security/etc.
Modified: projects/microcontainer/trunk/kernel/src/main/org/jboss/test/kernel/junit/MicrocontainerTestDelegate.java
===================================================================
--- projects/microcontainer/trunk/kernel/src/main/org/jboss/test/kernel/junit/MicrocontainerTestDelegate.java 2008-03-06 16:02:47 UTC (rev 70492)
+++ projects/microcontainer/trunk/kernel/src/main/org/jboss/test/kernel/junit/MicrocontainerTestDelegate.java 2008-03-06 16:13:56 UTC (rev 70493)
@@ -82,20 +82,19 @@
// Deploy
deploy();
}
- catch (RuntimeException e)
- {
- throw e;
- }
catch (Exception e)
{
+ super.tearDown();
throw e;
}
catch (Error e)
{
+ super.tearDown();
throw e;
}
catch (Throwable e)
{
+ super.tearDown();
throw new RuntimeException(e);
}
}
More information about the jboss-cvs-commits
mailing list