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, isTpmLdapTests
public 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)
JIRAEnvironmentData
getProperty
in interface com.atlassian.jira.testkit.client.JIRAEnvironmentData
getProperty
in class AbstractEnvironmentData
key
- the property keypublic String getContext()
public String getTenant()
JIRAEnvironmentData
getTenant
in interface com.atlassian.jira.testkit.client.JIRAEnvironmentData
getTenant
in class AbstractEnvironmentData
public boolean shouldCreateDummyTenant()
JIRAEnvironmentData
shouldCreateDummyTenant
in interface com.atlassian.jira.testkit.client.JIRAEnvironmentData
shouldCreateDummyTenant
in class AbstractEnvironmentData
public URL getBaseUrl()
public File getXMLDataLocation()
public File getWorkingDirectory()
JIRAEnvironmentData
This 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 AbstractEnvironmentData
Copyright © 2002-2023 Atlassian. All Rights Reserved.