Class SPNEGOAutoLoginManagerTest
- java.lang.Object
-
- net.shibboleth.idp.authn.spnego.impl.SPNEGOAutoLoginManagerTest
-
public class SPNEGOAutoLoginManagerTest extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected static StringAUTOLOGIN_COOKIE_VALUE_FALSESPNEGO auto-login cookie value representing false.protected static StringAUTOLOGIN_COOKIE_VALUE_OTHERSPNEGO auto-login cookie value representing "ignored value".
-
Constructor Summary
Constructors Constructor Description SPNEGOAutoLoginManagerTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected net.shibboleth.idp.authn.spnego.impl.SPNEGOAutoLoginManagercreateAutoLoginManager(MockHttpServletRequest req, MockHttpServletResponse res)voiddisableAutoLogin_shouldUnsetCookie()voidenableAutoLogin_shouldSetCookieToTrue()voidgivenCookieAbsent_onlyIsDisabledShouldReturnTrue()voidgivenCookieFalse_onlyIsDisabledShouldReturnTrue()voidgivenCookieOtherValue_onlyIsDisabledShouldReturnTrue()voidgivenCookieTrue_onlyIsEnabledShouldReturnTrue()voidsetUp()
-
-
-
Field Detail
-
AUTOLOGIN_COOKIE_VALUE_FALSE
protected static final String AUTOLOGIN_COOKIE_VALUE_FALSE
SPNEGO auto-login cookie value representing false.- See Also:
- Constant Field Values
-
AUTOLOGIN_COOKIE_VALUE_OTHER
protected static final String AUTOLOGIN_COOKIE_VALUE_OTHER
SPNEGO auto-login cookie value representing "ignored value".- See Also:
- Constant Field Values
-
-
Method Detail
-
setUp
@BeforeMethod public void setUp() throws Exception
- Throws:
Exception
-
createAutoLoginManager
protected net.shibboleth.idp.authn.spnego.impl.SPNEGOAutoLoginManager createAutoLoginManager(MockHttpServletRequest req, MockHttpServletResponse res) throws Exception
- Throws:
Exception
-
enableAutoLogin_shouldSetCookieToTrue
public void enableAutoLogin_shouldSetCookieToTrue() throws Exception- Throws:
Exception
-
disableAutoLogin_shouldUnsetCookie
public void disableAutoLogin_shouldUnsetCookie() throws Exception- Throws:
Exception
-
givenCookieTrue_onlyIsEnabledShouldReturnTrue
public void givenCookieTrue_onlyIsEnabledShouldReturnTrue() throws Exception- Throws:
Exception
-
givenCookieAbsent_onlyIsDisabledShouldReturnTrue
public void givenCookieAbsent_onlyIsDisabledShouldReturnTrue() throws Exception- Throws:
Exception
-
givenCookieFalse_onlyIsDisabledShouldReturnTrue
public void givenCookieFalse_onlyIsDisabledShouldReturnTrue() throws Exception- Throws:
Exception
-
-