public class AuthenticationResponseCodeTest extends Object
| Modifier and Type | Field and Description |
|---|---|
org.junit.rules.TestRule |
logRule |
| Constructor and Description |
|---|
AuthenticationResponseCodeTest() |
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.commons.httpclient.HttpMethod |
assertPostStatus(String url,
int expectedStatusCode,
List<org.apache.commons.httpclient.NameValuePair> postParams,
List<org.apache.commons.httpclient.Header> headers,
String assertMessage) |
void |
cleanup() |
void |
setup() |
void |
testPreventLoopIncorrectFormCredentials() |
void |
testPreventLoopIncorrectHttpBasicCredentials() |
void |
testValidatingCorrectFormCredentials() |
void |
testValidatingCorrectHttpBasicCredentials() |
void |
testValidatingIncorrectCookie() |
void |
testValidatingIncorrectCredentials() |
void |
testValidatingIncorrectHttpBasicCredentials() |
void |
testWithNonHtmlAcceptHeaderIncorrectCredentials() |
void |
testWithoutAcceptHeaderIncorrectCredentials() |
void |
testXRequestedWithIncorrectCredentials() |
public void testValidatingCorrectFormCredentials()
throws Exception
Exceptionpublic void testValidatingCorrectHttpBasicCredentials()
throws Exception
Exceptionpublic void testValidatingIncorrectCredentials()
throws Exception
Exceptionpublic void testValidatingIncorrectCookie()
throws Exception
Exceptionpublic void testValidatingIncorrectHttpBasicCredentials()
throws Exception
Exceptionpublic void testPreventLoopIncorrectHttpBasicCredentials()
throws Exception
Exceptionpublic void testPreventLoopIncorrectFormCredentials()
throws Exception
Exceptionpublic void testXRequestedWithIncorrectCredentials()
throws Exception
Exceptionpublic void testWithoutAcceptHeaderIncorrectCredentials()
throws Exception
Exceptionpublic void testWithNonHtmlAcceptHeaderIncorrectCredentials()
throws Exception
Exceptionprotected org.apache.commons.httpclient.HttpMethod assertPostStatus(String url, int expectedStatusCode, List<org.apache.commons.httpclient.NameValuePair> postParams, List<org.apache.commons.httpclient.Header> headers, String assertMessage) throws IOException
IOExceptionCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.