Package com.atlassian.confluence.it
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 usecom.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 Summary
Fields Modifier and Type Field Description static Page
TEST_PAGE
Deprecated.static Space
TEST_SPACE
Deprecated.
-
Constructor Summary
Constructors Constructor Description AcceptanceTestHelper()
Deprecated.since 5.6 Usemake(boolean)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description org.junit.runners.model.Statement
apply(org.junit.runners.model.Statement base, org.junit.runner.Description description)
Deprecated.User
createTestUser()
Deprecated.String
getBaseUrl()
Deprecated.com.atlassian.confluence.test.BaseUrlSelector
getBaseUrlSelector()
Deprecated.com.sun.jersey.api.client.Client
getClient()
Deprecated.since 5.6 UsegetRestClient()
String
getConfiguredBaseUrl()
Deprecated.LogAdjuster
getLogAdjuster()
Deprecated.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.com.sun.jersey.api.client.WebResource
getResource(String uri, User user)
Deprecated.com.sun.jersey.api.client.Client
getRestClient()
Deprecated.ConfluenceRpc
getRpc()
Deprecated.ServerStateManager
getServerStateManager()
Deprecated.static File
getTempDirectory()
Deprecated.static File
getTempFileDir()
Deprecated.TestData
getTestData()
Deprecated.UserManagementHelper
getUserHelper()
Deprecated.net.sourceforge.jwebunit.junit.WebTester
getWebTester()
Deprecated.static Properties
loadProperties(String fileName)
Deprecated.static AcceptanceTestHelper
make()
Deprecated.since 5.6.static AcceptanceTestHelper
make(boolean autoCreateUsers)
Deprecated.void
setUp(Class testClass, String testName)
Deprecated.void
setUp(Class testClass, String testName, net.sourceforge.jwebunit.junit.WebTester webTester)
Deprecated.void
setUp(Class testClass, String testName, net.sourceforge.jwebunit.junit.WebTester webTester, com.sun.jersey.api.client.Client restClient)
Deprecated.void
setUp(Class testClass, org.junit.rules.TestName testName)
Deprecated.since 5.9.void
setUp(Class testClass, org.junit.rules.TestName testName, net.sourceforge.jwebunit.junit.WebTester webTester)
Deprecated.void
setUp(Class testClass, org.junit.rules.TestName testName, net.sourceforge.jwebunit.junit.WebTester webTester, com.sun.jersey.api.client.Client restClient)
Deprecated.void
tearDown()
Deprecated.
-
-
-
Constructor Detail
-
AcceptanceTestHelper
@Deprecated public AcceptanceTestHelper()
Deprecated.since 5.6 Usemake(boolean)
-
-
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 interfaceorg.junit.rules.TestRule
-
setUp
@Deprecated public void setUp(Class testClass, org.junit.rules.TestName testName) throws Exception
Deprecated.since 5.9. Use AcceptanceTestHelper as aRule
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
-
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 UsegetRestClient()
-
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. Usemake(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.
-
-