Class DefaultBasicCredentialsRestTemplateProviderUnitTest
- java.lang.Object
-
- de.hybris.platform.apiregistryservices.utils.DefaultBasicCredentialsRestTemplateProviderUnitTest
-
@UnitTest public class DefaultBasicCredentialsRestTemplateProviderUnitTest extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description DefaultBasicCredentialsRestTemplateProviderUnitTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected BasicCredentialModelgetCredential(java.lang.String userName, java.lang.String passWord)voidtestGetRestTemplate()voidtestValidateCredentialEmptyPassword()voidtestValidateCredentialEmptyUserName()voidtestValidateCredentialForWrongCredentialType()voidtestValidateCredentialNoPassword()voidtestValidateCredentialNoUserName()
-
-
-
Method Detail
-
testValidateCredentialForWrongCredentialType
public void testValidateCredentialForWrongCredentialType() throws CredentialException- Throws:
CredentialException
-
testValidateCredentialNoUserName
public void testValidateCredentialNoUserName() throws CredentialException- Throws:
CredentialException
-
testValidateCredentialNoPassword
public void testValidateCredentialNoPassword() throws CredentialException- Throws:
CredentialException
-
testValidateCredentialEmptyUserName
public void testValidateCredentialEmptyUserName() throws CredentialException- Throws:
CredentialException
-
testValidateCredentialEmptyPassword
public void testValidateCredentialEmptyPassword() throws CredentialException- Throws:
CredentialException
-
testGetRestTemplate
public void testGetRestTemplate() throws CredentialException- Throws:
CredentialException
-
getCredential
protected BasicCredentialModel getCredential(java.lang.String userName, java.lang.String passWord)
-
-