Package auth.gui
Class AuthServiceTest
- java.lang.Object
-
- auth.gui.AuthServiceTest
-
public class AuthServiceTest extends java.lang.ObjectUnit tests for AuthService.
-
-
Constructor Summary
Constructors Constructor Description AuthServiceTest()
-
Method Summary
-
-
-
Method Detail
-
setUp
public void setUp()
-
authenticate_DB_hashesPasswordAndDelegatesToUserDao
public void authenticate_DB_hashesPasswordAndDelegatesToUserDao() throws javax.naming.NamingException- Throws:
javax.naming.NamingException
-
authenticate_LDAP_delegatesToSigninLdap
public void authenticate_LDAP_delegatesToSigninLdap() throws javax.naming.NamingException- Throws:
javax.naming.NamingException
-
authenticate_nullArgs_returnsFalse
public void authenticate_nullArgs_returnsFalse() throws javax.naming.NamingException- Throws:
javax.naming.NamingException
-
authenticate_unsupportedAuth_throws
public void authenticate_unsupportedAuth_throws() throws javax.naming.NamingException- Throws:
javax.naming.NamingException
-
isRepeatedSigninAttempt_trueWhenAtLeastThree
public void isRepeatedSigninAttempt_trueWhenAtLeastThree()
-
isRepeatedSigninAttempt_falseWhenLessThanThree
public void isRepeatedSigninAttempt_falseWhenLessThanThree()
-
getSignedinUserBySessionCookie_returnsUserWhenPresent
public void getSignedinUserBySessionCookie_returnsUserWhenPresent()
-
getSignedinUserBySessionCookie_returnsNullWhenMissing
public void getSignedinUserBySessionCookie_returnsNullWhenMissing()
-
writeSessionCookie_setsExpectedKeys_and_isSessionKeepSignedinReflectsAllowFlag
public void writeSessionCookie_setsExpectedKeys_and_isSessionKeepSignedinReflectsAllowFlag()
-
writeSessionCookie_and_sessionAllowKeepSignedin
public void writeSessionCookie_and_sessionAllowKeepSignedin()
-
isSessionTimeout_trueWhenExpiredOrOnError
public void isSessionTimeout_trueWhenExpiredOrOnError()
-
isInactivityTimeout_trueWhenExpiredOrOnError
public void isInactivityTimeout_trueWhenExpiredOrOnError()
-
getRedirectPageAfterSignin_homeWhenNoLastVisited
public void getRedirectPageAfterSignin_homeWhenNoLastVisited()
-
-