|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.confluence.it.TestProperties
public class TestProperties
Contains common properties used for testing Confluence's functionality. It includes a properties about the platform being tested.
Field Summary | |
---|---|
static boolean |
CHECK_TEST_TEARDOWN
|
static boolean |
CROWD_MODE
|
static int |
DB_AND_PLUGINS_SETUP_TIMEOUT
|
static java.lang.String |
DEFAULT_USERS_GROUP
|
static int |
HTTP_REQUEST_TIMEOUT
|
static java.lang.String |
INDRA_BASEURL_PROPERTY_KEY
|
static java.lang.String |
JIRA_BASEURL_PROPERTY_KEY
|
static java.lang.String |
LOCAL_HOSTNAME
|
static TimePeriod |
PAUSE_ATTACHMENT_NAMING
|
static boolean |
PAUSE_BACKGROUND_JOBS
|
static TimePeriod |
PAUSE_LONGTASK
|
static int |
PAUSE_MILLIS
The length of time to pause between actions must be longer for some databases than others. |
static org.joda.time.Duration |
PAUSE_PLUGIN_INSTALLATION
DatabasePluginScanner does not support installing the same plugin twice inside the same second |
static TimePeriod |
PAUSE_REINDEX
|
static org.joda.time.Period |
PAUSE_RENDER_CONTENT
|
static PropertiesManager |
propertiesManager
|
static int |
TCP_PORT_RANGE_END
|
static int |
TCP_PORT_RANGE_START
|
Constructor Summary | |
---|---|
TestProperties()
|
Method Summary | |
---|---|
static java.util.Map<java.lang.String,java.lang.String> |
getAllPropertiesWithPrefix(java.lang.String prefix)
|
static java.lang.String |
getApplicationAuthenticationCredentials()
|
static java.lang.String |
getBaseUrl(int index)
Our tests support running against multiple Confluence nodes, each with their own base URL. |
static java.lang.String |
getCrowdBasicAuthenticationCredentials()
|
static java.util.Map<java.lang.String,java.lang.String> |
getCrowdProperties()
|
static java.util.Map<java.lang.String,java.lang.String> |
getDelegatedLdapAuthProperties()
|
static java.util.Map<java.lang.String,java.lang.String> |
getDelegatedLdapGroupSyncProperties()
|
static java.lang.String |
getJiraBaseurl()
|
static java.util.Map<java.lang.String,java.lang.String> |
getLdapProperties()
|
static java.util.Map<java.lang.String,java.lang.String> |
getPrefixedPropertiesFromFile(java.lang.String file,
java.lang.String prefix)
|
static java.lang.String |
getTestProperty(java.lang.String propName)
|
static java.lang.String |
getTestProperty(java.lang.String propName,
java.lang.String defaultPropValue)
|
static boolean |
getTestPropertyAsBoolean(java.lang.String propName)
Returns the test property as a boolean value. |
static int |
getTestPropertyAsInt(java.lang.String propName)
|
static boolean |
isClustered()
|
static boolean |
isIndraEnabled()
|
static boolean |
isJiraEnabled()
|
static boolean |
isOnDemandAlaCarte()
|
static boolean |
isOnDemandMode()
|
static boolean |
isOnDemandStandalone()
|
static boolean |
isRemoteInstance()
|
static boolean |
isRemoteODInstance()
|
static boolean |
isSsoAuthenticator()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final PropertiesManager propertiesManager
public static final int PAUSE_MILLIS
public static final TimePeriod PAUSE_ATTACHMENT_NAMING
public static final TimePeriod PAUSE_LONGTASK
public static final TimePeriod PAUSE_REINDEX
public static final org.joda.time.Duration PAUSE_PLUGIN_INSTALLATION
public static final boolean PAUSE_BACKGROUND_JOBS
public static final boolean CROWD_MODE
public static final org.joda.time.Period PAUSE_RENDER_CONTENT
public static final int HTTP_REQUEST_TIMEOUT
public static final int DB_AND_PLUGINS_SETUP_TIMEOUT
public static final int TCP_PORT_RANGE_START
public static final int TCP_PORT_RANGE_END
public static final boolean CHECK_TEST_TEARDOWN
public static final java.lang.String DEFAULT_USERS_GROUP
public static final java.lang.String INDRA_BASEURL_PROPERTY_KEY
public static final java.lang.String JIRA_BASEURL_PROPERTY_KEY
public static final java.lang.String LOCAL_HOSTNAME
Constructor Detail |
---|
public TestProperties()
Method Detail |
---|
public static java.lang.String getTestProperty(java.lang.String propName)
propName
- the property name
java.lang.NullPointerException
- if propertiesManager
has not been initialisedpublic static java.lang.String getTestProperty(java.lang.String propName, java.lang.String defaultPropValue)
public static int getTestPropertyAsInt(java.lang.String propName)
public static boolean getTestPropertyAsBoolean(java.lang.String propName)
public static java.util.Map<java.lang.String,java.lang.String> getAllPropertiesWithPrefix(java.lang.String prefix)
public static java.util.Map<java.lang.String,java.lang.String> getLdapProperties()
public static java.util.Map<java.lang.String,java.lang.String> getDelegatedLdapAuthProperties()
public static java.util.Map<java.lang.String,java.lang.String> getDelegatedLdapGroupSyncProperties()
public static java.util.Map<java.lang.String,java.lang.String> getCrowdProperties()
public static java.util.Map<java.lang.String,java.lang.String> getPrefixedPropertiesFromFile(java.lang.String file, java.lang.String prefix)
public static java.lang.String getBaseUrl(int index)
index
- the number of the node to get the base URL of. Starts from 1!
public static boolean isClustered()
public static boolean isOnDemandMode()
public static boolean isOnDemandStandalone()
public static boolean isOnDemandAlaCarte()
public static boolean isIndraEnabled()
public static java.lang.String getJiraBaseurl()
public static boolean isRemoteInstance()
public static boolean isJiraEnabled()
public static boolean isRemoteODInstance()
public static java.lang.String getCrowdBasicAuthenticationCredentials()
public static java.lang.String getApplicationAuthenticationCredentials()
public static boolean isSsoAuthenticator()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |