You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2019/08/07 06:06:26 UTC

[camel] branch master updated: CAMEL-10910: A route with a single output should also use a pipeline so its the same behaviour as if the route has 2+ outputs.

This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/master by this push:
     new 010cbdd  CAMEL-10910: A route with a single output should also use a pipeline so its the same behaviour as if the route has 2+ outputs.
010cbdd is described below

commit 010cbdd69df83c8361183e44f1c3283e7f15e39c
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Wed Aug 7 08:06:01 2019 +0200

    CAMEL-10910: A route with a single output should also use a pipeline so its the same behaviour as if the route has 2+ outputs.
---
 .../apache/camel/component/git/consumer/GitConsumerTest.java   | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/components/camel-git/src/test/java/org/apache/camel/component/git/consumer/GitConsumerTest.java b/components/camel-git/src/test/java/org/apache/camel/component/git/consumer/GitConsumerTest.java
index e3994b5..ba39d3e 100644
--- a/components/camel-git/src/test/java/org/apache/camel/component/git/consumer/GitConsumerTest.java
+++ b/components/camel-git/src/test/java/org/apache/camel/component/git/consumer/GitConsumerTest.java
@@ -59,8 +59,8 @@ public class GitConsumerTest extends GitTestSupport {
         // Check
         Exchange ex1 = mockResultCommit.getExchanges().get(0);
         Exchange ex2 = mockResultCommit.getExchanges().get(1);
-        assertEquals(commitMessage, ex2.getOut().getBody(RevCommit.class).getShortMessage());
-        assertEquals("Test test Commit", ex1.getOut().getBody(RevCommit.class).getShortMessage());
+        assertEquals(commitMessage, ex2.getMessage().getBody(RevCommit.class).getShortMessage());
+        assertEquals("Test test Commit", ex1.getMessage().getBody(RevCommit.class).getShortMessage());
         git.close();
     }
 
@@ -93,7 +93,7 @@ public class GitConsumerTest extends GitTestSupport {
 
         // Check
         Exchange exchange = mockResultTag.getExchanges().get(0);
-        assertEquals("refs/tags/" + tagTest, exchange.getOut().getBody(ObjectIdRef.Unpeeled.class).getName());
+        assertEquals("refs/tags/" + tagTest, exchange.getMessage().getBody(ObjectIdRef.Unpeeled.class).getName());
         git.close();
     }
 
@@ -127,8 +127,8 @@ public class GitConsumerTest extends GitTestSupport {
 
         // Check
         List<Exchange> exchanges = mockResultBranch.getExchanges();
-        assertEquals("refs/heads/master", exchanges.get(0).getOut().getBody(ObjectIdRef.Unpeeled.class).getName());
-        assertEquals("refs/heads/" + branchTest, exchanges.get(1).getOut().getBody(ObjectIdRef.Unpeeled.class).getName());
+        assertEquals("refs/heads/master", exchanges.get(0).getMessage().getBody(ObjectIdRef.Unpeeled.class).getName());
+        assertEquals("refs/heads/" + branchTest, exchanges.get(1).getMessage().getBody(ObjectIdRef.Unpeeled.class).getName());
 
         git.close();
     }