Class AcceptanceTestHelper

java.lang.Object
com.atlassian.confluence.it.AcceptanceTestHelper
All Implemented Interfaces:
org.junit.rules.TestRule

@Deprecated public class AcceptanceTestHelper extends Object implements org.junit.rules.TestRule
Deprecated.
Please use com.atlassian.confluence.test.stateless.ConfluenceStatelessRestTestRunner instead.
Uber helper for all Acceptance tests - HTMLUnit, Selenium, WebDriver, REST. It does all of the things, and should end up replacing a lot of the logic in the Abstract test super-classes like ACAT.
  • Field Details

    • TEST_SPACE

      public static Space TEST_SPACE
      Deprecated.
    • TEST_PAGE

      public static Page TEST_PAGE
      Deprecated.
  • Constructor Details

  • Method Details

    • apply

      public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement base, org.junit.runner.Description description)
      Deprecated.
      Specified by:
      apply in interface org.junit.rules.TestRule
    • setUp

      @Deprecated public void setUp(Class testClass, org.junit.rules.TestName testName) throws Exception
      Deprecated.
      since 5.9. Use AcceptanceTestHelper as a Rule instead
      Throws:
      Exception
    • setUp

      public void setUp(Class testClass, String testName) throws Exception
      Deprecated.
      Throws:
      Exception
    • setUp

      public void setUp(Class testClass, org.junit.rules.TestName testName, net.sourceforge.jwebunit.junit.WebTester webTester, com.sun.jersey.api.client.Client restClient) throws IOException
      Deprecated.
      Throws:
      IOException
    • setUp

      public void setUp(Class testClass, String testName, net.sourceforge.jwebunit.junit.WebTester webTester, com.sun.jersey.api.client.Client restClient) throws IOException
      Deprecated.
      Throws:
      IOException
    • setUp

      public void setUp(Class testClass, String testName, net.sourceforge.jwebunit.junit.WebTester webTester) throws IOException
      Deprecated.
      Throws:
      IOException
    • setUp

      public void setUp(Class testClass, org.junit.rules.TestName testName, net.sourceforge.jwebunit.junit.WebTester webTester) throws IOException
      Deprecated.
      Throws:
      IOException
    • tearDown

      public void tearDown() throws Exception
      Deprecated.
      Throws:
      Exception
    • getWebTester

      public net.sourceforge.jwebunit.junit.WebTester getWebTester()
      Deprecated.
    • getRpc

      public ConfluenceRpc getRpc()
      Deprecated.
    • getTestData

      public TestData getTestData()
      Deprecated.
    • getClient

      @Deprecated public com.sun.jersey.api.client.Client getClient()
      Deprecated.
      since 5.6 Use getRestClient()
    • getRestClient

      public com.sun.jersey.api.client.Client getRestClient()
      Deprecated.
    • getBaseUrlSelector

      public com.atlassian.confluence.test.BaseUrlSelector getBaseUrlSelector()
      Deprecated.
    • getServerStateManager

      public ServerStateManager getServerStateManager()
      Deprecated.
    • getTempFileDir

      public static File getTempFileDir()
      Deprecated.
    • getTempDirectory

      public static File getTempDirectory()
      Deprecated.
    • getUserHelper

      public UserManagementHelper getUserHelper()
      Deprecated.
    • loadProperties

      public static Properties loadProperties(String fileName)
      Deprecated.
    • getPropertyValue

      protected static String getPropertyValue(String k, String v, Properties p)
      Deprecated.
      Retrieves a property value, replacing values like ${token} using the Properties to look them up.

      It will leave unresolved properties alone, trying for System properties, and implements reparsing (in the case that the value of a property contains a key), and will not loop endlessly on a pair like test = ${test}.

    • getResource

      public com.sun.jersey.api.client.WebResource getResource(String uri, User user)
      Deprecated.
    • make

      @Deprecated public static AcceptanceTestHelper make()
      Deprecated.
      since 5.6. Use make(boolean) to explicitly specify whether User.TEST should be auto-created.
      Creates a new AcceptanceTestHelper which will auto-create User.TEST during setup.
    • make

      public static AcceptanceTestHelper make(boolean autoCreateUsers)
      Deprecated.
    • getBaseUrl

      public String getBaseUrl()
      Deprecated.
    • getConfiguredBaseUrl

      public String getConfiguredBaseUrl()
      Deprecated.
    • createTestUser

      public User createTestUser()
      Deprecated.
    • getLogAdjuster

      public LogAdjuster getLogAdjuster()
      Deprecated.