fix websocket demo for ee8 jetty-12

Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
This commit is contained in:
Lachlan Roberts 2023-08-07 11:17:39 +10:00
parent 1d52c83ae2
commit 466b75cec2
6 changed files with 6 additions and 6 deletions

View File

@ -86,7 +86,7 @@ public class TestJettyOSGiBootWithWebSocket
String port = System.getProperty("boot.websocket.port"); String port = System.getProperty("boot.websocket.port");
assertNotNull(port); assertNotNull(port);
URI uri = new URI("ws://127.0.0.1:" + port + "/ee10-demo-jetty/ws/foo"); URI uri = new URI("ws://127.0.0.1:" + port + "/ee10-demo-jetty/jetty.websocket/foo");
WebSocketClient client = new WebSocketClient(); WebSocketClient client = new WebSocketClient();
try try
{ {

View File

@ -55,7 +55,7 @@ public class JettyWebSocketTest
@Test @Test
public void testChatEndpoint() throws Exception public void testChatEndpoint() throws Exception
{ {
URI uri = WSURI.toWebsocket(server.getServerURI().resolve("/ee10-demo-jetty/ws/foo")); URI uri = WSURI.toWebsocket(server.getServerURI().resolve("/ee10-demo-jetty/jetty.websocket/foo"));
WebSocketClient client = new WebSocketClient(); WebSocketClient client = new WebSocketClient();

View File

@ -108,7 +108,7 @@ public class TestJettyOSGiBootWithJakartaWebSocket
Logger log = Logger.getLogger(this.getClass().getName()); Logger log = Logger.getLogger(this.getClass().getName());
SimpleJakartaWebSocket socket = new SimpleJakartaWebSocket(); SimpleJakartaWebSocket socket = new SimpleJakartaWebSocket();
URI uri = new URI("ws://127.0.0.1:" + port + "/ee9-demo-jetty/jakarta.websocket/"); URI uri = new URI("ws://127.0.0.1:" + port + "/ee9-demo-jetty/javax.websocket/");
log.info("Attempting to connect to " + uri); log.info("Attempting to connect to " + uri);
try (Session session = container.connectToServer(socket, uri)) try (Session session = container.connectToServer(socket, uri))
{ {

View File

@ -82,7 +82,7 @@ public class TestJettyOSGiBootWithWebSocket
String port = System.getProperty("boot.websocket.port"); String port = System.getProperty("boot.websocket.port");
assertNotNull(port); assertNotNull(port);
URI uri = new URI("ws://127.0.0.1:" + port + "/ee9-demo-jetty/ws/foo"); URI uri = new URI("ws://127.0.0.1:" + port + "/ee9-demo-jetty/jetty.websocket/foo");
WebSocketClient client = new WebSocketClient(); WebSocketClient client = new WebSocketClient();
try try
{ {

View File

@ -58,7 +58,7 @@ public class JakartaWebSocketTest
@Test @Test
public void testChatEndpoint() throws Exception public void testChatEndpoint() throws Exception
{ {
URI uri = WSURI.toWebsocket(server.getServerURI().resolve("/ee9-demo-jetty/jakarta.websocket")); URI uri = WSURI.toWebsocket(server.getServerURI().resolve("/ee9-demo-jetty/javax.websocket"));
WebSocketContainer container = ContainerProvider.getWebSocketContainer(); WebSocketContainer container = ContainerProvider.getWebSocketContainer();

View File

@ -55,7 +55,7 @@ public class JettyWebSocketTest
@Test @Test
public void testChatEndpoint() throws Exception public void testChatEndpoint() throws Exception
{ {
URI uri = WSURI.toWebsocket(server.getServerURI().resolve("/ee9-demo-jetty/ws/foo")); URI uri = WSURI.toWebsocket(server.getServerURI().resolve("/ee9-demo-jetty/jetty.websocket/foo"));
WebSocketClient client = new WebSocketClient(); WebSocketClient client = new WebSocketClient();