This is an automated email from the ASF dual-hosted git repository. orpiske pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel.git
commit 63072ce4071d9850538e0b8df5b53a47d6c54c44 Author: Otavio R. Piske <angusyo...@gmail.com> AuthorDate: Fri May 24 20:09:40 2024 +0200 (chores) camel-jms: fix overly complex conversion to String Signed-off-by: Otavio R. Piske <angusyo...@gmail.com> --- .../component/jms/JmsRequestReplyExclusiveReplyToConcurrentTest.java | 2 +- .../java/org/apache/camel/component/jms/async/AsyncJmsInOutTest.java | 2 +- .../camel/component/jms/integration/spring/issues/JmsResequencerIT.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/components/camel-jms/src/test/java/org/apache/camel/component/jms/JmsRequestReplyExclusiveReplyToConcurrentTest.java b/components/camel-jms/src/test/java/org/apache/camel/component/jms/JmsRequestReplyExclusiveReplyToConcurrentTest.java index 061e640b748..36fa3b053ad 100644 --- a/components/camel-jms/src/test/java/org/apache/camel/component/jms/JmsRequestReplyExclusiveReplyToConcurrentTest.java +++ b/components/camel-jms/src/test/java/org/apache/camel/component/jms/JmsRequestReplyExclusiveReplyToConcurrentTest.java @@ -85,7 +85,7 @@ public class JmsRequestReplyExclusiveReplyToConcurrentTest extends AbstractJMSTe for (int i = 0; i < size; i++) { final Integer num = i; executor.submit(() -> { - String reply = template.requestBody("direct:start", "" + num, String.class); + String reply = template.requestBody("direct:start", Integer.toString(num), String.class); LOG.info("Sent {} expecting reply 'Hello {}' got --> {}", num, num, reply); assertNotNull(reply); assertEquals("Hello " + num, reply); diff --git a/components/camel-jms/src/test/java/org/apache/camel/component/jms/async/AsyncJmsInOutTest.java b/components/camel-jms/src/test/java/org/apache/camel/component/jms/async/AsyncJmsInOutTest.java index 2f3a00d728d..0a4ba45e07c 100644 --- a/components/camel-jms/src/test/java/org/apache/camel/component/jms/async/AsyncJmsInOutTest.java +++ b/components/camel-jms/src/test/java/org/apache/camel/component/jms/async/AsyncJmsInOutTest.java @@ -61,7 +61,7 @@ public class AsyncJmsInOutTest extends AbstractJMSTest { StopWatch watch = new StopWatch(); for (int i = 0; i < 100; i++) { - template.sendBody("seda:start", "" + i); + template.sendBody("seda:start", Integer.toString(i)); } // just in case we run on slow boxes diff --git a/components/camel-jms/src/test/java/org/apache/camel/component/jms/integration/spring/issues/JmsResequencerIT.java b/components/camel-jms/src/test/java/org/apache/camel/component/jms/integration/spring/issues/JmsResequencerIT.java index 6c46c342eae..8fd3e6d5976 100644 --- a/components/camel-jms/src/test/java/org/apache/camel/component/jms/integration/spring/issues/JmsResequencerIT.java +++ b/components/camel-jms/src/test/java/org/apache/camel/component/jms/integration/spring/issues/JmsResequencerIT.java @@ -56,7 +56,7 @@ public class JmsResequencerIT extends AbstractSpringJMSITSupport { for (int i = 100; i > 0; i--) { // send as text messages (not java objects - as they are not serializable and allowed by JMS brokers like ActiveMQ) - String text = "" + i; + String text = Integer.toString(i); template.sendBodyAndHeader(endpoint, text, "num", (long) i); }