camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject [1/3] camel git commit: Correction to multicast route in unit test
Date Fri, 16 Oct 2015 12:58:37 GMT
Repository: camel
Updated Branches:
  refs/heads/master 51f6253de -> bd749da7b


Correction to multicast route in unit test


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

Branch: refs/heads/master
Commit: d7aa2273ef66d93e2b8df7e33939d709ce5d3c23
Parents: 021eef6
Author: jonmcewen <jon_mcewen@hotmail.com>
Authored: Thu Oct 15 14:35:49 2015 +0100
Committer: Claus Ibsen <davsclaus@apache.org>
Committed: Fri Oct 16 14:58:02 2015 +0200

----------------------------------------------------------------------
 .../MetricsRoutePolicyMulticastSubRouteTest.java          | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/d7aa2273/components/camel-metrics/src/test/java/org/apache/camel/component/metrics/routepolicy/MetricsRoutePolicyMulticastSubRouteTest.java
----------------------------------------------------------------------
diff --git a/components/camel-metrics/src/test/java/org/apache/camel/component/metrics/routepolicy/MetricsRoutePolicyMulticastSubRouteTest.java
b/components/camel-metrics/src/test/java/org/apache/camel/component/metrics/routepolicy/MetricsRoutePolicyMulticastSubRouteTest.java
index 3febfa0..09fb389 100644
--- a/components/camel-metrics/src/test/java/org/apache/camel/component/metrics/routepolicy/MetricsRoutePolicyMulticastSubRouteTest.java
+++ b/components/camel-metrics/src/test/java/org/apache/camel/component/metrics/routepolicy/MetricsRoutePolicyMulticastSubRouteTest.java
@@ -48,10 +48,10 @@ public class MetricsRoutePolicyMulticastSubRouteTest extends CamelTestSupport
{
     @Test
     public void testMetricsRoutePolicy() throws Exception {
         getMockEndpoint("mock:foo").expectedMessageCount(1);
-        getMockEndpoint("mock:bar").expectedMessageCount(1);
-        getMockEndpoint("mock:end").expectedMessageCount(1);
+        getMockEndpoint("mock:bar1").expectedMessageCount(1);
+        getMockEndpoint("mock:bar2").expectedMessageCount(1);
 
-        template.sendBody("seda:multicast", "Hello World");
+        template.sendBody("direct:multicast", "Hello World");
 
         assertMockEndpointsSatisfied();
 
@@ -76,9 +76,9 @@ public class MetricsRoutePolicyMulticastSubRouteTest extends CamelTestSupport
{
             public void configure() throws Exception {
                 from("direct:foo").routeId("foo").to("mock:foo");
 
-                from("direct:bar").routeId("bar").to("mock:bar");
+                from("direct:bar").routeId("bar").multicast().to("mock:bar1", "mock:bar2");
 
-                from("seda:multicast").routeId("multicast").multicast().to("direct:foo").to("direct:bar").end().to("mock:end");
+                from("direct:multicast").routeId("multicast").multicast().to("direct:foo",
"direct:bar");
 
             }
         };


Mime
View raw message