public class

EnvironmentUtils

extends AbstractFuncTestUtil
java.lang.Object
   ↳ com.atlassian.jira.functest.framework.AbstractFuncTestUtil
     ↳ com.atlassian.jira.functest.framework.util.env.EnvironmentUtils

Class Overview

Utility methods for environment settings JIRA runs in.

Summary

Constants
float JDK_1_5_VERSION
[Expand]
Inherited Fields
From class com.atlassian.jira.functest.framework.AbstractFuncTestUtil
Public Constructors
EnvironmentUtils(WebTester tester, JIRAEnvironmentData environmentData)
EnvironmentUtils(WebTester tester, JIRAEnvironmentData environmentData, Navigation navigation)
Public Methods
float getJiraJavaVersion()
Retrieves the version of Java being used to run the JIRA instance from the System Info page.
String getSystemInfoProperty(String propertyLabel)
boolean isH2()
boolean isHsql()
boolean isJavaBeforeJdk15()
boolean isJvmWithPermGen()
boolean isOnWindows()
Checks if this instance of JIRA is running on Windows OS
boolean isOracle()
boolean isSunJVM()
[Expand]
Inherited Methods
From class com.atlassian.jira.functest.framework.AbstractFuncTestUtil
From class java.lang.Object
From interface com.atlassian.jira.testkit.client.log.FuncTestLogger

Constants

public static final float JDK_1_5_VERSION

Constant Value: 1.5

Public Constructors

public EnvironmentUtils (WebTester tester, JIRAEnvironmentData environmentData)

public EnvironmentUtils (WebTester tester, JIRAEnvironmentData environmentData, Navigation navigation)

Public Methods

public float getJiraJavaVersion ()

Retrieves the version of Java being used to run the JIRA instance from the System Info page. Method copied from getJiraJavaVersion().

Returns
  • the Java version as a float - e.g. Java 1.5 returns 1.5f (not 5.0f)

public String getSystemInfoProperty (String propertyLabel)

public boolean isH2 ()

public boolean isHsql ()

public boolean isJavaBeforeJdk15 ()

Returns

public boolean isJvmWithPermGen ()

public boolean isOnWindows ()

Checks if this instance of JIRA is running on Windows OS

Returns
  • true if on Windows, false otherwise

public boolean isOracle ()

public boolean isSunJVM ()

Returns
  • true if we're running a SUN JVM