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

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


The following commit(s) were added to refs/heads/main by this push:
     new b5bbdf78c75 CAMEL-17886: Fixed unit test as it was misleading
b5bbdf78c75 is described below

commit b5bbdf78c753412bf0b89e19bd308349a2f870c7
Author: Babak Vahdat <[email protected]>
AuthorDate: Tue Apr 12 17:04:12 2022 +0200

    CAMEL-17886: Fixed unit test as it was misleading
---
 .../test/java/org/apache/camel/component/mail/RawMailMessageTest.java  | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 
a/components/camel-mail/src/test/java/org/apache/camel/component/mail/RawMailMessageTest.java
 
b/components/camel-mail/src/test/java/org/apache/camel/component/mail/RawMailMessageTest.java
index 007588f1089..8985b9db0ae 100644
--- 
a/components/camel-mail/src/test/java/org/apache/camel/component/mail/RawMailMessageTest.java
+++ 
b/components/camel-mail/src/test/java/org/apache/camel/component/mail/RawMailMessageTest.java
@@ -126,7 +126,8 @@ public class RawMailMessageTest extends CamelTestSupport {
 
         MockEndpoint mock = getMockEndpoint("mock://normalMessage" + type);
         mock.expectedMessageCount(1);
-        mock.expectedBodyReceived().body().isNotNull();
+        mock.message(0).body().isNotNull();
+
         assertMockEndpointsSatisfied();
 
         String body = mock.getExchanges().get(0).getIn().getBody(String.class);

Reply via email to