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
|
| Modifier and Type | Method and Description |
|---|---|
String |
getConf() |
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 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 occursCopyright © 2015–2018 Cloud Software Group, Inc.. All rights reserved.