public class LocalTestEnvironmentData extends AbstractEnvironmentData
| Modifier and Type | Field and Description |
|---|---|
static LocalTestEnvironmentData |
DEFAULT |
| Constructor and Description |
|---|
LocalTestEnvironmentData() |
LocalTestEnvironmentData(Properties properties,
String xmlDataLocation) |
LocalTestEnvironmentData(String xmlDataLocation) |
| Modifier and Type | Method and Description |
|---|---|
URL |
getBaseUrl() |
String |
getContext() |
String |
getEdition() |
File |
getJIRAHomeLocation() |
String |
getProperty(String key)
Returns a property from the test environment.
|
String |
getTenant()
Returns the tenant to run requests on.
|
File |
getWorkingDirectory()
Returns a directory that can be used by the func tests whenever file operations need to be done.
|
File |
getXMLDataLocation() |
static Properties |
loadProperties(String key,
String def) |
boolean |
shouldCreateDummyTenant()
Whether a dummy tenant should be created after the tenant is created.
|
getEnvironmentProperty, getEnvironmentProperty, getReleaseInfo, getSingleTestClass, isAllTests, isBlame, isBundledPluginsOnly, isSingleNamedTest, isTpmLdapTestspublic static final LocalTestEnvironmentData DEFAULT
public LocalTestEnvironmentData()
public LocalTestEnvironmentData(String xmlDataLocation)
public LocalTestEnvironmentData(Properties properties, @Nullable String xmlDataLocation)
public static Properties loadProperties(String key, String def)
public String getProperty(String key)
JIRAEnvironmentDatagetProperty in interface com.atlassian.jira.testkit.client.JIRAEnvironmentDatagetProperty in class AbstractEnvironmentDatakey - the property keypublic String getContext()
public String getTenant()
JIRAEnvironmentDatagetTenant in interface com.atlassian.jira.testkit.client.JIRAEnvironmentDatagetTenant in class AbstractEnvironmentDatapublic boolean shouldCreateDummyTenant()
JIRAEnvironmentDatashouldCreateDummyTenant in interface com.atlassian.jira.testkit.client.JIRAEnvironmentDatashouldCreateDummyTenant in class AbstractEnvironmentDatapublic URL getBaseUrl()
public File getXMLDataLocation()
public File getWorkingDirectory()
JIRAEnvironmentDataThis directory is guaranteed to not be used by other func test instances simultaneously running on the same machine in Bamboo.
This should return a canonical file name (ie an absolute file name, without any '..' parts in it).
File.getCanonicalFile()public File getJIRAHomeLocation()
public String getEdition()
getEdition in class AbstractEnvironmentDataCopyright © 2002-2019 Atlassian. All Rights Reserved.