Package com.atlassian.confluence.it
Class AcceptanceTestHelper
java.lang.Object
com.atlassian.confluence.it.AcceptanceTestHelper
- All Implemented Interfaces:
org.junit.rules.TestRule
Deprecated.
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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.junit.runners.model.Statementapply(org.junit.runners.model.Statement base, org.junit.runner.Description description) Deprecated.Deprecated.Deprecated.com.atlassian.confluence.test.BaseUrlSelectorDeprecated.com.sun.jersey.api.client.ClientDeprecated.since 5.6 UsegetRestClient()Deprecated.Deprecated.protected static StringgetPropertyValue(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.WebResourcegetResource(String uri, User user) Deprecated.com.sun.jersey.api.client.ClientDeprecated.getRpc()Deprecated.Deprecated.static FileDeprecated.static FileDeprecated.Deprecated.Deprecated.net.sourceforge.jwebunit.junit.WebTesterDeprecated.static PropertiesloadProperties(String fileName) Deprecated.static AcceptanceTestHelpermake()Deprecated.since 5.6.static AcceptanceTestHelpermake(boolean autoCreateUsers) Deprecated.voidDeprecated.voidDeprecated.voidsetUp(Class testClass, String testName, net.sourceforge.jwebunit.junit.WebTester webTester, com.sun.jersey.api.client.Client restClient) Deprecated.voidDeprecated.since 5.9.voidsetUp(Class testClass, org.junit.rules.TestName testName, net.sourceforge.jwebunit.junit.WebTester webTester) Deprecated.voidsetUp(Class testClass, org.junit.rules.TestName testName, net.sourceforge.jwebunit.junit.WebTester webTester, com.sun.jersey.api.client.Client restClient) Deprecated.voidtearDown()Deprecated.
-
Field Details
-
TEST_SPACE
Deprecated. -
TEST_PAGE
Deprecated.
-
-
Constructor Details
-
AcceptanceTestHelper
Deprecated.since 5.6 Usemake(boolean)
-
-
Method Details
-
apply
public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement base, org.junit.runner.Description description) Deprecated.- Specified by:
applyin interfaceorg.junit.rules.TestRule
-
setUp
Deprecated.since 5.9. Use AcceptanceTestHelper as aRuleinstead- Throws:
Exception
-
setUp
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
Deprecated.- Throws:
Exception
-
getWebTester
public net.sourceforge.jwebunit.junit.WebTester getWebTester()Deprecated. -
getRpc
Deprecated. -
getTestData
Deprecated. -
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
Deprecated. -
getTempFileDir
Deprecated. -
getTempDirectory
Deprecated. -
getUserHelper
Deprecated. -
loadProperties
Deprecated. -
getPropertyValue
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
Deprecated. -
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
Deprecated. -
getBaseUrl
Deprecated. -
getConfiguredBaseUrl
Deprecated. -
createTestUser
Deprecated. -
getLogAdjuster
Deprecated.
-
com.atlassian.confluence.test.stateless.ConfluenceStatelessRestTestRunnerinstead.