@IntegrationTest public class DefaultAuthenticationServiceTest extends ServicelayerTransactionalBaseTest
| Modifier and Type | Field and Description |
|---|---|
ExpectedException |
thrown |
jaloSession| Constructor and Description |
|---|
DefaultAuthenticationServiceTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
setUp() |
void |
shouldLoginWhenUserIsDeactivatedInFuture() |
void |
shouldThrowInvalidCredentialsExceptionWhenLoginIsDisabled() |
void |
shouldThrowInvalidCredentialsExceptionWhenPasswordEncodingIsWrongOrNotKnown() |
void |
shouldThrowInvalidCredentialsExceptionWhenUserIsAnonymousAndAnonymousLoginIsDisabled() |
void |
shouldThrowInvalidCredentialsExceptionWhenUserIsDeactivated() |
void |
tearDown() |
void |
testChangePassword() |
void |
testCheckCredentials() |
void |
testCheckCredentialsWrongPwd() |
void |
testCheckCredentialsWrongUser() |
void |
testEncodedPasswords() |
void |
testFalseEncoding()
small test for getting the encoder not found exception
|
void |
testLoginLogout() |
void |
testLoginWrongPwd() |
void |
testLoginWrongUser() |
autowireProperties, getApplicationContext, getBeanName, prepareApplicationContextAndSessionestablishJaloSession, finish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivated, takeJaloSessionpublic void setUp()
public void tearDown()
public void testLoginLogout()
throws InvalidCredentialsException,
JaloSecurityException
public void testLoginWrongPwd()
throws InvalidCredentialsException
InvalidCredentialsExceptionpublic void testLoginWrongUser()
throws InvalidCredentialsException
InvalidCredentialsExceptionpublic void shouldThrowInvalidCredentialsExceptionWhenLoginIsDisabled()
public void shouldThrowInvalidCredentialsExceptionWhenUserIsDeactivated()
public void shouldLoginWhenUserIsDeactivatedInFuture()
throws InvalidCredentialsException
InvalidCredentialsExceptionpublic void shouldThrowInvalidCredentialsExceptionWhenPasswordEncodingIsWrongOrNotKnown()
public void testCheckCredentials()
throws InvalidCredentialsException
InvalidCredentialsExceptionpublic void testCheckCredentialsWrongPwd()
throws InvalidCredentialsException
InvalidCredentialsExceptionpublic void testCheckCredentialsWrongUser()
throws InvalidCredentialsException
InvalidCredentialsExceptionpublic void testEncodedPasswords()
throws ConsistencyCheckException
ConsistencyCheckExceptionpublic void testFalseEncoding()
public void testChangePassword()
throws java.lang.Exception
java.lang.Exceptionpublic void shouldThrowInvalidCredentialsExceptionWhenUserIsAnonymousAndAnonymousLoginIsDisabled()
throws InvalidCredentialsException
InvalidCredentialsExceptionCopyright © 2018 SAP SE. All Rights Reserved.