Introduce authentication framework with AuthConfig, AuthGate, and Authenticator classes, alongside comprehensive tests for rules, modes, and schemes.
This commit is contained in:
@@ -13,7 +13,7 @@ class WebSocketHandlerTest {
|
||||
void defaultMethodsDoNotThrow() {
|
||||
WebSocketHandler handler = new WebSocketHandler() {};
|
||||
EmbeddedChannel ch = new EmbeddedChannel();
|
||||
WebSocketSession session = new WebSocketSession(ch, "/ws", Map.of());
|
||||
WebSocketSession session = new WebSocketSession(ch, "/ws", Map.of(), null);
|
||||
assertDoesNotThrow(() -> handler.onOpen(session));
|
||||
assertDoesNotThrow(() -> handler.onMessage(session, "msg"));
|
||||
assertDoesNotThrow(() -> handler.onBinary(session, new byte[]{1}));
|
||||
|
||||
Reference in New Issue
Block a user