public class BaseTestEnvironment extends java.lang.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 |
java.lang.String |
path |
Constructor and Description |
---|
BaseTestEnvironment()
Create a basic test environment that configures from a server configuration file
per a system property
|
BaseTestEnvironment(java.lang.String confFilePath)
Create a basic test environment that uses a specific configuration file
|
Modifier and Type | Method and Description |
---|---|
java.lang.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 final java.lang.String path
public BaseTestEnvironment()
UnitTestProperties.SERVER_CONF_PATH
public BaseTestEnvironment(java.lang.String confFilePath)
confFilePath
- The path to the conf filepublic boolean isIntermediateStreamDequeueEnabled()
isIntermediateStreamDequeueEnabled
in interface SBTestEnvironment
public boolean isAppDebuggingEnabled()
isAppDebuggingEnabled
in interface SBTestEnvironment
public java.lang.String getConf() throws StreamBaseException
getConf
in interface SBTestEnvironment
StreamBaseException
- if any error occurs accessing the configurationpublic NowImplementation getNowImpl()
getNowImpl
in interface SBTestEnvironment
NowImplementation
value corresponding to the current implementation of now() functionpublic void setNowImpl(NowImplementation nowImpl) throws StreamBaseException
SBTestEnvironment
setNowImpl
in interface SBTestEnvironment
nowImpl
- the NowImplementation
value corresponding to the current implementation of now() functionStreamBaseException
- if any error occurs