Skip to content

Commit

Permalink
fix websocket demo for ee8 jetty-12
Browse files Browse the repository at this point in the history
Signed-off-by: Lachlan Roberts <[email protected]>
  • Loading branch information
lachlan-roberts committed Aug 7, 2023
1 parent 1d52c83 commit 466b75c
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public void testWebsocket() throws Exception
String port = System.getProperty("boot.websocket.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();
try
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public static void tearDownServer() throws Exception
@Test
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();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public void testWebsocket() throws Exception
Logger log = Logger.getLogger(this.getClass().getName());

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);
try (Session session = container.connectToServer(socket, uri))
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public void testWebsocket() throws Exception
String port = System.getProperty("boot.websocket.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();
try
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public static void tearDownServer() throws Exception
@Test
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();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public static void tearDownServer() throws Exception
@Test
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();

Expand Down

0 comments on commit 466b75c

Please sign in to comment.