This is an automated email from the ASF dual-hosted git repository.
Croway pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-spring-boot.git
The following commit(s) were added to refs/heads/main by this push:
new 64a7c37122c chore: fix SqsProducerAutoCreateQueueTest sending Integer
instead of String
64a7c37122c is described below
commit 64a7c37122cc75c3e7b1de68768c2f7f694a1b67
Author: Croway <[email protected]>
AuthorDate: Thu Jun 25 16:45:02 2026 +0200
chore: fix SqsProducerAutoCreateQueueTest sending Integer instead of String
The "fix warnings" commit changed the batch message body collection
from raw Collection with String literals to Collection<Integer> with
integer literals, causing a ClassCastException in Sqs2Producer which
expects String elements.
---
.../component/aws2/sqs/SqsProducerAutoCreateQueueTest.java | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git
a/components-starter/camel-aws2-sqs-starter/src/test/java/org/apache/camel/component/aws2/sqs/SqsProducerAutoCreateQueueTest.java
b/components-starter/camel-aws2-sqs-starter/src/test/java/org/apache/camel/component/aws2/sqs/SqsProducerAutoCreateQueueTest.java
index f0b371a8301..934efd3f537 100644
---
a/components-starter/camel-aws2-sqs-starter/src/test/java/org/apache/camel/component/aws2/sqs/SqsProducerAutoCreateQueueTest.java
+++
b/components-starter/camel-aws2-sqs-starter/src/test/java/org/apache/camel/component/aws2/sqs/SqsProducerAutoCreateQueueTest.java
@@ -67,12 +67,12 @@ public class SqsProducerAutoCreateQueueTest extends BaseSqs
{
template.send("direct:start", ExchangePattern.InOnly, new Processor() {
public void process(Exchange exchange) {
- Collection<Integer> c = new ArrayList<Integer>();
- c.add(1);
- c.add(2);
- c.add(3);
- c.add(4);
- c.add(5);
+ Collection<String> c = new ArrayList<>();
+ c.add("1");
+ c.add("2");
+ c.add("3");
+ c.add("4");
+ c.add("5");
exchange.getIn().setBody(c);
}
});