You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ni...@apache.org on 2009/05/12 16:47:39 UTC
svn commit: r773915 -
/camel/trunk/tests/camel-itest-osgi/src/test/java/org/apache/camel/itest/osgi/OSGiIntegrationSpringTestSupport.java
Author: ningjiang
Date: Tue May 12 14:47:39 2009
New Revision: 773915
URL: http://svn.apache.org/viewvc?rev=773915&view=rev
Log:
Try to fix the Hudson test error
Modified:
camel/trunk/tests/camel-itest-osgi/src/test/java/org/apache/camel/itest/osgi/OSGiIntegrationSpringTestSupport.java
Modified: camel/trunk/tests/camel-itest-osgi/src/test/java/org/apache/camel/itest/osgi/OSGiIntegrationSpringTestSupport.java
URL: http://svn.apache.org/viewvc/camel/trunk/tests/camel-itest-osgi/src/test/java/org/apache/camel/itest/osgi/OSGiIntegrationSpringTestSupport.java?rev=773915&r1=773914&r2=773915&view=diff
==============================================================================
--- camel/trunk/tests/camel-itest-osgi/src/test/java/org/apache/camel/itest/osgi/OSGiIntegrationSpringTestSupport.java (original)
+++ camel/trunk/tests/camel-itest-osgi/src/test/java/org/apache/camel/itest/osgi/OSGiIntegrationSpringTestSupport.java Tue May 12 14:47:39 2009
@@ -52,13 +52,17 @@
}
@After
- public void tearDown() throws Exception {
- super.tearDown();
- if (applicationContext != null) {
- // Try to fix the test error on Hudson
- if (applicationContext.isActive()) {
- applicationContext.destroy();
+ public void tearDown() {
+ try {
+ super.tearDown();
+ if (applicationContext != null) {
+ if (applicationContext.isActive()) {
+ applicationContext.destroy();
+ }
+ applicationContext = null;
}
+ } catch (Exception exception) {
+ // Don't throw the exception in the tearDown method
}
}