@@ -0,0 +1,2035 @@
+package io.quarkus.websockets.test;%0A%0Aimport java.net.URI;%0Aimport java.util.concurrent.LinkedBlockingDeque;%0Aimport java.util.concurrent.TimeUnit;%0A%0Aimport javax.websocket.ClientEndpointConfig;%0Aimport javax.websocket.ContainerProvider;%0Aimport javax.websocket.Endpoint;%0Aimport javax.websocket.EndpointConfig;%0Aimport javax.websocket.MessageHandler;%0Aimport javax.websocket.Session;%0A%0Aimport org.jboss.shrinkwrap.api.asset.StringAsset;%0Aimport org.junit.jupiter.api.Assertions;%0Aimport org.junit.jupiter.api.Test;%0Aimport org.junit.jupiter.api.extension.RegisterExtension;%0A%0Aimport io.quarkus.test.QuarkusUnitTest;%0Aimport io.quarkus.test.common.http.TestHTTPResource;%0A%0A/**%0A * smoke test that websockets work as expected in dev mode%0A */%0Apublic class WebsocketRootPathTestCase %7B%0A%0A    @TestHTTPResource(%22foo/echo%22)%0A    URI echoUri;%0A%0A    @RegisterExtension%0A    public static final QuarkusUnitTest test = new QuarkusUnitTest()%0A            .withApplicationRoot(a -%3E %7B%0A                a.addClasses(EchoWebSocket.class, EchoService.class)%0A                        .add(new StringAsset(%22quarkus.http.root-path=/foo%22), %22application.properties%22);%0A            %7D);%0A%0A    @Test%0A    public void testHttpRootPath() throws Exception %7B%0A%0A        LinkedBlockingDeque%3CString%3E message = new LinkedBlockingDeque%3C%3E();%0A        Session session = ContainerProvider.getWebSocketContainer().connectToServer(new Endpoint() %7B%0A            @Override%0A            public void onOpen(Session session, EndpointConfig endpointConfig) %7B%0A                session.addMessageHandler(new MessageHandler.Whole%3CString%3E() %7B%0A                    @Override%0A                    public void onMessage(String s) %7B%0A                        message.add(s);%0A                    %7D%0A                %7D);%0A                session.getAsyncRemote().sendText(%22hello%22);%0A            %7D%0A        %7D, ClientEndpointConfig.Builder.create().build(), echoUri);%0A%0A        try %7B%0A            Assertions.assertEquals(%22hello%22, message.poll(20, TimeUnit.SECONDS));%0A        %7D finally %7B%0A            session.close();%0A        %7D%0A    %7D%0A%7D%0A

Add test for websocket+HTTP root path