Test: WebRTC 시그널링 서버 테스트 (#123) #133
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
📌 개요
WebRTC 및 WebSocket 기반 실시간 통신 기능 관련 로직에 대한 종합적인 테스트 코드를 추가했습니다.
🔨 작업 내용
WebRTC 관련 테스트 코드 추가
WebRTCApiControllerTest:
/api/webrtc/ice-servers등 WebRTC 설정 조회 API에 대한 통합 테스트.WebRTCSignalingControllerTest: Offer, Answer, ICE Candidate 등 핵심 시그널링 메시지 핸들러의 동작을 검증하는 단위 테스트.
WebRTCSignalValidatorTest: 시그널링 메시지 수신 시 실행되는 비즈니스 로직(같은 방 멤버 여부, 온라인 상태 등)의 유효성 검증 로직에 대한 단위 테스트.
WebSocket 관련 테스트 코드 추가
WebSocketApiControllerTest:
/api/ws/health,/api/ws/info등 REST API 엔드포인트의 동작을 검증하는 통합 테스트.WebSocketMessageControllerTest: Heartbeat, 방 입장/퇴장 등 STOMP 메시지 핸들러의 로직을 검증하는 단위 테스트. (성공, 입력값 오류, 예외 발생 등 다양한 시나리오 포함)
🔗 관련 이슈
Closes #123
📝 참고 사항
*ApiControllerTest:@SpringBootTest를 사용한 통합 테스트로 실제 요청/응답 사이클을 검증했음.✅ 체크리스트