com.atlassian.confluence.it
Class TestProperties

java.lang.Object
  extended by com.atlassian.confluence.it.TestProperties

public class TestProperties
extends java.lang.Object

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 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 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 java.util.Map<java.lang.String,java.lang.String> getAllPropertiesWithPrefix(java.lang.String prefix)
           
static java.lang.String getConfiguredBaseUrl()
          Returns the configured base URL in the Confluence app.
static java.util.Map<java.lang.String,java.lang.String> getCrowdProperties()
           
static java.util.Map<java.lang.String,java.lang.String> getDelegatedLdapAuthProperties()
           
static int getDidYouMeanIndexTimeout()
          Timeout for building the "DidYouMean" index.
static java.util.Map<java.lang.String,java.lang.String> getLdapProperties()
           
static java.lang.String getTestProperty(java.lang.String propName)
           
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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

propertiesManager

public static final PropertiesManager propertiesManager

PAUSE_MILLIS

public static final int PAUSE_MILLIS
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.


PAUSE_ATTACHMENT_NAMING

public static final TimePeriod PAUSE_ATTACHMENT_NAMING

PAUSE_LONGTASK

public static final TimePeriod PAUSE_LONGTASK

PAUSE_MAIL

public static final TimePeriod PAUSE_MAIL

PAUSE_REINDEX

public static final TimePeriod PAUSE_REINDEX

CROWD_MODE

public static final boolean CROWD_MODE

WEBSPHERE_MODE

public static final boolean WEBSPHERE_MODE

WATCHDOG_RESIN_MODE

public static final boolean WATCHDOG_RESIN_MODE

CLUSTER_MODE

public static final boolean CLUSTER_MODE

DEFAULT_MAX_ATTACHMENT_SIZE

public static final int DEFAULT_MAX_ATTACHMENT_SIZE
See Also:
Constant Field Values

DEFAULT_MAX_ATTACHMENTS_PER_UPLOAD

public static final int DEFAULT_MAX_ATTACHMENTS_PER_UPLOAD
See Also:
Constant Field Values

HTTP_REQUEST_TIMEOUT

public static final int HTTP_REQUEST_TIMEOUT
Standard time in milliseconds before an http request times out.


TCP_PORT_RANGE_START

public static final int TCP_PORT_RANGE_START

TCP_PORT_RANGE_END

public static final int TCP_PORT_RANGE_END

CHECK_TEST_TEARDOWN

public static final boolean CHECK_TEST_TEARDOWN
Constructor Detail

TestProperties

public TestProperties()
Method Detail

getTestProperty

public static java.lang.String getTestProperty(java.lang.String propName)
Parameters:
propName - the property name
Returns:
the property value
Throws:
java.lang.NullPointerException - if propertiesManager has not been initialised

getTestPropertyAsInt

public static int getTestPropertyAsInt(java.lang.String propName)

getTestPropertyAsBoolean

public static boolean getTestPropertyAsBoolean(java.lang.String propName)
Returns the test property as a boolean value. Defaults to false if test property does not exist.


getAllPropertiesWithPrefix

public static java.util.Map<java.lang.String,java.lang.String> getAllPropertiesWithPrefix(java.lang.String prefix)

getLdapProperties

public static java.util.Map<java.lang.String,java.lang.String> getLdapProperties()

getDelegatedLdapAuthProperties

public static java.util.Map<java.lang.String,java.lang.String> getDelegatedLdapAuthProperties()

getCrowdProperties

public static java.util.Map<java.lang.String,java.lang.String> getCrowdProperties()

getDidYouMeanIndexTimeout

public static int getDidYouMeanIndexTimeout()
Timeout for building the "DidYouMean" index. This can take longer on some platforms, such as clusters, in which case the timeout can be increased with a system property of "didyoumean.index.timeout".

Returns:
the length of the timeout in milliseconds

getConfiguredBaseUrl

public static java.lang.String getConfiguredBaseUrl()
Returns the configured base URL in the Confluence app. This is the same as the base URL of node #1 in a cluster.

Returns:
the configured base url

isClustered

public static boolean isClustered()
Returns:
true if testing against a clustered instance of Confluence, false otherwise.


Copyright © 2003-2011 Atlassian. All Rights Reserved.