Skip to content

Commit

Permalink
Fixing test failures on branch update
Browse files Browse the repository at this point in the history
  • Loading branch information
indeewari committed Jan 27, 2025
1 parent 3d61b76 commit aa3e9f5
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -519,8 +519,9 @@ public void testIssueExistingAccessTokensWithoutConsent(boolean idpIdColumnEnabl
OauthTokenIssuer oauthTokenIssuer = mock(OauthTokenIssuerImpl.class);
when(oauthTokenIssuer.getAccessTokenType()).thenReturn(OAuth2Constants.TokenTypes.OPAQUE);

oauth2Util.when(() -> OAuth2Util.getOAuthTokenIssuerForOAuthApp(clientId)).thenReturn(oauthTokenIssuer);
oauth2Util.when(() -> OAuth2Util.getAppInformationByClientId(clientId)).thenReturn(oAuthAppDO);
oauth2Util.when(() -> OAuth2Util.getOAuthTokenIssuerForOAuthApp(eq(clientId))).thenReturn(oauthTokenIssuer);
oauth2Util.when(() -> OAuth2Util.getAppInformationByClientId(eq(clientId))).thenReturn(oAuthAppDO);
oauth2Util.when(() -> OAuth2Util.getAppInformationByClientId(eq(clientId), any())).thenReturn(oAuthAppDO);
oauth2Util.when(() -> OAuth2Util.isOrganizationValidAndActive(anyString())).thenReturn(true);
oauth2Util.when(() -> OAuth2Util.buildScopeString(any())).thenCallRealMethod();
oauth2Util.when(() -> OAuth2Util.getTokenPartitionedSqlByUserStore(anyString(), any()))
Expand Down

0 comments on commit aa3e9f5

Please sign in to comment.