Package com.guinetik.rr.auth
Class OAuth2PasswordStrategyTest
- java.lang.Object
-
- com.guinetik.rr.auth.OAuth2PasswordStrategyTest
-
public class OAuth2PasswordStrategyTest extends Object
Unit tests forOAuth2PasswordStrategy.
-
-
Constructor Summary
Constructors Constructor Description OAuth2PasswordStrategyTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetUp()voidtestApplyAuthHeadersWithToken()voidtestAuthTypeIsPassword()voidtestConstructorWithAdditionalParams()voidtestNeedsTokenRefresh()voidtestPrepareTokenRequestParamsForPasswordGrant()voidtestPrepareTokenRequestParamsWithoutClientCredentials()voidtestPrepareTokenRequestParamsWithRefreshToken()voidtestProcessTokenResponseWithRefreshToken()voidtestValidateCredentialsFailsWithNullPassword()voidtestValidateCredentialsFailsWithNullUsername()voidtestValidateCredentialsSucceedsWithNullClientId()
-
-
-
Method Detail
-
setUp
public void setUp()
-
testAuthTypeIsPassword
public void testAuthTypeIsPassword()
-
testConstructorWithAdditionalParams
public void testConstructorWithAdditionalParams()
-
testValidateCredentialsFailsWithNullUsername
public void testValidateCredentialsFailsWithNullUsername()
-
testValidateCredentialsFailsWithNullPassword
public void testValidateCredentialsFailsWithNullPassword()
-
testValidateCredentialsSucceedsWithNullClientId
public void testValidateCredentialsSucceedsWithNullClientId()
-
testPrepareTokenRequestParamsForPasswordGrant
public void testPrepareTokenRequestParamsForPasswordGrant() throws Exception- Throws:
Exception
-
testPrepareTokenRequestParamsWithoutClientCredentials
public void testPrepareTokenRequestParamsWithoutClientCredentials() throws Exception- Throws:
Exception
-
testPrepareTokenRequestParamsWithRefreshToken
public void testPrepareTokenRequestParamsWithRefreshToken() throws Exception- Throws:
Exception
-
testProcessTokenResponseWithRefreshToken
public void testProcessTokenResponseWithRefreshToken() throws Exception- Throws:
Exception
-
testApplyAuthHeadersWithToken
public void testApplyAuthHeadersWithToken()
-
-