You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: dev/io.openliberty.springboot.fat30.websocket.app/src/main/java/com/ibm/ws/springboot/fat30/websocket/app/TestApplication.java
* Copyright (c) 2018,2023 IBM Corporation and others.
2
+
* Copyright (c) 2018,2025 IBM Corporation and others.
3
3
* All rights reserved. This program and the accompanying materials
4
4
* are made available under the terms of the Eclipse Public License 2.0
5
5
* which accompanies this distribution, and is available at
@@ -27,6 +27,7 @@
27
27
importjakarta.websocket.Session;
28
28
importjakarta.websocket.WebSocketContainer;
29
29
30
+
importorg.junit.AfterClass;
30
31
importorg.junit.Before;
31
32
importorg.junit.Test;
32
33
importorg.junit.runner.RunWith;
@@ -86,6 +87,28 @@ public void testEchoWebSocket30() throws Exception {
86
87
assertEquals("Expected message from server not found", "Did you say: Hello World", clientEndpoint.getMessageFromServer());
87
88
}
88
89
90
+
/**
91
+
* Test websocket using a custom websocket configurer.
92
+
*
93
+
* The application registers a custom websocket handler and a abstract handshake handler.
94
+
* The org.springframework.web.socket.server.support.AbstractHandshakeHandler looksup websphere websocket code which is now being removed in spring framework 7.x.
95
+
* This test should fail for future Spring Boot versions using spring framework 7.x, we might have to use the websocket-2.2 feature and do some implementation changes if
0 commit comments