Class 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 Detail

      • TEST_SPACE

        public static Space TEST_SPACE
        Deprecated.
      • TEST_PAGE

        public static Page TEST_PAGE
        Deprecated.
    • Method Detail

      • 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,
                          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
      • getWebTester

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

        public TestData getTestData()
        Deprecated.
      • getRestClient

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

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

        public static File getTempFileDir()
        Deprecated.
      • getTempDirectory

        public static File getTempDirectory()
        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.
      • getBaseUrl

        public String getBaseUrl()
        Deprecated.
      • getConfiguredBaseUrl

        public String getConfiguredBaseUrl()
        Deprecated.
      • createTestUser

        public User createTestUser()
        Deprecated.
      • getLogAdjuster

        public LogAdjuster getLogAdjuster()
        Deprecated.