Skip to content

Commit 7eff8d3

Browse files
committed
fmt
1 parent 2fcf119 commit 7eff8d3

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

src/main/java/com/databricks/jdbc/dbclient/impl/http/DatabricksHttpClient.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff 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

src/test/java/com/databricks/jdbc/dbclient/impl/common/ClientConfiguratorTest.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff 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");

0 commit comments

Comments
 (0)