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 |
String |
path |
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 final String path
public BaseTestEnvironment()
UnitTestProperties.SERVER_CONF_PATH
public BaseTestEnvironment(String confFilePath)
confFilePath
- The path to the conf filepublic boolean isIntermediateStreamDequeueEnabled()
isIntermediateStreamDequeueEnabled
in interface SBTestEnvironment
public boolean isAppDebuggingEnabled()
isAppDebuggingEnabled
in interface SBTestEnvironment
public 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