This is an automated email from the ASF dual-hosted git repository.

orpiske pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/main by this push:
     new 082fed0ac19 CAMEL-15475: fix deprecation message in camel-jetty
082fed0ac19 is described below

commit 082fed0ac19f2a466d1376a2f60b964d0a402150
Author: Otavio Rodolfo Piske <[email protected]>
AuthorDate: Mon Sep 5 13:55:55 2022 +0200

    CAMEL-15475: fix deprecation message in camel-jetty
---
 .../jetty/HttpReturnDataNotInputStreamConvertableTest.java       | 9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)

diff --git 
a/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/HttpReturnDataNotInputStreamConvertableTest.java
 
b/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/HttpReturnDataNotInputStreamConvertableTest.java
index e74800d02f5..8cb291a4c36 100644
--- 
a/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/HttpReturnDataNotInputStreamConvertableTest.java
+++ 
b/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/HttpReturnDataNotInputStreamConvertableTest.java
@@ -16,8 +16,6 @@
  */
 package org.apache.camel.component.jetty;
 
-import org.apache.camel.Exchange;
-import org.apache.camel.Processor;
 import org.apache.camel.builder.RouteBuilder;
 import org.junit.jupiter.api.Test;
 
@@ -36,12 +34,7 @@ public class HttpReturnDataNotInputStreamConvertableTest 
extends BaseJettyTest {
         return new RouteBuilder() {
             @Override
             public void configure() {
-                from("jetty://http://localhost:{{port}}/test";).process(new 
Processor() {
-                    public void process(Exchange exchange) {
-                        // See: CAMEL-15475
-                        exchange.getOut().setBody(new MyResponseBean());
-                    }
-                });
+                
from("jetty://http://localhost:{{port}}/test";).setBody(constant(new 
MyResponseBean()));
             }
         };
     }

Reply via email to