From ad901c601bd02f2b4c44e683ba2019d09148677e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Pupier?= Date: Fri, 13 Nov 2026 09:44:17 +0100 Subject: [PATCH] camel-yaml-dsl-validator: do not expect a pulsar body report in TextBodyFlowTest MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The pulsar producer body type now depends on allowJavaSerializedObject (CAMEL-26012), so the validator no longer reports parsed data sent to pulsar. Co-authored-by: IBM Bob 2.2.1 Signed-off-by: Aurélien Pupier --- .../camel/dsl/yaml/validator/TextBodyFlowTest.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/dsl/camel-yaml-dsl/camel-yaml-dsl-validator/src/test/java/org/apache/camel/dsl/yaml/validator/TextBodyFlowTest.java b/dsl/camel-yaml-dsl/camel-yaml-dsl-validator/src/test/java/org/apache/camel/dsl/yaml/validator/TextBodyFlowTest.java index 966039254eb0d..15c084625eece 100644 --- a/dsl/camel-yaml-dsl/camel-yaml-dsl-validator/src/test/java/org/apache/camel/dsl/yaml/validator/TextBodyFlowTest.java +++ b/dsl/camel-yaml-dsl/camel-yaml-dsl-validator/src/test/java/org/apache/camel/dsl/yaml/validator/TextBodyFlowTest.java @@ -1430,10 +1430,11 @@ public void testTheBodyOfCloudMessaging() { @Test public void testTheBodyOfMessaging() { - // the paho consumer gives bytes, so a field read needs an unmarshal; pulsar and smtp send what converts to - // bytes or text, so parsed data must be marshalled first, and so must the reply of a nats consumer that answers - // (InOut); the converter of spring-rabbitmq may be set on the component, and an imap mail may be text, a stream - // or a multipart, which say nothing + // the paho consumer gives bytes, so a field read needs an unmarshal; smtp sends what converts to bytes or text, + // so parsed data must be marshalled first, and so must the reply of a nats consumer that answers (InOut); the + // converter of spring-rabbitmq may be set on the component, and so may allowJavaSerializedObject of pulsar, + // which sends any body with Java serialization, and an imap mail may be text, a stream or a multipart, which + // say nothing String yaml = """ - route: id: mqtt @@ -1502,10 +1503,9 @@ public void testTheBodyOfMessaging() { name: id simple: ${body[id]} """; - assertThat(lines(yaml)).hasSize(4).anySatisfy(m -> assertThat(m) + assertThat(lines(yaml)).hasSize(3).anySatisfy(m -> assertThat(m) .contains("route mqtt: simple reads a field of the body (${body[id]})") .contains("the paho consumer gives it as bytes")) - .anySatisfy(m -> assertThat(m).contains("to: pulsar needs the body as text, bytes, a stream or a file")) .anySatisfy(m -> assertThat(m) .contains("route service:") .contains("the body at the end of the route is the reply to the nats request"))