camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject svn commit: r941150 - in /camel/trunk/components/camel-nagios/src/test/java/org/apache/camel/component/nagios: NagiosConfiguraitonRefTest.java NagiosEventNotifierTest.java NagiosTest.java
Date Wed, 05 May 2010 05:20:28 GMT
Author: davsclaus
Date: Wed May  5 05:20:28 2010
New Revision: 941150

URL: http://svn.apache.org/viewvc?rev=941150&view=rev
Log:
Ignore problem stopping nagios stub

Modified:
    camel/trunk/components/camel-nagios/src/test/java/org/apache/camel/component/nagios/NagiosConfiguraitonRefTest.java
    camel/trunk/components/camel-nagios/src/test/java/org/apache/camel/component/nagios/NagiosEventNotifierTest.java
    camel/trunk/components/camel-nagios/src/test/java/org/apache/camel/component/nagios/NagiosTest.java

Modified: camel/trunk/components/camel-nagios/src/test/java/org/apache/camel/component/nagios/NagiosConfiguraitonRefTest.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-nagios/src/test/java/org/apache/camel/component/nagios/NagiosConfiguraitonRefTest.java?rev=941150&r1=941149&r2=941150&view=diff
==============================================================================
--- camel/trunk/components/camel-nagios/src/test/java/org/apache/camel/component/nagios/NagiosConfiguraitonRefTest.java
(original)
+++ camel/trunk/components/camel-nagios/src/test/java/org/apache/camel/component/nagios/NagiosConfiguraitonRefTest.java
Wed May  5 05:20:28 2010
@@ -47,7 +47,12 @@ public class NagiosConfiguraitonRefTest 
     @Override
     public void tearDown() throws Exception {
         super.tearDown();
-        nagios.stop();
+        try {
+            nagios.stop();
+        } catch (Exception e) {
+            // ignore
+            log.warn("Error stopping NagiosNscaStub. This exception is ignored.", e);
+        }
     }
 
     @Override

Modified: camel/trunk/components/camel-nagios/src/test/java/org/apache/camel/component/nagios/NagiosEventNotifierTest.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-nagios/src/test/java/org/apache/camel/component/nagios/NagiosEventNotifierTest.java?rev=941150&r1=941149&r2=941150&view=diff
==============================================================================
--- camel/trunk/components/camel-nagios/src/test/java/org/apache/camel/component/nagios/NagiosEventNotifierTest.java
(original)
+++ camel/trunk/components/camel-nagios/src/test/java/org/apache/camel/component/nagios/NagiosEventNotifierTest.java
Wed May  5 05:20:28 2010
@@ -52,7 +52,12 @@ public class NagiosEventNotifierTest ext
     @Override
     public void tearDown() throws Exception {
         super.tearDown();
-        nagios.stop();
+        try {
+            nagios.stop();
+        } catch (Exception e) {
+            // ignore
+            log.warn("Error stopping NagiosNscaStub. This exception is ignored.", e);
+        }
     }
 
     @Override

Modified: camel/trunk/components/camel-nagios/src/test/java/org/apache/camel/component/nagios/NagiosTest.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-nagios/src/test/java/org/apache/camel/component/nagios/NagiosTest.java?rev=941150&r1=941149&r2=941150&view=diff
==============================================================================
--- camel/trunk/components/camel-nagios/src/test/java/org/apache/camel/component/nagios/NagiosTest.java
(original)
+++ camel/trunk/components/camel-nagios/src/test/java/org/apache/camel/component/nagios/NagiosTest.java
Wed May  5 05:20:28 2010
@@ -49,7 +49,12 @@ public class NagiosTest extends CamelTes
     @Override
     public void tearDown() throws Exception {
         super.tearDown();
-        nagios.stop();
+        try {
+            nagios.stop();
+        } catch (Exception e) {
+            // ignore
+            log.warn("Error stopping NagiosNscaStub. This exception is ignored.", e);
+        }
     }
 
     @Test



Mime
View raw message