FileDocCategorySizeDatePackage
PropertyKeys.javaAPI DocGlassfish v2 API7873Fri May 04 22:23:50 BST 2007com.sun.enterprise.management

PropertyKeys

public final class PropertyKeys extends Object
Property keys used to configure the unit tests.
see
TestMain
see
TestRunner

Fields Summary
private static final String
BASE
public static final String
DEFAULT_PROPERTIES_FILE
public static final String
CONNECT_KEY
public static final String
HOST_KEY
public static final String
PORT_KEY
public static final String
USER_KEY
public static final String
PASSWORD_KEY
public static final String
TRUSTSTORE_KEY
public static final String
TRUSTSTORE_PASSWORD_KEY
public static final String
USE_TLS_KEY
public static final String
RUN_THREADED_KEY
public static final String
VERBOSE_KEY
public static final String
ITERATIONS_KEY
public static final String
TEST_OFFLINE_KEY
Whether testing is for offline config utilizing com.sun.appserv.management.config.OfflineConfigIniter. You must also supply a value for the {@link #DOMAIN_XML_KEY}.
public static final String
DOMAIN_XML_KEY
A valid file path for domain.xml.
public static final String
EXPANDED_TESTING_KEY
A boolean specifying whether expanded testing is to be used. When specified, tests that involve clusters, multiple standalone servers, etc are run (if possible).
public static final String
NODE_AGENTS_KEY
Comma-separated list of node-agent names to be used during testing. The special name {@link #ALL_NODE_AGENTS} may be used to specify all configured node agents.

At runtime, the environment contains a Map available via this key, where the key is the node agent name.

public static final String
ALL_NODE_AGENTS
public static final String
DAS_NODE_AGENT_NAME
Name of the node agent that the DAS uses.
public static final String
ARCHIVES_TO_DEPLOY_KEY
Comma-separated list of files.
public static final String
ARCHIVES_DELIM
Delimiter between files contained in the value for {@link #ARCHIVES_TO_DEPLOY_KEY}.
public static final String
DEPLOY_NUM_THREADS
The number of threads to run for DeploymentMgrTest.testDeployHeavilyThreaded()
public static final String
UPLOAD_DOWNLOAD_MGR_TEST_THREADS
The number of threads to run for UploadDownloadMgrTest.testHeavilyThreaded()
public static final String
UPLOAD_DOWNLOAD_MGR_TEST_BIG_FILE_KB
The size, in KB, of UploadDownloadMgrTest.testDownloadBigFile()
public static final String
TEST_CLASSES_FILE_KEY
File consisting of names of tests, one per line
public static final String
DEFAULT_HOST
public static final String
DEFAULT_PORT
public static final String
DEFAULT_USER
public static final String
DEFAULT_PASSWORD
public static final String
DEFAULT_TRUSTSTORE
public static final String
DEFAULT_TRUSTSTORE_PASSWORD
public static final String
DEFAULT_USE_TLS
public static final String
DEFAULT_RUN_THREADED
public static final String
DEFAULT_TEST_CLASSES_FILE_KEY
public static final String
DEFAULT_VERBOSE
public static final String
DEFAULT_ITERATIONS
public static final String
DEFAULT_CONNECT
public static final String
DEFAULT_NODE_AGENT_NAMES
public static final String
DEFAULT_EXPANDED_TESTING
public static final String
DEFAULT_TEST_OFFLINE
public static final String
DEFAULT_ARCHIVES_TO_DEPLOY
public static final String
DEFAULT_DEPLOY_NUM_THREADS
public static final String
DEFAULT_UPLOAD_DOWNLOAD_MGR_TEST_THREADS
public static final String
DEFAULT_UPLOAD_DOWNLOAD_MGR_TEST_BIG_FILE_KB
Constructors Summary
private PropertyKeys()

Methods Summary
public static java.util.MapgetDefaults()

	
	
		  
	
	
		final Map<String,String>	props	= new HashMap<String,String>();
		
		props.put( HOST_KEY, DEFAULT_HOST);
		props.put( PORT_KEY, DEFAULT_PORT);
		props.put( USER_KEY, DEFAULT_USER);
		props.put( PASSWORD_KEY, DEFAULT_PASSWORD);
		props.put( TRUSTSTORE_KEY, DEFAULT_TRUSTSTORE);
		props.put( TRUSTSTORE_PASSWORD_KEY, DEFAULT_TRUSTSTORE_PASSWORD);
		props.put( USE_TLS_KEY, DEFAULT_USE_TLS);
		props.put( CONNECT_KEY, DEFAULT_CONNECT);
		props.put( TEST_OFFLINE_KEY, DEFAULT_TEST_OFFLINE);
		props.put( DOMAIN_XML_KEY, "./domain.xml" );
		
		props.put( NODE_AGENTS_KEY, ALL_NODE_AGENTS);
		props.put( EXPANDED_TESTING_KEY, DEFAULT_EXPANDED_TESTING);
		
		props.put( RUN_THREADED_KEY, DEFAULT_RUN_THREADED);
		props.put( VERBOSE_KEY, DEFAULT_VERBOSE);
		props.put( TEST_CLASSES_FILE_KEY, DEFAULT_TEST_CLASSES_FILE_KEY);
		props.put( ITERATIONS_KEY, DEFAULT_ITERATIONS );
		
		props.put( ARCHIVES_TO_DEPLOY_KEY, DEFAULT_ARCHIVES_TO_DEPLOY);
		props.put( DEPLOY_NUM_THREADS, DEFAULT_DEPLOY_NUM_THREADS);
		
		props.put( UPLOAD_DOWNLOAD_MGR_TEST_THREADS, DEFAULT_UPLOAD_DOWNLOAD_MGR_TEST_THREADS);
		props.put( UPLOAD_DOWNLOAD_MGR_TEST_BIG_FILE_KB, DEFAULT_UPLOAD_DOWNLOAD_MGR_TEST_BIG_FILE_KB);
		
		props.put( DEFAULT_PROPERTIES_FILE, DEFAULT_PROPERTIES_FILE );
		return( props );