public class CsrfPreventionIT extends AbstractWebIntegrationTest
APP_BASE_PATH, appUrl, client, connection, defaultHttpClient, HOST_NAME, httpPort, service, TASKLIST_PATH, testProperties, testUtil
Constructor and Description |
---|
CsrfPreventionIT() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
checkCookieSet(com.sun.jersey.api.client.ClientResponse response) |
protected boolean |
checkXsrfTokenHeaderPresent(com.sun.jersey.api.client.ClientResponse response) |
void |
createClient() |
void |
shouldCheckPresenceOfCsrfPreventionCookie() |
void |
shouldRejectModifyingRequest() |
before, createClient, destroyClient, getCookieHeaders, getCookieValue, getHeaders, getRestCtxPath, getWebappCtxPath, getXsrfCookieValue, getXsrfTokenHeader, performRequest, preventRaceConditions
public void shouldCheckPresenceOfCsrfPreventionCookie()
protected boolean checkCookieSet(com.sun.jersey.api.client.ClientResponse response)
protected boolean checkXsrfTokenHeaderPresent(com.sun.jersey.api.client.ClientResponse response)
public void shouldRejectModifyingRequest()
Copyright © 2022. All rights reserved.