apupier commented on code in PR #21401:
URL: https://github.com/apache/camel/pull/21401#discussion_r2792553628


##########
components/camel-atmosphere-websocket/src/test/java/org/apache/camel/component/atmosphere/websocket/WebsocketRoute1Test.java:
##########
@@ -73,27 +72,24 @@ public void configure() {
                 // route for a single line
                 
from("atmosphere-websocket:///hola").to("log:info").process(new Processor() {
                     public void process(final Exchange exchange) {
-                        createResponse(exchange, false);
+                        createResponse(exchange);
                     }
                 }).to("atmosphere-websocket:///hola");
             }
         };
     }
 
-    private static void createResponse(Exchange exchange, boolean streaming) {
+    private static void createResponse(Exchange exchange) {
         Object msg = exchange.getIn().getBody();
-        if (streaming) {
-            assertTrue(msg instanceof Reader || msg instanceof InputStream, 
"Expects Reader or InputStream");
-        } else {
-            assertTrue(msg instanceof String || msg instanceof byte[], 
"Expects String or byte[]");
-        }
+        assertTrue(msg instanceof String || msg instanceof byte[] || msg 
instanceof Reader || msg instanceof InputStream,
+                "Expects String, byte[], Reader or InputStream");

Review Comment:
   a new release of atmosphere has been done yesterday. After the main branch 
is more stable by merging https://github.com/apache/camel/pull/21402 , I can 
relaunch the dependabot check to see if it is working better. (not sure as they 
upgraded t be compatible with Spring Boot 4 too :s, in this case we wuld need 
to ask for a 3.0.16 of atmosphere)



-- 
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