Wrap runtime exceptions during WebSocket auth into AuthenticationException

This commit is contained in:
Chris Eager
2023-03-28 11:21:33 -05:00
committed by Chris Eager
parent 39d9fd0317
commit 391aa9c518
2 changed files with 11 additions and 3 deletions

View File

@@ -114,7 +114,7 @@ class WebSocketConnectionTest {
}
@Test
void testCredentials() {
void testCredentials() throws Exception {
WebSocketAccountAuthenticator webSocketAuthenticator = new WebSocketAccountAuthenticator(accountAuthenticator);
AuthenticatedConnectListener connectListener = new AuthenticatedConnectListener(receiptSender, messagesManager,
mock(PushNotificationManager.class), mock(ClientPresenceManager.class),