Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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"))
Expand Down
Loading