Package com.guinetik.rr.auth
Class OAuth2AssertionStrategyTest
- java.lang.Object
-
- com.guinetik.rr.auth.OAuth2AssertionStrategyTest
-
public class OAuth2AssertionStrategyTest extends Object
Unit tests forOAuth2AssertionStrategy.
-
-
Constructor Summary
Constructors Constructor Description OAuth2AssertionStrategyTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetUp()voidtestApplyAuthHeadersWithToken()voidtestAuthTypeIsAssertion()voidtestConstructorWithAdditionalParams()voidtestGetAssertion()voidtestNeedsTokenRefresh()voidtestPrepareTokenRequestParams()voidtestPrepareTokenRequestParamsWithoutCompanyId()voidtestRefreshCredentialsWithEmptyAssertion()voidtestValidateCredentialsFailsWithNullClientId()voidtestValidateCredentialsFailsWithNullGrantType()voidtestValidateCredentialsFailsWithNullPrivateKey()voidtestValidateCredentialsFailsWithNullUserId()voidtestValidateCredentialsSucceedsWithNullCompanyId()
-
-
-
Method Detail
-
setUp
public void setUp()
-
testAuthTypeIsAssertion
public void testAuthTypeIsAssertion()
-
testConstructorWithAdditionalParams
public void testConstructorWithAdditionalParams()
-
testValidateCredentialsFailsWithNullClientId
public void testValidateCredentialsFailsWithNullClientId()
-
testValidateCredentialsFailsWithNullUserId
public void testValidateCredentialsFailsWithNullUserId()
-
testValidateCredentialsFailsWithNullPrivateKey
public void testValidateCredentialsFailsWithNullPrivateKey()
-
testValidateCredentialsFailsWithNullGrantType
public void testValidateCredentialsFailsWithNullGrantType()
-
testValidateCredentialsSucceedsWithNullCompanyId
public void testValidateCredentialsSucceedsWithNullCompanyId()
-
testPrepareTokenRequestParams
public void testPrepareTokenRequestParams() throws Exception- Throws:
Exception
-
testPrepareTokenRequestParamsWithoutCompanyId
public void testPrepareTokenRequestParamsWithoutCompanyId() throws Exception- Throws:
Exception
-
testRefreshCredentialsWithEmptyAssertion
public void testRefreshCredentialsWithEmptyAssertion()
-
testApplyAuthHeadersWithToken
public void testApplyAuthHeadersWithToken()
-
-