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 2017/03/04 12:21:18 UTC

[17/17] camel git commit: Fixed test

Fixed test


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

Branch: refs/heads/master
Commit: f5f187bd7159648290364ad9e5717d8e0ce06471
Parents: c7907e9
Author: Claus Ibsen <da...@apache.org>
Authored: Sat Mar 4 13:05:58 2017 +0100
Committer: Claus Ibsen <da...@apache.org>
Committed: Sat Mar 4 13:05:58 2017 +0100

----------------------------------------------------------------------
 .../camel/component/rest/FromRestDefaultValueTest.java       | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/f5f187bd/camel-core/src/test/java/org/apache/camel/component/rest/FromRestDefaultValueTest.java
----------------------------------------------------------------------
diff --git a/camel-core/src/test/java/org/apache/camel/component/rest/FromRestDefaultValueTest.java b/camel-core/src/test/java/org/apache/camel/component/rest/FromRestDefaultValueTest.java
index 9002c7a..14ce5e5 100644
--- a/camel-core/src/test/java/org/apache/camel/component/rest/FromRestDefaultValueTest.java
+++ b/camel-core/src/test/java/org/apache/camel/component/rest/FromRestDefaultValueTest.java
@@ -33,11 +33,13 @@ public class FromRestDefaultValueTest extends ContextTestSupport {
     public void testDefaultValue() throws Exception {
         // the rest becomes routes and the input is a seda endpoint created by the DummyRestConsumerFactory
         getMockEndpoint("mock:bye").expectedHeaderReceived("kind", "customer");
-        getMockEndpoint("mock:bye").expectedHeaderReceived("kind", "admin");
-
         template.sendBody("seda:get-say-bye", "Hello World");
-        template.sendBodyAndHeader("seda:get-say-bye", "Bye World", "kind", "admin");
+        assertMockEndpointsSatisfied();
 
+        resetMocks();
+
+        getMockEndpoint("mock:bye").expectedHeaderReceived("kind", "admin");
+        template.sendBodyAndHeader("seda:get-say-bye", "Bye World", "kind", "admin");
         assertMockEndpointsSatisfied();
     }