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 boolean DB2_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 boolean LDAP_MODE
           
static boolean ORACLE_MODE
           
static int PAUSE_MILLIS
          The length of time to pause between actions must be longer for some databases than others.
static PropertiesManager propertiesManager
           
static boolean SQL_SERVER_MODE
          True when testing MS SQL Server.
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.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)
           
 
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.


LDAP_MODE

public static final boolean LDAP_MODE

CROWD_MODE

public static final boolean CROWD_MODE

DB2_MODE

public static final boolean DB2_MODE

SQL_SERVER_MODE

public static final boolean SQL_SERVER_MODE
True when testing MS SQL Server. It's determined by the "database.name" property, because having an additional a specific property seems uncalled for.


ORACLE_MODE

public static final boolean ORACLE_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.



Copyright © 2003-2010 Atlassian. All Rights Reserved.