Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
lilgreenbird committed Mar 5, 2025
1 parent ed2e189 commit 26937dc
Showing 1 changed file with 0 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -494,23 +494,6 @@ public void testAccessTokenCallbackClassConnection() throws Exception {
try (Connection conn1 = DriverManager.getConnection(cs)) {}
}

@Test
public void testAccessTokenCache() {
try {
SilentParameters silentParameters = SilentParameters.builder(Collections.singleton(spn + "/.default"))
.build();

// this will fail if not cached
CompletableFuture<IAuthenticationResult> future = fedauthClientApp.acquireTokenSilently(silentParameters);
IAuthenticationResult authenticationResult = future.get();
assertNotNull(authenticationResult.accessToken());
assertTrue(authenticationResult.accessToken().equals(accessToken), accessToken);
} catch (Exception e) {
fail(e.getMessage());
}

}

private static void validateException(String url, String resourceKey) {
try (Connection conn = DriverManager.getConnection(url)) {
fail(TestResource.getResource("R_expectedFailPassed"));
Expand Down

0 comments on commit 26937dc

Please sign in to comment.