You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by bv...@apache.org on 2022/01/16 09:24:04 UTC
[camel] 02/02: better make use of simple language to set the body as null
This is an automated email from the ASF dual-hosted git repository.
bvahdat pushed a commit to branch camel-jms-cleanups
in repository https://gitbox.apache.org/repos/asf/camel.git
commit 150555445edb29dd2609f11899e7d506ed061841
Author: Babak Vahdat <bv...@apache.org>
AuthorDate: Sun Jan 16 09:49:32 2022 +0100
better make use of simple language to set the body as null
---
.../org/apache/camel/component/jms/JmsMessageBodySetNullTest.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/components/camel-jms/src/test/java/org/apache/camel/component/jms/JmsMessageBodySetNullTest.java b/components/camel-jms/src/test/java/org/apache/camel/component/jms/JmsMessageBodySetNullTest.java
index b9ad4b8..8ba2654 100644
--- a/components/camel-jms/src/test/java/org/apache/camel/component/jms/JmsMessageBodySetNullTest.java
+++ b/components/camel-jms/src/test/java/org/apache/camel/component/jms/JmsMessageBodySetNullTest.java
@@ -83,7 +83,7 @@ public class JmsMessageBodySetNullTest extends CamelTestSupport {
public void configure() throws Exception {
from("jms:queue:foo")
.to("mock:foo")
- .setBody(constant(new Object[] { null }))
+ .setBody(simple("${null}"))
.to("mock:bar");
}
});
@@ -105,7 +105,7 @@ public class JmsMessageBodySetNullTest extends CamelTestSupport {
public void configure() throws Exception {
from("jms:queue:foo")
.to("mock:foo")
- .setBody(constant(new Object[] { null }))
+ .setBody(simple("${null}"))
.to("mock:bar");
}
});