You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by or...@apache.org on 2022/09/13 14:02:13 UTC
[camel] 01/02: CAMEL-18456: simplify setting up the server
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
commit f64db2fb930c7be410452787de165dda9d1b8814
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Tue Sep 13 11:31:19 2022 +0200
CAMEL-18456: simplify setting up the server
---
.../java/org/apache/camel/component/olingo2/Olingo2SampleServer.java | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/components/camel-olingo2/camel-olingo2-component/src/test/java/org/apache/camel/component/olingo2/Olingo2SampleServer.java b/components/camel-olingo2/camel-olingo2-component/src/test/java/org/apache/camel/component/olingo2/Olingo2SampleServer.java
index 89a71996981..3bb49b22973 100644
--- a/components/camel-olingo2/camel-olingo2-component/src/test/java/org/apache/camel/component/olingo2/Olingo2SampleServer.java
+++ b/components/camel-olingo2/camel-olingo2-component/src/test/java/org/apache/camel/component/olingo2/Olingo2SampleServer.java
@@ -55,9 +55,7 @@ public class Olingo2SampleServer {
webappcontext.setWar(contextPath);
- HandlerCollection handlers = new HandlerCollection();
- handlers.setHandlers(new Handler[] { webappcontext, new DefaultHandler() });
- server.setHandler(handlers);
+ server.setHandler(webappcontext);
}
public void start() throws Exception {