@Deprecated public class AcceptanceTestHelper extends Object implements org.junit.rules.MethodRule
Modifier and Type | Field and Description |
---|---|
static Page |
TEST_PAGE
Deprecated.
|
static Space |
TEST_SPACE
Deprecated.
|
Constructor and Description |
---|
AcceptanceTestHelper()
Deprecated.
since 5.6 Use
make(boolean) |
Modifier and Type | Method and Description |
---|---|
org.junit.runners.model.Statement |
apply(org.junit.runners.model.Statement base,
org.junit.runners.model.FrameworkMethod method,
Object target)
Deprecated.
Implementation of
MethodRule which automatically invoked setUp(Class, String) and tearDown()
at the appropriate time. |
User |
createTestUser()
Deprecated.
|
String |
getBaseUrl()
Deprecated.
|
com.sun.jersey.api.client.Client |
getClient()
Deprecated.
since 5.6 Use
getRestClient() |
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. Use
make(boolean) to explicitly specify whether User.TEST should be auto-created. |
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. Use AcceptanceTestHelper as a
Rule instead |
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.
|
public static final Space TEST_SPACE
public static final Page TEST_PAGE
@Deprecated public AcceptanceTestHelper()
make(boolean)
@Deprecated public void setUp(Class testClass, org.junit.rules.TestName testName) throws Exception
Rule
insteadException
public void setUp(Class testClass, String testName) throws Exception
Exception
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
IOException
public void setUp(Class testClass, String testName, net.sourceforge.jwebunit.junit.WebTester webTester, com.sun.jersey.api.client.Client restClient) throws IOException
IOException
public void setUp(Class testClass, String testName, net.sourceforge.jwebunit.junit.WebTester webTester) throws IOException
IOException
public void setUp(Class testClass, org.junit.rules.TestName testName, net.sourceforge.jwebunit.junit.WebTester webTester) throws IOException
IOException
public net.sourceforge.jwebunit.junit.WebTester getWebTester()
public ConfluenceRpc getRpc()
public TestData getTestData()
@Deprecated public com.sun.jersey.api.client.Client getClient()
getRestClient()
public com.sun.jersey.api.client.Client getRestClient()
public ServerStateManager getServerStateManager()
public static File getTempFileDir()
public static File getTempDirectory()
public UserManagementHelper getUserHelper()
public static Properties loadProperties(String fileName)
protected static String getPropertyValue(String k, String v, Properties p)
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}.
public com.sun.jersey.api.client.WebResource getResource(String uri, User user)
@Deprecated public static AcceptanceTestHelper make()
make(boolean)
to explicitly specify whether User.TEST should be auto-created.public static AcceptanceTestHelper make(boolean autoCreateUsers)
public String getBaseUrl()
public String getConfiguredBaseUrl()
public User createTestUser()
public LogAdjuster getLogAdjuster()
public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement base, org.junit.runners.model.FrameworkMethod method, Object target)
MethodRule
which automatically invoked setUp(Class, String)
and tearDown()
at the appropriate time.apply
in interface org.junit.rules.MethodRule
Copyright © 2003–2018 Atlassian. All rights reserved.