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


##########
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:
   following he principle of deactivating tests not ready for jdk 25, the 
failing ones should be deactivated for now but we really need to keep both test 
for streaming and not streaming mode



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