Package com.atlassian.confluence.it
Class TestProperties
- java.lang.Object
-
- com.atlassian.confluence.it.TestProperties
-
@Deprecated public class TestProperties extends Object
Deprecated.Please use confluence-test-utils module instead. See {com.atlassian.confluence.test.properties.TestProperties} alternativeContains common properties used for testing Confluence's functionality. It includes a properties about the platform being tested.
-
-
Field Summary
Fields Modifier and Type Field Description static booleanCHECK_TEST_TEARDOWNDeprecated.static booleanCROWD_MODEDeprecated.static intDB_AND_PLUGINS_SETUP_TIMEOUTDeprecated.static StringDEFAULT_USERS_GROUPDeprecated.static intHTTP_REQUEST_TIMEOUTDeprecated.static StringINDRA_BASEURL_PROPERTY_KEYDeprecated.since 5.10.static StringJIRA_BASEURL_PROPERTY_KEYDeprecated.since 5.10.static StringLOCAL_HOSTNAMEDeprecated.since 5.10.static TimePeriodPAUSE_ATTACHMENT_NAMINGDeprecated.static booleanPAUSE_BACKGROUND_JOBSDeprecated.static TimePeriodPAUSE_LONGTASKDeprecated.static intPAUSE_MILLISDeprecated.The length of time to pause between actions must be longer for some databases than others.static org.joda.time.DurationPAUSE_PLUGIN_INSTALLATIONDeprecated.DatabasePluginScanner does not support installing the same plugin twice inside the same secondstatic TimePeriodPAUSE_REINDEXDeprecated.static org.joda.time.PeriodPAUSE_RENDER_CONTENTDeprecated.static PropertiesManagerpropertiesManagerDeprecated.static SearchPlatformSEARCH_PLATFORMDeprecated.static intTCP_PORT_RANGE_ENDDeprecated.static intTCP_PORT_RANGE_END_FOR_MAILDeprecated.static intTCP_PORT_RANGE_STARTDeprecated.static intTCP_PORT_RANGE_START_FOR_MAILDeprecated.
-
Constructor Summary
Constructors Constructor Description TestProperties()Deprecated.
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static Map<String,String>getAllPropertiesWithPrefix(String prefix)Deprecated.static StringgetBaseUrl(int index)Deprecated.Our tests support running against multiple Confluence nodes, each with their own base URL.static Map<String,String>getDelegatedLdapAuthProperties()Deprecated.static Map<String,String>getDelegatedLdapGroupSyncProperties()Deprecated.static StringgetJiraBaseurl()Deprecated.since 5.10.static Map<String,String>getLdapProperties()Deprecated.static Map<String,String>getPrefixedPropertiesFromFile(String file, String prefix)Deprecated.static StringgetTestProperty(String propName)Deprecated.static StringgetTestProperty(String propName, String defaultPropValue)Deprecated.static booleangetTestPropertyAsBoolean(String propName)Deprecated.Returns the test property as a boolean value.static intgetTestPropertyAsInt(String propName)Deprecated.static intgetTestPropertyAsInt(String propName, int defaultPropValue)Deprecated.static booleanisClustered()Deprecated.static booleanisIndraEnabled()Deprecated.since 5.10.static booleanisJiraEnabled()Deprecated.since 5.10.static booleanisOnDemandAlaCarte()Deprecated.since 5.10.static booleanisOnDemandMode()Deprecated.since 5.10.static booleanisOnDemandStandalone()Deprecated.since 5.10.static booleanisReadableUrl()Deprecated.static booleanisRemoteInstance()Deprecated.since 5.10.static booleanisRemoteODInstance()Deprecated.since 5.10.
-
-
-
Field Detail
-
propertiesManager
public static final PropertiesManager propertiesManager
Deprecated.
-
PAUSE_MILLIS
public static final int PAUSE_MILLIS
Deprecated.The length of time to pause between actions must be longer for some databases than others. Specifically, we know that we store dates in 1 second granularity in Oracle. On Windows, this needs to be between 10 - 16ms, depending on the CPU.
-
PAUSE_ATTACHMENT_NAMING
public static final TimePeriod PAUSE_ATTACHMENT_NAMING
Deprecated.
-
PAUSE_LONGTASK
public static final TimePeriod PAUSE_LONGTASK
Deprecated.
-
PAUSE_REINDEX
public static final TimePeriod PAUSE_REINDEX
Deprecated.
-
PAUSE_PLUGIN_INSTALLATION
public static final org.joda.time.Duration PAUSE_PLUGIN_INSTALLATION
Deprecated.DatabasePluginScanner does not support installing the same plugin twice inside the same second
-
PAUSE_BACKGROUND_JOBS
public static final boolean PAUSE_BACKGROUND_JOBS
Deprecated.
-
CROWD_MODE
public static final boolean CROWD_MODE
Deprecated.
-
PAUSE_RENDER_CONTENT
public static final org.joda.time.Period PAUSE_RENDER_CONTENT
Deprecated.
-
HTTP_REQUEST_TIMEOUT
public static final int HTTP_REQUEST_TIMEOUT
Deprecated.
-
DB_AND_PLUGINS_SETUP_TIMEOUT
public static final int DB_AND_PLUGINS_SETUP_TIMEOUT
Deprecated.
-
TCP_PORT_RANGE_START
public static final int TCP_PORT_RANGE_START
Deprecated.
-
TCP_PORT_RANGE_END
public static final int TCP_PORT_RANGE_END
Deprecated.
-
TCP_PORT_RANGE_START_FOR_MAIL
public static final int TCP_PORT_RANGE_START_FOR_MAIL
Deprecated.
-
TCP_PORT_RANGE_END_FOR_MAIL
public static final int TCP_PORT_RANGE_END_FOR_MAIL
Deprecated.
-
CHECK_TEST_TEARDOWN
public static final boolean CHECK_TEST_TEARDOWN
Deprecated.
-
DEFAULT_USERS_GROUP
public static final String DEFAULT_USERS_GROUP
Deprecated.
-
SEARCH_PLATFORM
public static final SearchPlatform SEARCH_PLATFORM
Deprecated.
-
INDRA_BASEURL_PROPERTY_KEY
@Deprecated public static final String INDRA_BASEURL_PROPERTY_KEY
Deprecated.since 5.10. No longer needed- See Also:
- Constant Field Values
-
JIRA_BASEURL_PROPERTY_KEY
@Deprecated public static final String JIRA_BASEURL_PROPERTY_KEY
Deprecated.since 5.10. No longer needed- See Also:
- Constant Field Values
-
LOCAL_HOSTNAME
@Deprecated public static final String LOCAL_HOSTNAME
Deprecated.since 5.10. No longer needed- See Also:
- Constant Field Values
-
-
Method Detail
-
getTestProperty
public static String getTestProperty(String propName)
Deprecated.- Parameters:
propName- the property name- Returns:
- the property value, or null if the property does not exist
- Throws:
NullPointerException- ifpropertiesManagerhas not been initialised
-
getTestProperty
public static String getTestProperty(String propName, String defaultPropValue)
Deprecated.
-
getTestPropertyAsInt
public static int getTestPropertyAsInt(String propName, int defaultPropValue)
Deprecated.
-
getTestPropertyAsInt
public static int getTestPropertyAsInt(String propName)
Deprecated.
-
getTestPropertyAsBoolean
public static boolean getTestPropertyAsBoolean(String propName)
Deprecated.Returns the test property as a boolean value. Defaults to false if test property does not exist.
-
getAllPropertiesWithPrefix
public static Map<String,String> getAllPropertiesWithPrefix(String prefix)
Deprecated.
-
getDelegatedLdapAuthProperties
public static Map<String,String> getDelegatedLdapAuthProperties()
Deprecated.
-
getDelegatedLdapGroupSyncProperties
public static Map<String,String> getDelegatedLdapGroupSyncProperties()
Deprecated.
-
getPrefixedPropertiesFromFile
public static Map<String,String> getPrefixedPropertiesFromFile(String file, String prefix)
Deprecated.
-
getBaseUrl
public static String getBaseUrl(int index)
Deprecated.Our tests support running against multiple Confluence nodes, each with their own base URL. In parallel, these are each separate instances. In a cluster, they're all linked together into one site.- Parameters:
index- the number of the node to get the base URL of. Starts from 1!- Returns:
- the base url of that node, or null if there is no such property.
-
isClustered
public static boolean isClustered()
Deprecated.- Returns:
- true if testing against a clustered instance of Confluence, false otherwise.
-
isReadableUrl
public static boolean isReadableUrl()
Deprecated.
-
isOnDemandMode
@Deprecated public static boolean isOnDemandMode()
Deprecated.since 5.10. No longer needed- Returns:
- true if testing against an OnDemand instance of Confluence, false otherwise.
-
isOnDemandStandalone
@Deprecated public static boolean isOnDemandStandalone()
Deprecated.since 5.10. No longer needed- Returns:
- true if testing against a Standalone OnDemand instance of Confluence, false otherwise.
-
isOnDemandAlaCarte
@Deprecated public static boolean isOnDemandAlaCarte()
Deprecated.since 5.10. No longer needed
-
isIndraEnabled
@Deprecated public static boolean isIndraEnabled()
Deprecated.since 5.10. No longer needed
-
getJiraBaseurl
@Deprecated public static String getJiraBaseurl()
Deprecated.since 5.10. No longer needed
-
isRemoteInstance
@Deprecated public static boolean isRemoteInstance()
Deprecated.since 5.10. No longer needed
-
isJiraEnabled
@Deprecated public static boolean isJiraEnabled()
Deprecated.since 5.10. No longer needed
-
isRemoteODInstance
@Deprecated public static boolean isRemoteODInstance()
Deprecated.since 5.10. No longer needed
-
-