|
||||||||||
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 |
CLUSTER_MODE
|
static boolean |
CROWD_MODE
|
static int |
DB_AND_PLUGINS_SETUP_TIMEOUT
|
static int |
DEFAULT_MAX_ATTACHMENT_SIZE
|
static int |
DEFAULT_MAX_ATTACHMENTS_PER_UPLOAD
|
static int |
HTTP_REQUEST_TIMEOUT
Standard time in milliseconds before an http request times out. |
static TimePeriod |
PAUSE_ATTACHMENT_NAMING
|
static boolean |
PAUSE_BACKGROUND_JOBS
|
static TimePeriod |
PAUSE_LONGTASK
|
static TimePeriod |
PAUSE_MAIL
|
static int |
PAUSE_MILLIS
The length of time to pause between actions must be longer for some databases than others. |
static TimePeriod |
PAUSE_REINDEX
|
static PropertiesManager |
propertiesManager
|
static int |
TCP_PORT_RANGE_END
|
static int |
TCP_PORT_RANGE_START
|
static boolean |
WATCHDOG_RESIN_MODE
|
static boolean |
WEBSPHERE_MODE
|
Constructor Summary | |
---|---|
TestProperties()
|
Method Summary | |
---|---|
static Map<String,String> |
getAllPropertiesWithPrefix(String prefix)
|
static String |
getBaseUrl(int index)
Our tests support running against multiple Confluence nodes, each with their own base URL. |
static Map<String,String> |
getCrowdProperties()
|
static Map<String,String> |
getDelegatedLdapAuthProperties()
|
static Map<String,String> |
getDelegatedLdapGroupSyncProperties()
|
static int |
getDidYouMeanIndexTimeout()
Timeout for building the "DidYouMean" index. |
static Map<String,String> |
getLdapProperties()
|
static Map<String,String> |
getPrefixedPropertiesFromFile(String file,
String prefix)
|
static String |
getTestProperty(String propName)
|
static boolean |
getTestPropertyAsBoolean(String propName)
Returns the test property as a boolean value. |
static int |
getTestPropertyAsInt(String propName)
|
static boolean |
isClustered()
|
static boolean |
isOnDemandAlaCarte()
|
static boolean |
isOnDemandMode()
|
static boolean |
isOnDemandStandalone()
|
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_MAIL
public static final TimePeriod PAUSE_REINDEX
public static final boolean PAUSE_BACKGROUND_JOBS
public static final boolean CROWD_MODE
public static final boolean WEBSPHERE_MODE
public static final boolean WATCHDOG_RESIN_MODE
public static final boolean CLUSTER_MODE
public static final int DEFAULT_MAX_ATTACHMENT_SIZE
public static final int DEFAULT_MAX_ATTACHMENTS_PER_UPLOAD
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
Constructor Detail |
---|
public TestProperties()
Method Detail |
---|
public static String getTestProperty(String propName)
propName
- the property name
NullPointerException
- if propertiesManager
has not been initialisedpublic static int getTestPropertyAsInt(String propName)
public static boolean getTestPropertyAsBoolean(String propName)
public static Map<String,String> getAllPropertiesWithPrefix(String prefix)
public static Map<String,String> getLdapProperties()
public static Map<String,String> getDelegatedLdapAuthProperties()
public static Map<String,String> getDelegatedLdapGroupSyncProperties()
public static Map<String,String> getCrowdProperties()
public static Map<String,String> getPrefixedPropertiesFromFile(String file, String prefix)
public static int getDidYouMeanIndexTimeout()
"didyoumean.index.timeout"
.
public static 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 isSsoAuthenticator()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |