Class DefaultAuthenticationServiceTest
java.lang.Object
de.hybris.platform.testframework.HybrisJUnit4Test
de.hybris.platform.servicelayer.ServicelayerBaseTest
de.hybris.platform.servicelayer.ServicelayerTransactionalBaseTest
de.hybris.platform.servicelayer.security.auth.impl.DefaultAuthenticationServiceTest
- All Implemented Interfaces:
JaloSessionHolder
@IntegrationTest
public class DefaultAuthenticationServiceTest
extends ServicelayerTransactionalBaseTest
-
Field Summary
FieldsFields inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
jaloSession -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class de.hybris.platform.servicelayer.ServicelayerBaseTest
autowireProperties, getApplicationContext, getBeanName, prepareApplicationContextAndSessionMethods inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
establishJaloSession, finish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivated, takeJaloSession
-
Field Details
-
thrown
public org.junit.rules.ExpectedException thrown
-
-
Constructor Details
-
DefaultAuthenticationServiceTest
public DefaultAuthenticationServiceTest()
-
-
Method Details
-
setUp
public void setUp() -
tearDown
public void tearDown() -
testLoginLogout
-
testLoginWithEmptyPassword
public void testLoginWithEmptyPassword() throws InvalidCredentialsException, EJBPasswordEncoderNotFoundException -
testLoginWithEmptyPasswordWithAcceptEmptyFlagSetToTrue
public void testLoginWithEmptyPasswordWithAcceptEmptyFlagSetToTrue() throws InvalidCredentialsException, EJBPasswordEncoderNotFoundException -
testLoginWrongPwd
- Throws:
InvalidCredentialsException
-
testLoginWrongUser
- Throws:
InvalidCredentialsException
-
shouldThrowInvalidCredentialsExceptionWhenLoginIsDisabled
public void shouldThrowInvalidCredentialsExceptionWhenLoginIsDisabled() -
shouldThrowInvalidCredentialsExceptionWhenUserIsDeactivated
public void shouldThrowInvalidCredentialsExceptionWhenUserIsDeactivated() -
shouldLoginWhenUserIsDeactivatedInFuture
- Throws:
InvalidCredentialsException
-
shouldThrowInvalidCredentialsExceptionWhenPasswordEncodingIsWrongOrNotKnown
public void shouldThrowInvalidCredentialsExceptionWhenPasswordEncodingIsWrongOrNotKnown() -
testCheckCredentials
- Throws:
InvalidCredentialsException
-
testCheckCredentialsWrongPwd
- Throws:
InvalidCredentialsException
-
testCheckCredentialsWrongUser
- Throws:
InvalidCredentialsException
-
testEncodedPasswords
- Throws:
ConsistencyCheckException
-
testFalseEncoding
public void testFalseEncoding()small test for getting the encoder not found exception -
testChangePassword
- Throws:
Exception
-
shouldThrowInvalidCredentialsExceptionWhenUserIsAnonymousAndAnonymousLoginIsDisabled
public void shouldThrowInvalidCredentialsExceptionWhenUserIsAnonymousAndAnonymousLoginIsDisabled() throws InvalidCredentialsException- Throws:
InvalidCredentialsException
-