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
The following commit(s) were added to refs/heads/main by this push:
new de1aac0bc43 (chores) camel-spring-xml: minor test cleanup (#11460)
de1aac0bc43 is described below
commit de1aac0bc4390152046a1f46fcd3a906667cbf9b
Author: Otavio Rodolfo Piske <[email protected]>
AuthorDate: Tue Sep 19 13:52:10 2023 +0200
(chores) camel-spring-xml: minor test cleanup (#11460)
---
.../interceptor/TransactedStackSizeBreakOnExceptionTest.java | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git
a/components/camel-spring-xml/src/test/java/org/apache/camel/spring/interceptor/TransactedStackSizeBreakOnExceptionTest.java
b/components/camel-spring-xml/src/test/java/org/apache/camel/spring/interceptor/TransactedStackSizeBreakOnExceptionTest.java
index e345aeb7a9d..b1a6de28a69 100644
---
a/components/camel-spring-xml/src/test/java/org/apache/camel/spring/interceptor/TransactedStackSizeBreakOnExceptionTest.java
+++
b/components/camel-spring-xml/src/test/java/org/apache/camel/spring/interceptor/TransactedStackSizeBreakOnExceptionTest.java
@@ -16,6 +16,8 @@
*/
package org.apache.camel.spring.interceptor;
+import java.util.StringJoiner;
+
import org.apache.camel.Exchange;
import org.apache.camel.builder.RouteBuilder;
import org.junit.jupiter.api.Assertions;
@@ -33,13 +35,12 @@ public class TransactedStackSizeBreakOnExceptionTest
extends TransactionClientDa
getMockEndpoint("mock:line").assertNoDuplicates(body());
getMockEndpoint("mock:result").expectedMessageCount(0);
- StringBuilder sb = new StringBuilder();
+ StringJoiner sb = new StringJoiner(",");
for (int i = 0; i < total; i++) {
- sb.append(i);
- sb.append(",");
+ sb.add(Integer.toString(i));
}
- template.sendBody("seda:start", "" + sb.toString());
+ template.sendBody("seda:start", sb.toString());
assertMockEndpointsSatisfied();