components/global/core/io.cellery.observability.api/src/test/java/io/cellery/observability/api/auth/OIDCOauthManagerTestCase.java
private OIDCOauthManager mockOidcOAuthManagerWithInitialIdPDown() throws Exception {
        OIDCOauthManager oidcOauthManager = PowerMockito.mock(OIDCOauthManager.class);
        Whitebox.setInternalState(oidcOauthManager, "clientId", (String) null);
        Whitebox.setInternalState(oidcOauthManager, "clientSecret", (String) null);

        Mockito.when(oidcOauthManager.getClientId()).thenCallRealMethod();
        Mockito.when(oidcOauthManager.getClientSecret()).thenCallRealMethod();
        return oidcOauthManager;
    }
/**
     * mock the OIDC OAuth Manager mocking a IdP call failure.
     *
     * @return initialized OIDC OAuth manager
     * @throws Exception initialization fails
     */
mock the OIDC OAuth Manager mocking a IdP call failure.
@return initialized OIDC OAuth manager
@throws Exception initialization fails
mock the OIDC OAuth Manager mocking a IdP call failure . @return initialized OIDC OAuth manager @throws Exception initialization fails
private OIDCOauthManager mockOidcOAuthManagerWithInitialIdPDown() throws Exception {
        OIDCOauthManager oidcOauthManager = PowerMockito.mock(OIDCOauthManager.class);
        Whitebox.setInternalState(oidcOauthManager, "clientId", (String) null);
        Whitebox.setInternalState(oidcOauthManager, "clientSecret", (String) null);
        Mockito.when(oidcOauthManager.getClientId()).thenCallRealMethod();
        Mockito.when(oidcOauthManager.getClientSecret()).thenCallRealMethod();
        return oidcOauthManager;
    }
private OIDCOauthManager mockOidcOAuthManagerWithInitialIdPDown ( ) throws Exception { OIDCOauthManager oidcOauthManager = PowerMockito . mock ( OIDCOauthManager . class ) ; Whitebox . setInternalState ( oidcOauthManager , "clientId" , ( String ) null ) ; Whitebox . setInternalState ( oidcOauthManager , "clientSecret" , ( String ) null ) ; Mockito . when ( oidcOauthManager . getClientId ( ) ) . thenCallRealMethod ( ) ; Mockito . when ( oidcOauthManager . getClientSecret ( ) ) . thenCallRealMethod ( ) ; return oidcOauthManager ; }
mock the OIDC OAuth Manager mocking a IdP call failure.
mock the OIDC OAuth Manager mocking a IdP call failure .