public class BaseTestEnvironment extends Object implements SBTestEnvironment
SBTestEnvironment for use
by SBServerManager instances. Retrieve the singleton BaseTestEnvironment.DEFAULT_ENVIRONMENT
for most uses.| Modifier and Type | Field and Description |
|---|---|
static SBTestEnvironment |
DEFAULT_ENVIRONMENT |
| Constructor and Description |
|---|
BaseTestEnvironment()
Create a basic test environment that configures from a server configuration file
per a system property
|
BaseTestEnvironment(String confFilePath)
Create a basic test environment that uses a specific configuration file
|
BaseTestEnvironment(String confFilePath,
Map<String,String> engineSystemProperties)
Create a basic test environment that uses a specific configuration file
|
| Modifier and Type | Method and Description |
|---|---|
String |
getConf() |
Map<String,String> |
getEngineSystemProperties() |
NowImplementation |
getNowImpl() |
boolean |
isAppDebuggingEnabled() |
boolean |
isIntermediateStreamDequeueEnabled() |
void |
setNowImpl(NowImplementation nowImpl)
Set the current implementation of now() function
|
public static SBTestEnvironment DEFAULT_ENVIRONMENT
public BaseTestEnvironment()
UnitTestProperties.SERVER_CONF_PATHpublic BaseTestEnvironment(String confFilePath)
confFilePath - The path to the conf filepublic BaseTestEnvironment(String confFilePath, Map<String,String> engineSystemProperties)
confFilePath - The path to the conf fileengineSystemProperties - any engine-specific system properties associated with this environment,
an empty map if nonepublic boolean isIntermediateStreamDequeueEnabled()
isIntermediateStreamDequeueEnabled in interface SBTestEnvironmentpublic boolean isAppDebuggingEnabled()
isAppDebuggingEnabled in interface SBTestEnvironmentpublic String getConf() throws StreamBaseException
getConf in interface SBTestEnvironmentStreamBaseException - if any error occurs accessing the configurationpublic NowImplementation getNowImpl()
getNowImpl in interface SBTestEnvironmentNowImplementation value corresponding to the current implementation of now() functionpublic void setNowImpl(NowImplementation nowImpl) throws StreamBaseException
SBTestEnvironmentsetNowImpl in interface SBTestEnvironmentnowImpl - the NowImplementation value corresponding to the current implementation of now() functionStreamBaseException - if any error occurspublic Map<String,String> getEngineSystemProperties()
getEngineSystemProperties in interface SBTestEnvironmentCopyright © 2015–2019 Cloud Software Group, Inc.. All rights reserved.