WebSocketEndpointRegistryTest
Tests
Test |
Method name |
Duration |
Result |
매칭되는 엔드포인트가 없으면 null을 반환한다. |
getEndpointInfo_shouldReturnNullForNoMatch() |
0.001s |
passed |
경로 변수가 포함된 엔드포인트를 등록하고 조회할 수 있다. |
registerAndGetEndpointWithPathVariables() |
0s |
passed |
새로운 엔드포인트를 성공적으로 등록하고 조회할 수 있다. |
registerAndGetSimpleEndpoint() |
0s |
passed |
동일한 경로에 중복 등록 시 마지막에 등록된 핸들러로 덮어쓴다. |
registerDuplicateEndpoint_shouldOverwrite() |
0.001s |
passed |
필수 인자가 null일 경우 NullPointerException을 던진다. |
registerEndpoint_shouldThrowExceptionForNullArguments() |
0.001s |
passed |
Standard output
Registered WebSocket endpoint: /echo
Registered WebSocket endpoint: /updates
Registered WebSocket endpoint: /updates
Registered WebSocket endpoint: /echo
Registered WebSocket endpoint: /chat/{roomId}
Standard error
Warning: Duplicate WebSocket endpoint path registered: /updates