Class RequestAssertions

java.lang.Object
com.atlassian.jira.functest.framework.assertions.RequestAssertions

public class RequestAssertions extends Object
Assertions about requests
Since:
v7.1
  • Constructor Details

    • RequestAssertions

      @Inject public RequestAssertions(net.sourceforge.jwebunit.WebTester tester, JIRAEnvironmentData environmentData)
  • Method Details

    • assertResponseCanBeCached

      public void assertResponseCanBeCached()
      Asserts that the Cache-control header in the response *is not* set to any one of "no-cache", "no-store" or "must-revalidate". The choice of these 3 headers is directly related to the implementation of com.atlassian.core.filters.AbstractEncodingFilter.setNonCachingHeaders(HttpServletResponse)