mcarlett commented on code in PR #21668:
URL: https://github.com/apache/camel/pull/21668#discussion_r2871682918


##########
components/camel-spring-parent/camel-spring-ws/src/test/java/org/apache/camel/component/spring/ws/filter/impl/BasicMessageFilterTest.java:
##########
@@ -113,11 +114,12 @@ public void consumerWithHeader() throws Exception {
         exchange.getOut().getHeaders().put("headerAttributeElement", new 
QName("http://shouldBeInHeader";, "myElement"));
         filter.filterConsumer(exchange, message);
 
-        Assertions.assertThat(message.getAttachments()).isEmpty();
+        Assertions.assertThat(message.getAttachments()).isExhausted();
 
-        
Assertions.assertThat(message.getSoapHeader().examineAllHeaderElements()).isNotEmpty().hasSize(1);
+        
Assertions.assertThat(Streams.stream(message.getSoapHeader().examineAllHeaderElements()).toList()).isNotEmpty()
+                .hasSize(1);

Review Comment:
   I was looking at the 
[array](https://javadoc.io/doc/org.assertj/assertj-core/3.27.7/org/assertj/core/util/Arrays.html#array(T...))
 and I cannot use directly so I have to transform the iterable object to 
list/array anyway, so that I used  
[Streams](https://javadoc.io/static/org.assertj/assertj-core/3.27.7/org/assertj/core/util/Streams.html#stream(java.util.Iterator))



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to