fix websocket demo for ee8 jetty-12
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
This commit is contained in:
parent
1d52c83ae2
commit
466b75cec2
|
@ -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
|
||||||
{
|
{
|
||||||
|
|
|
@ -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();
|
||||||
|
|
||||||
|
|
|
@ -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))
|
||||||
{
|
{
|
||||||
|
|
|
@ -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
|
||||||
{
|
{
|
||||||
|
|
|
@ -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();
|
||||||
|
|
||||||
|
|
|
@ -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();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue