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 2013/10/25 06:40:27 UTC

[2/3] git commit: Enhanced the Scala CBR test according the user question from the mailing list.

Enhanced the Scala CBR test according the user question from the mailing list.


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/c5be3e60
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/c5be3e60
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/c5be3e60

Branch: refs/heads/master
Commit: c5be3e6099c23fb7cbf0dd8453ada76cc218731d
Parents: ea9dc13
Author: Willem Jiang <ni...@apache.org>
Authored: Fri Oct 25 11:49:42 2013 +0800
Committer: Willem Jiang <ni...@apache.org>
Committed: Fri Oct 25 12:39:48 2013 +0800

----------------------------------------------------------------------
 .../test/scala/org/apache/camel/scala/dsl/CamelCBRTest.scala    | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/c5be3e60/components/camel-scala/src/test/scala/org/apache/camel/scala/dsl/CamelCBRTest.scala
----------------------------------------------------------------------
diff --git a/components/camel-scala/src/test/scala/org/apache/camel/scala/dsl/CamelCBRTest.scala b/components/camel-scala/src/test/scala/org/apache/camel/scala/dsl/CamelCBRTest.scala
index d0067fb..aa21856 100644
--- a/components/camel-scala/src/test/scala/org/apache/camel/scala/dsl/CamelCBRTest.scala
+++ b/components/camel-scala/src/test/scala/org/apache/camel/scala/dsl/CamelCBRTest.scala
@@ -28,7 +28,7 @@ class CamelCBRTest extends CamelTestSupport with RouteBuilderSupport {
   def testFoo() {
     getMockEndpoint("mock:foo").expectedMessageCount(1)
     getMockEndpoint("mock:other").expectedMessageCount(0)
-
+    getMockEndpoint("mock:end").expectedMessageCount(1)
     template.sendBody("direct:start", "foo")
 
     assertMockEndpointsSatisfied()
@@ -38,6 +38,7 @@ class CamelCBRTest extends CamelTestSupport with RouteBuilderSupport {
   def testOther() {
     getMockEndpoint("mock:foo").expectedMessageCount(0)
     getMockEndpoint("mock:other").expectedMessageCount(1)
+    getMockEndpoint("mock:end").expectedMessageCount(1)
 
     template.sendBody("direct:start", "bar")
 
@@ -50,7 +51,9 @@ class CamelCBRTest extends CamelTestSupport with RouteBuilderSupport {
         when(simple("${body} == 'foo'")) to "mock:foo"
         otherwise to "mock:other"
       }
+      to("mock:end")
     }
+
   }
 
 }
\ No newline at end of file