public abstract class AbstractOAuthAuthorizationTestCase extends FunctionalTestCase
Modifier and Type | Field and Description |
---|---|
static String |
ACCESS_TOKEN |
static String |
AUTHENTICATION_CODE |
static String |
AUTHORIZE_PATH |
SystemProperty |
clientId |
SystemProperty |
clientSecret |
static String |
EXPIRES_IN |
protected DynamicPort |
localHostPort |
protected DynamicPort |
oauthHttpsServerPort |
protected DynamicPort |
oauthServerPort |
SystemProperty |
oauthServerPortNumber |
SystemProperty |
redirectUrl |
static String |
REFRESH_TOKEN |
static int |
REQUEST_TIMEOUT |
SystemProperty |
scopes |
SystemProperty |
state |
static String |
TOKEN_PATH |
SystemProperty |
wireMockHttpPort |
com.github.tomakehurst.wiremock.junit.WireMockRule |
wireMockRule |
callbackCalled, CLASSNAME_ANNOTATIONS_CONFIG_BUILDER, IGNORED_DOT_MULE_DIRS, LOCK_TIMEOUT, muleContext, RECEIVE_TIMEOUT, TEST_MESSAGE, TEST_PAYLOAD, WORKING_DIRECTORY_SYSTEM_PROPERTY_KEY, workingDirectory
DEFAULT_TEST_TIMEOUT_SECS, globalTimeout, logger, name, TEST_TIMEOUT_SYSTEM_PROPERTY, TESTING_MODE_PROPERTY_NAME
Constructor and Description |
---|
AbstractOAuthAuthorizationTestCase() |
Modifier and Type | Method and Description |
---|---|
protected void |
configureWireMockToExpectTokenPathRequestForAuthorizationCodeGrantType() |
protected void |
configureWireMockToExpectTokenPathRequestForAuthorizationCodeGrantType(String accessToken) |
protected void |
configureWireMockToExpectTokenPathRequestForClientCredentialsGrantType() |
protected void |
configureWireMockToExpectTokenPathRequestForClientCredentialsGrantType(String accessToken) |
protected void |
configureWireMockToExpectTokenPathRequestForClientCredentialsGrantTypeWithMapResponse(com.google.common.collect.ImmutableMap customParameters) |
protected void |
configureWireMockToExpectTokenPathRequestForClientCredentialsGrantTypeWithMapResponse(String accessToken) |
protected String |
getProtocol() |
protected void |
verifyRequestDoneToTokenUrlForAuthorizationCode() |
protected void |
verifyRequestDoneToTokenUrlForClientCredentials() |
protected void |
verifyRequestDoneToTokenUrlForClientCredentials(String scope) |
clearFlowAssertions, getBuilder, getComponent, getComponent, getConfigFile, getConfigFiles, getConfigResources, getFlowConstruct, getFunctionalTestComponent, getSubFlow, loadResource, loadResourceAsString, lookupFlowConstruct, runFlow, runFlow, runFlow, runFlowAndExpect, runFlowAndExpectProperty, runFlowWithPayloadAndExpect, runSchedulersOnce, stopFlowConstruct, stopFlowSchedulers, testFlow, testFlow
addBuilders, configureMuleContext, createMuleContext, createObject, createObject, disposeContext, disposeContextPerTest, doSetUp, doSetUpBeforeMuleContextCreation, doTearDown, doTearDownAfterMuleContextDispose, getConfigurationResources, getFileInsideWorkingDirectory, getSensingNullMessageProcessor, getStartUpProperties, getTestConnector, getTestEvent, getTestEvent, getTestEvent, getTestEvent, getTestEvent, getTestEvent, getTestEvent, getTestEvent, getTestEventContext, getTestEventContext, getTestEventUsingFlow, getTestInboundEndpoint, getTestInboundEndpoint, getTestInboundEndpoint, getTestInboundEndpoint, getTestInboundEndpoint, getTestMuleMessage, getTestOutboundEndpoint, getTestOutboundEndpoint, getTestOutboundEndpoint, getTestOutboundEndpoint, getTestOutboundEndpoint, getTestService, getTestService, getTestService, getTestSession, getTestTransactedInboundEndpoint, getTestTransformer, getTriggerableMessageSource, getTriggerableMessageSource, getWorkingDirectory, initialiseObject, isDisposeContextPerClass, isGracefulShutdown, isStartContext, setDisposeContextPerClass, setStartContext, setUpMuleContext
clearExcludedFlag, clearRequestContext, clearTestCaseName, createTestTimeoutRule, dumpFilteredThreadsInTest, getTestHeader, getTestTimeoutSecs, getTimeoutSystemProperty, initializeMuleTest, isDisabledInThisEnvironment, isDisabledInThisEnvironment, isExcluded, isFailOnTimeout, isOffline, isTestIncludedInExclusionFile, takeTestCaseName
public static final int REQUEST_TIMEOUT
public static final String TOKEN_PATH
public static final String AUTHENTICATION_CODE
public static final String ACCESS_TOKEN
public static final String REFRESH_TOKEN
public static final String EXPIRES_IN
public static final String AUTHORIZE_PATH
protected final DynamicPort localHostPort
protected final DynamicPort oauthServerPort
protected final DynamicPort oauthHttpsServerPort
public com.github.tomakehurst.wiremock.junit.WireMockRule wireMockRule
public SystemProperty clientId
public SystemProperty clientSecret
public SystemProperty scopes
public SystemProperty state
public SystemProperty oauthServerPortNumber
public SystemProperty redirectUrl
public SystemProperty wireMockHttpPort
protected String getProtocol()
protected void configureWireMockToExpectTokenPathRequestForAuthorizationCodeGrantType()
protected void configureWireMockToExpectTokenPathRequestForAuthorizationCodeGrantType(String accessToken)
protected void configureWireMockToExpectTokenPathRequestForClientCredentialsGrantType()
protected void configureWireMockToExpectTokenPathRequestForClientCredentialsGrantTypeWithMapResponse(com.google.common.collect.ImmutableMap customParameters)
protected void configureWireMockToExpectTokenPathRequestForClientCredentialsGrantType(String accessToken)
protected void configureWireMockToExpectTokenPathRequestForClientCredentialsGrantTypeWithMapResponse(String accessToken)
protected void verifyRequestDoneToTokenUrlForAuthorizationCode() throws UnsupportedEncodingException
UnsupportedEncodingException
protected void verifyRequestDoneToTokenUrlForClientCredentials() throws UnsupportedEncodingException
UnsupportedEncodingException
protected void verifyRequestDoneToTokenUrlForClientCredentials(String scope) throws UnsupportedEncodingException
UnsupportedEncodingException
Copyright © 2003–2015 MuleSoft, Inc.. All rights reserved.