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.ConfluenceStatelessRestTestRunnerinstead.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 PageTEST_PAGEDeprecated.static SpaceTEST_SPACEDeprecated.
-
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.Statementapply(org.junit.runners.model.Statement base, org.junit.runner.Description description)Deprecated.UsercreateTestUser()Deprecated.StringgetBaseUrl()Deprecated.com.sun.jersey.api.client.ClientgetClient()Deprecated.since 5.6 UsegetRestClient()StringgetConfiguredBaseUrl()Deprecated.LogAdjustergetLogAdjuster()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.ClientgetRestClient()Deprecated.ConfluenceRpcgetRpc()Deprecated.ServerStateManagergetServerStateManager()Deprecated.static FilegetTempDirectory()Deprecated.static FilegetTempFileDir()Deprecated.TestDatagetTestData()Deprecated.UserManagementHelpergetUserHelper()Deprecated.net.sourceforge.jwebunit.junit.WebTestergetWebTester()Deprecated.static PropertiesloadProperties(String fileName)Deprecated.static AcceptanceTestHelpermake()Deprecated.since 5.6.static AcceptanceTestHelpermake(boolean autoCreateUsers)Deprecated.voidsetUp(Class testClass, String testName)Deprecated.voidsetUp(Class testClass, String testName, net.sourceforge.jwebunit.junit.WebTester webTester)Deprecated.voidsetUp(Class testClass, String testName, net.sourceforge.jwebunit.junit.WebTester webTester, com.sun.jersey.api.client.Client restClient)Deprecated.voidsetUp(Class testClass, org.junit.rules.TestName testName)Deprecated.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.
-
-
-
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:
applyin 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 aRuleinstead- 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.
-
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.
-
-