@IntegrationTest public class DefaultAuthenticationServiceTest extends ServicelayerTransactionalBaseTest
| Modifier and Type | Field and Description |
|---|---|
ExpectedException |
thrown |
defaultLanguage, jaloSession| Constructor and Description |
|---|
DefaultAuthenticationServiceTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
setUp() |
void |
shouldThrowInvalidCredentialsExceptionWhenLoginIsDisabled() |
void |
shouldThrowInvalidCredentialsExceptionWhenPasswordEncodingIsWrongOrNotKnown() |
void |
shouldThrowInvalidCredentialsExceptionWhenUserIsAnonymousAndAnonymousLoginIsDisabled() |
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, prepareApplicationContextAndSessionfinish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivatedpublic 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 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 shouldThrowInvalidCredentialsExceptionWhenUserIsAnonymousAndAnonymousLoginIsDisabled()
throws InvalidCredentialsException
InvalidCredentialsExceptionCopyright © 2017 SAP SE. All Rights Reserved.