Skip to content

Commit 82321bd

Browse files
committed
test: 테스트 코드 수정
- 초기 핸드셰이크는 ws가 아니라 http 프로토콜을 사용함 - 핸드셰이크를 테스트하므로 목적에 맞게 클래스 이름 변경
1 parent 7e6c0ca commit 82321bd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/test/java/com/example/solidconnection/websocket/WebSocketStompIntegrationTest.java renamed to src/test/java/com/example/solidconnection/websocket/WebSocketHandshakeTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@
3030
import org.springframework.web.socket.sockjs.client.WebSocketTransport;
3131

3232
@TestContainerSpringBootTest
33-
@DisplayName("WebSocket/STOMP 통합 테스트")
34-
class WebSocketStompIntegrationTest {
33+
@DisplayName("WebSocket Handshake 테스트")
34+
class WebSocketHandshakeTest {
3535

3636
@LocalServerPort
3737
private int port;
@@ -47,7 +47,7 @@ class WebSocketStompIntegrationTest {
4747

4848
@BeforeEach
4949
void setUp() {
50-
this.url = String.format("ws://localhost:%d/connect", port);
50+
this.url = String.format("http://localhost:%d/connect", port);
5151
List<Transport> transports = List.of(new WebSocketTransport(new StandardWebSocketClient()));
5252
this.stompClient = new WebSocketStompClient(new SockJsClient(transports));
5353
this.stompClient.setMessageConverter(new MappingJackson2MessageConverter());

0 commit comments

Comments
 (0)