public class AuthServiceTest
extends java.lang.Object
| Constructor and Description |
|---|
AuthServiceTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
authenticate_DB_hashesPasswordAndDelegatesToUserDao() |
void |
authenticate_LDAP_delegatesToSigninLdap() |
void |
authenticate_nullArgs_returnsFalse() |
void |
authenticate_unsupportedAuth_throws() |
void |
getRedirectPageAfterSignin_homeWhenNoLastVisited() |
void |
getSignedinUserBySessionCookie_returnsNullWhenMissing() |
void |
getSignedinUserBySessionCookie_returnsUserWhenPresent() |
void |
isInactivityTimeout_trueWhenExpiredOrOnError() |
void |
isRepeatedSigninAttempt_falseWhenLessThanThree() |
void |
isRepeatedSigninAttempt_trueWhenAtLeastThree() |
void |
isSessionTimeout_trueWhenExpiredOrOnError() |
void |
setUp() |
void |
writeSessionCookie_and_sessionAllowKeepSignedin() |
void |
writeSessionCookie_setsExpectedKeys_and_isSessionKeepSignedinReflectsAllowFlag() |
public void setUp()
public void authenticate_DB_hashesPasswordAndDelegatesToUserDao()
throws javax.naming.NamingException
javax.naming.NamingExceptionpublic void authenticate_LDAP_delegatesToSigninLdap()
throws javax.naming.NamingException
javax.naming.NamingExceptionpublic void authenticate_nullArgs_returnsFalse()
throws javax.naming.NamingException
javax.naming.NamingExceptionpublic void authenticate_unsupportedAuth_throws()
throws javax.naming.NamingException
javax.naming.NamingExceptionpublic void isRepeatedSigninAttempt_trueWhenAtLeastThree()
public void isRepeatedSigninAttempt_falseWhenLessThanThree()
public void getSignedinUserBySessionCookie_returnsUserWhenPresent()
public void getSignedinUserBySessionCookie_returnsNullWhenMissing()
public void writeSessionCookie_setsExpectedKeys_and_isSessionKeepSignedinReflectsAllowFlag()
public void writeSessionCookie_and_sessionAllowKeepSignedin()
public void isSessionTimeout_trueWhenExpiredOrOnError()
public void isInactivityTimeout_trueWhenExpiredOrOnError()
public void getRedirectPageAfterSignin_homeWhenNoLastVisited()