File tree Expand file tree Collapse file tree
main/java/com/databricks/jdbc/dbclient/impl/http
test/java/com/databricks/jdbc/dbclient/impl/common Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -134,7 +134,9 @@ private PoolingHttpClientConnectionManager initializeConnectionManager(
134134 } catch (DatabricksHttpException e ) {
135135 LOGGER .error ("Failed to initialize HTTP connection manager" , e );
136136 // Currently only SSL Handshake failure causes this exception.
137- throw new DatabricksDriverException ("Failed to initialize HTTP connection manager" , DatabricksDriverErrorCode .SSL_HANDSHAKE_ERROR );
137+ throw new DatabricksDriverException (
138+ "Failed to initialize HTTP connection manager" ,
139+ DatabricksDriverErrorCode .SSL_HANDSHAKE_ERROR );
138140 }
139141 }
140142
Original file line number Diff line number Diff line change @@ -440,7 +440,8 @@ void getWorkspaceClient_OAuthWithBrowserBasedAuthentication_SetsCustomRedirectUr
440440 }
441441
442442 @ Test
443- void testSetupU2MConfig_WithTokenCache () throws DatabricksParsingException {
443+ void testSetupU2MConfig_WithTokenCache ()
444+ throws DatabricksParsingException , DatabricksHttpException {
444445 when (mockContext .getAuthMech ()).thenReturn (AuthMech .OAUTH );
445446 when (mockContext .getAuthFlow ()).thenReturn (AuthFlow .BROWSER_BASED_AUTHENTICATION );
446447 when (mockContext .getHostForOAuth ()).thenReturn ("https://oauth-browser.databricks.com" );
@@ -483,7 +484,7 @@ void testSetupU2MConfig_WithTokenCacheNoPassphrase() throws DatabricksParsingExc
483484 }
484485
485486 @ Test
486- void testSetupU2MConfig_WithoutTokenCache () throws DatabricksParsingException {
487+ void testSetupU2MConfig_WithoutTokenCache () throws DatabricksParsingException , DatabricksHttpException {
487488 when (mockContext .getAuthMech ()).thenReturn (AuthMech .OAUTH );
488489 when (mockContext .getAuthFlow ()).thenReturn (AuthFlow .BROWSER_BASED_AUTHENTICATION );
489490 when (mockContext .getHostForOAuth ()).thenReturn ("https://oauth-browser.databricks.com" );
You can’t perform that action at this time.
0 commit comments