Skip to content

Commit 48a405c

Browse files
committed
Fix Spotless formatting in AccountClientTest, DatabricksConfigTest, UnifiedHostTest
Co-authored-by: Isaac
1 parent 29fa190 commit 48a405c

File tree

3 files changed

+5
-8
lines changed

3 files changed

+5
-8
lines changed

databricks-sdk-java/src/test/java/com/databricks/sdk/AccountClientTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ public void testGetWorkspaceClientForUnifiedHost() throws IOException {
5656
// Should have workspace ID set
5757
assertEquals("123456", workspaceClient.config().getWorkspaceId());
5858

59-
// Host type is WORKSPACE (no resolved host type from metadata, URL doesn't match accounts pattern)
59+
// Host type is WORKSPACE (no resolved host type from metadata, URL doesn't match accounts
60+
// pattern)
6061
assertEquals(HostType.WORKSPACE, workspaceClient.config().getHostType());
6162
}
6263
}

databricks-sdk-java/src/test/java/com/databricks/sdk/core/DatabricksConfigTest.java

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -814,12 +814,9 @@ public void testResolveHostMetadataFallsBackToAccountIdWhenNoDefaultOidcAudience
814814
+ "\","
815815
+ "\"host_type\":\"account\"}";
816816
try (FixtureServer server =
817-
new FixtureServer()
818-
.with("GET", "/.well-known/databricks-config", response, 200)) {
817+
new FixtureServer().with("GET", "/.well-known/databricks-config", response, 200)) {
819818
DatabricksConfig config =
820-
new DatabricksConfig()
821-
.setHost(server.getUrl())
822-
.setAccountId(DUMMY_ACCOUNT_ID);
819+
new DatabricksConfig().setHost(server.getUrl()).setAccountId(DUMMY_ACCOUNT_ID);
823820
config.resolve(emptyEnv());
824821
// resolve() triggers tryResolveHostMetadata() which sets resolvedHostType=ACCOUNTS,
825822
// then the tokenAudience fallback sets tokenAudience to accountId.

databricks-sdk-java/src/test/java/com/databricks/sdk/core/UnifiedHostTest.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,7 @@ public void testEndToEndResolveToGetHostType() throws IOException {
168168
+ "\"account_id\":\"test-account\","
169169
+ "\"host_type\":\"unified\"}";
170170
try (FixtureServer server =
171-
new FixtureServer()
172-
.with("GET", "/.well-known/databricks-config", response, 200)) {
171+
new FixtureServer().with("GET", "/.well-known/databricks-config", response, 200)) {
173172
DatabricksConfig config = new DatabricksConfig().setHost(server.getUrl());
174173
config.resolve(
175174
new Environment(new HashMap<>(), new ArrayList<>(), System.getProperty("os.name")));

0 commit comments

Comments
 (0)