Author: bvahdat
Date: Fri Dec  7 09:57:09 2012
New Revision: 1418239

URL: http://svn.apache.org/viewvc?rev=1418239&view=rev
Log:
Added the missing Assert.fail() calls to avoid any potential false-positive 
test results.

Modified:
    
camel/trunk/camel-core/src/test/java/org/apache/camel/builder/NotifyBuilderTest.java

Modified: 
camel/trunk/camel-core/src/test/java/org/apache/camel/builder/NotifyBuilderTest.java
URL: 
http://svn.apache.org/viewvc/camel/trunk/camel-core/src/test/java/org/apache/camel/builder/NotifyBuilderTest.java?rev=1418239&r1=1418238&r2=1418239&view=diff
==============================================================================
--- 
camel/trunk/camel-core/src/test/java/org/apache/camel/builder/NotifyBuilderTest.java
 (original)
+++ 
camel/trunk/camel-core/src/test/java/org/apache/camel/builder/NotifyBuilderTest.java
 Fri Dec  7 09:57:09 2012
@@ -296,6 +296,7 @@ public class NotifyBuilderTest extends C
 
         try {
             template.sendBody("direct:fail", "E");
+            fail("Should have thrown exception");
         } catch (Exception e) {
             // ignore
         }
@@ -321,6 +322,7 @@ public class NotifyBuilderTest extends C
 
         try {
             template.sendBody("direct:fail", "G");
+            fail("Should have thrown exception");
         } catch (Exception e) {
             // ignore
         }
@@ -424,12 +426,14 @@ public class NotifyBuilderTest extends C
 
         try {
             template.sendBody("direct:fail", "D");
+            fail("Should have thrown exception");
         } catch (Exception e) {
             // ignore
         }
 
         try {
             template.sendBody("direct:fail", "E");
+            fail("Should have thrown exception");
         } catch (Exception e) {
             // ignore
         }
@@ -500,6 +504,7 @@ public class NotifyBuilderTest extends C
 
         try {
             template.sendBody("direct:fail", "D");
+            fail("Should have thrown exception");
         } catch (Exception e) {
             // ignore
         }
@@ -509,6 +514,7 @@ public class NotifyBuilderTest extends C
 
         try {
             template.sendBody("direct:fail", "F");
+            fail("Should have thrown exception");
         } catch (Exception e) {
             // ignore
         }
@@ -519,6 +525,7 @@ public class NotifyBuilderTest extends C
 
         try {
             template.sendBody("direct:fail", "H");
+            fail("Should have thrown exception");
         } catch (Exception e) {
             // ignore
         }


Reply via email to