This is an automated email from the ASF dual-hosted git repository. mgrigorov pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/wicket.git
commit 07775d3c0557010e8731245148ca499f80bc4eb3 Author: Martin Tzvetanov Grigorov <mgrigo...@apache.org> AuthorDate: Wed Mar 23 08:50:01 2022 +0200 Enable WebSocket support in StartExamples.java Signed-off-by: Martin Tzvetanov Grigorov <mgrigo...@apache.org> --- .../src/test/java/org/apache/wicket/examples/StartExamples.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wicket-examples/src/test/java/org/apache/wicket/examples/StartExamples.java b/wicket-examples/src/test/java/org/apache/wicket/examples/StartExamples.java index 90e72ad..60148ff 100644 --- a/wicket-examples/src/test/java/org/apache/wicket/examples/StartExamples.java +++ b/wicket-examples/src/test/java/org/apache/wicket/examples/StartExamples.java @@ -106,9 +106,9 @@ public class StartExamples // sessionCache.setSessionDataStore(sessionStore); // bb.getSessionHandler().setSessionCache(sessionCache); -// ServletContextHandler contextHandler = ServletContextHandler.getServletContextHandler(bb.getServletContext()); -// JakartaWebSocketServletContainerInitializer.configure(contextHandler, -// (servletContext, container) -> container.addEndpoint(new WicketServerEndpointConfig())); + ServletContextHandler contextHandler = ServletContextHandler.getServletContextHandler(bb.getServletContext()); + JakartaWebSocketServletContainerInitializer.configure(contextHandler, + (servletContext, container) -> container.addEndpoint(new WicketServerEndpointConfig())); // uncomment next line if you want to test with JSESSIONID encoded in the urls // ((AbstractSessionManager) bb.getSessionHandler().getSessionManager()).setUsingCookies(false);