com.atlassian.jira.pageobjects.config
Class ProductInstanceBasedEnvironmentData

java.lang.Object
  extended by com.atlassian.jira.webtests.util.AbstractEnvironmentData
      extended by com.atlassian.jira.pageobjects.config.ProductInstanceBasedEnvironmentData
All Implemented Interfaces:
com.atlassian.jira.testkit.client.JIRAEnvironmentData

public class ProductInstanceBasedEnvironmentData
extends AbstractEnvironmentData

The environment data is built up on the information provided by the product instance. Unknown information is filled up with default values.


Field Summary
static String EDITION
           
 
Constructor Summary
ProductInstanceBasedEnvironmentData(com.atlassian.pageobjects.ProductInstance productInstance)
           
 
Method Summary
 URL getBaseUrl()
           
 String getContext()
           
protected  String getEdition()
           
 File getJIRAHomeLocation()
           
 File getWorkingDirectory()
          Returns a directory that can be used by the func tests whenever file operations need to be done.
 File getXMLDataLocation()
           
 
Methods inherited from class com.atlassian.jira.webtests.util.AbstractEnvironmentData
getEnvironmentProperty, getProperty, getReleaseInfo, getSingleTestClass, getTenant, isAllTests, isBlame, isBundledPluginsOnly, isSingleNamedTest, isTpmLdapTests, shouldCreateDummyTenant
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EDITION

public static final String EDITION
See Also:
Constant Field Values
Constructor Detail

ProductInstanceBasedEnvironmentData

public ProductInstanceBasedEnvironmentData(@Nonnull
                                           com.atlassian.pageobjects.ProductInstance productInstance)
Method Detail

getEdition

protected String getEdition()
Specified by:
getEdition in class AbstractEnvironmentData

getContext

public String getContext()

getBaseUrl

public URL getBaseUrl()

getXMLDataLocation

public File getXMLDataLocation()

getWorkingDirectory

public File getWorkingDirectory()
Description copied from interface: JIRAEnvironmentData
Returns a directory that can be used by the func tests whenever file operations need to be done.

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).

Returns:
a directory that can be used by the func tests whenever file operations need to be done.
See Also:
File.getCanonicalFile()

getJIRAHomeLocation

public File getJIRAHomeLocation()
Returns:
a directory that can be used by the func tests whenever file operations need to be done.


Copyright © 2002-2013 Atlassian. All Rights Reserved.