camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ningji...@apache.org
Subject svn commit: r773915 - /camel/trunk/tests/camel-itest-osgi/src/test/java/org/apache/camel/itest/osgi/OSGiIntegrationSpringTestSupport.java
Date Tue, 12 May 2009 14:47:39 GMT
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            
         }
     }
     



Mime
View raw message