camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject [7/8] git commit: CAMEL-7619: Rest DSL - adding support for xml/json binding using Camel's data formats.
Date Mon, 28 Jul 2014 09:35:12 GMT
CAMEL-7619: Rest DSL - adding support for xml/json binding using Camel's data formats.


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

Branch: refs/heads/master
Commit: 2e6347f2a0c6debe88b6902affde605f183343c5
Parents: 54fb413
Author: Claus Ibsen <davsclaus@apache.org>
Authored: Sun Jul 27 12:06:12 2014 +0200
Committer: Claus Ibsen <davsclaus@apache.org>
Committed: Mon Jul 28 10:50:49 2014 +0200

----------------------------------------------------------------------
 .../blueprint/component/rest/FromRestGetEmbeddedRouteTest.java   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/2e6347f2/components/camel-test-blueprint/src/test/java/org/apache/camel/test/blueprint/component/rest/FromRestGetEmbeddedRouteTest.java
----------------------------------------------------------------------
diff --git a/components/camel-test-blueprint/src/test/java/org/apache/camel/test/blueprint/component/rest/FromRestGetEmbeddedRouteTest.java
b/components/camel-test-blueprint/src/test/java/org/apache/camel/test/blueprint/component/rest/FromRestGetEmbeddedRouteTest.java
index e0c9af6..3446f25 100644
--- a/components/camel-test-blueprint/src/test/java/org/apache/camel/test/blueprint/component/rest/FromRestGetEmbeddedRouteTest.java
+++ b/components/camel-test-blueprint/src/test/java/org/apache/camel/test/blueprint/component/rest/FromRestGetEmbeddedRouteTest.java
@@ -41,7 +41,7 @@ public class FromRestGetEmbeddedRouteTest extends CamelBlueprintTestSupport
{
         assertNotNull(rest);
         assertEquals("/say/hello", rest.getUri());
         assertEquals(1, rest.getVerbs().size());
-        ToDefinition to = assertIsInstanceOf(ToDefinition.class, rest.getVerbs().get(0).getRoute().getOutputs().get(0));
+        ToDefinition to = assertIsInstanceOf(ToDefinition.class, rest.getVerbs().get(0).getRoute().getOutputs().get(1));
         assertEquals("mock:hello", to.getUri());
 
         rest = context.getRestDefinitions().get(1);
@@ -49,7 +49,7 @@ public class FromRestGetEmbeddedRouteTest extends CamelBlueprintTestSupport
{
         assertEquals("/say/bye", rest.getUri());
         assertEquals(2, rest.getVerbs().size());
         assertEquals("application/json", rest.getVerbs().get(0).getConsumes());
-        to = assertIsInstanceOf(ToDefinition.class, rest.getVerbs().get(0).getRoute().getOutputs().get(0));
+        to = assertIsInstanceOf(ToDefinition.class, rest.getVerbs().get(0).getRoute().getOutputs().get(1));
         assertEquals("mock:bye", to.getUri());
 
         // the rest becomes routes and the input is a seda endpoint created by the DummyRestConsumerFactory


Mime
View raw message