public class XsrfTestHelper extends Object
Constructor and Description |
---|
XsrfTestHelper() |
Modifier and Type | Method and Description |
---|---|
static void |
assertNoTokenValidationErrors(net.sourceforge.jwebunit.junit.WebTester tester,
String url) |
static void |
assertNoTokenValidationErrorsOnSubmit(net.sourceforge.jwebunit.junit.WebTester tester) |
static void |
assertTokenReturnedInJsonResponse(net.sourceforge.jwebunit.junit.WebTester tester,
String url) |
static void |
assertTokenValidationFails(net.sourceforge.jwebunit.junit.WebTester tester,
String url) |
static void |
assertUrlIsForbidden(net.sourceforge.jwebunit.junit.WebTester tester,
String url) |
static void |
assertUrlIsNotForbidden(net.sourceforge.jwebunit.junit.WebTester tester,
String url) |
static void |
assertXsrfTokenNotPresentFailure(net.sourceforge.jwebunit.junit.WebTester tester,
String url) |
static void |
assertXsrfTokenNotValidFailure(net.sourceforge.jwebunit.junit.WebTester tester,
String url) |
static String |
getSecurityToken(net.sourceforge.jwebunit.junit.WebTester tester) |
static String |
getSecurityTokenQueryParam(net.sourceforge.jwebunit.junit.WebTester tester) |
public static void assertNoTokenValidationErrorsOnSubmit(net.sourceforge.jwebunit.junit.WebTester tester)
public static void assertNoTokenValidationErrors(net.sourceforge.jwebunit.junit.WebTester tester, String url)
public static void assertTokenReturnedInJsonResponse(net.sourceforge.jwebunit.junit.WebTester tester, String url)
public static void assertTokenValidationFails(net.sourceforge.jwebunit.junit.WebTester tester, String url)
public static void assertUrlIsForbidden(net.sourceforge.jwebunit.junit.WebTester tester, String url)
public static void assertUrlIsNotForbidden(net.sourceforge.jwebunit.junit.WebTester tester, String url)
public static void assertXsrfTokenNotPresentFailure(net.sourceforge.jwebunit.junit.WebTester tester, String url)
public static void assertXsrfTokenNotValidFailure(net.sourceforge.jwebunit.junit.WebTester tester, String url)
public static String getSecurityToken(net.sourceforge.jwebunit.junit.WebTester tester)
public static String getSecurityTokenQueryParam(net.sourceforge.jwebunit.junit.WebTester tester)
Copyright © 2003–2017 Atlassian. All rights reserved.