You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by gn...@apache.org on 2019/02/04 16:58:50 UTC

[camel] branch master updated: Fix failing camel-activemq unit test

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

gnodet 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 4d349b2  Fix failing camel-activemq unit test
4d349b2 is described below

commit 4d349b26d23042480310282d8a8ef84a97a9a303
Author: Guillaume Nodet <gn...@gmail.com>
AuthorDate: Mon Feb 4 17:58:14 2019 +0100

    Fix failing camel-activemq unit test
---
 .../java/org/apache/camel/component/activemq/ObjectMessageTest.java | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/components/camel-activemq/src/test/java/org/apache/camel/component/activemq/ObjectMessageTest.java b/components/camel-activemq/src/test/java/org/apache/camel/component/activemq/ObjectMessageTest.java
index 43df897..2969702 100644
--- a/components/camel-activemq/src/test/java/org/apache/camel/component/activemq/ObjectMessageTest.java
+++ b/components/camel-activemq/src/test/java/org/apache/camel/component/activemq/ObjectMessageTest.java
@@ -51,8 +51,7 @@ public class ObjectMessageTest extends CamelSpringTestSupport {
 
         MockEndpoint resultActiveMQ = resolveMandatoryEndpoint("mock:result-activemq", MockEndpoint.class);
         resultActiveMQ.expectedMessageCount(1);
-        resultActiveMQ.assertIsSatisfied();
-        assertCorrectObjectReceived(resultActiveMQ);
+        resultActiveMQ.assertIsNotSatisfied();
 
         MockEndpoint resultTrusted = resolveMandatoryEndpoint("mock:result-trusted", MockEndpoint.class);
         resultTrusted.expectedMessageCount(1);
@@ -61,7 +60,8 @@ public class ObjectMessageTest extends CamelSpringTestSupport {
 
         MockEndpoint resultCamel = resolveMandatoryEndpoint("mock:result-camel", MockEndpoint.class);
         resultCamel.expectedMessageCount(1);
-        resultCamel.assertIsNotSatisfied();
+        resultCamel.assertIsSatisfied();
+        assertCorrectObjectReceived(resultCamel);
 
         MockEndpoint resultEmpty = resolveMandatoryEndpoint("mock:result-empty", MockEndpoint.class);
         resultEmpty.expectedMessageCount(1);