public class OAuth2ManagerTestCase extends Object
BaseOAuth2Manager
. It doesn't make sense to test
the methods about storing and retrieving authorization events here since it would
require to do deep mocking on the mule message transforming logic. Such a level of
mocking would greatly reduce the value of this test. Therefore, those methods are
tested in the integration test
OAuth2AuthorizationEventTestCase
Constructor and Description |
---|
OAuth2ManagerTestCase() |
Modifier and Type | Method and Description |
---|---|
void |
buildAuthorizeUrl() |
void |
capabilities() |
void |
closeTokenPool() |
void |
createAdapter() |
void |
dispose() |
void |
fetchAccessToken() |
void |
hasBeenAuthorized() |
void |
hasBeenAuthorizedFailure() |
void |
initialize() |
void |
postAuthNoFailures() |
void |
postAuthWithNonRefreshableException() |
void |
postAuthWithRefreshableException() |
void |
postAuthWithRefreshableExceptionButNoAccessTokenId() |
void |
refreshAccessToken() |
void |
refreshWithoutToken() |
void |
setUp() |
void |
start() |
void |
stop() |
public void initialize() throws InitialisationException
InitialisationException
public void start() throws MuleException
MuleException
public void stop() throws MuleException
MuleException
public void dispose() throws MuleException
MuleException
public void hasBeenAuthorized() throws org.mule.common.security.oauth.exception.NotAuthorizedException
public void hasBeenAuthorizedFailure() throws org.mule.common.security.oauth.exception.NotAuthorizedException
public void capabilities()
public void postAuthWithRefreshableException() throws Exception
Exception
public void postAuthWithRefreshableExceptionButNoAccessTokenId() throws Exception
Exception
public void postAuthWithNonRefreshableException() throws Exception
Exception
Copyright © 2003–2015 MuleSoft, Inc.. All rights reserved.