Class DefaultOAuthCredentialsRestTemplateProviderUnitTest
- java.lang.Object
-
- de.hybris.platform.apiregistryservices.utils.DefaultOAuthCredentialsRestTemplateProviderUnitTest
-
@UnitTest public class DefaultOAuthCredentialsRestTemplateProviderUnitTest extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description DefaultOAuthCredentialsRestTemplateProviderUnitTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ConsumedOAuthCredentialModelgetCredential(java.lang.String clientId, java.lang.String clientSecret, java.lang.String url)voidtestGetRestTemplate()voidtestValidateCredentialEmptyClientId()voidtestValidateCredentialEmptyClientSecret()voidtestValidateCredentialEmptyUrl()voidtestValidateCredentialForWrongCredentialType()voidtestValidateCredentialNoClientId()voidtestValidateCredentialNoClientSecret()voidtestValidateCredentialNoUrl()
-
-
-
Method Detail
-
testValidateCredentialForWrongCredentialType
public void testValidateCredentialForWrongCredentialType() throws CredentialException- Throws:
CredentialException
-
testValidateCredentialNoClientId
public void testValidateCredentialNoClientId() throws CredentialException- Throws:
CredentialException
-
testValidateCredentialEmptyClientId
public void testValidateCredentialEmptyClientId() throws CredentialException- Throws:
CredentialException
-
testValidateCredentialNoClientSecret
public void testValidateCredentialNoClientSecret() throws CredentialException- Throws:
CredentialException
-
testValidateCredentialEmptyClientSecret
public void testValidateCredentialEmptyClientSecret() throws CredentialException- Throws:
CredentialException
-
testValidateCredentialNoUrl
public void testValidateCredentialNoUrl() throws CredentialException- Throws:
CredentialException
-
testValidateCredentialEmptyUrl
public void testValidateCredentialEmptyUrl() throws CredentialException- Throws:
CredentialException
-
testGetRestTemplate
public void testGetRestTemplate() throws CredentialException- Throws:
CredentialException
-
getCredential
protected ConsumedOAuthCredentialModel getCredential(java.lang.String clientId, java.lang.String clientSecret, java.lang.String url)
-
-