Package com.streambase.sb.unittest
Interface SBTestEnvironment
-
- All Known Implementing Classes:
BaseTestEnvironment
public interface SBTestEnvironment
This interface is not expected to be implemented by end-users. UseBaseTestEnvironment.DEFAULT_ENVIRONMENT
if you need a default instance to use for anSBServerManager
.- Since:
- 6.6
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description String
getConf()
default Map<String,String>
getEngineSystemProperties()
NowImplementation
getNowImpl()
boolean
isAppDebuggingEnabled()
boolean
isIntermediateStreamDequeueEnabled()
void
setNowImpl(NowImplementation nowImpl)
Set the current implementation of now() function
-
-
-
Method Detail
-
isIntermediateStreamDequeueEnabled
boolean isIntermediateStreamDequeueEnabled()
- Returns:
- whether intermediate stream dequeueing should be enabled
-
isAppDebuggingEnabled
boolean isAppDebuggingEnabled()
- Returns:
- whether the debugger should be enabled
-
getConf
String getConf() throws StreamBaseException
- Returns:
- the contents of a StreamBase configuration file that should not be null
- Throws:
StreamBaseException
- if any error occurs accessing the configuration
-
getEngineSystemProperties
default Map<String,String> getEngineSystemProperties()
- Returns:
- the engine-specific system properties associated with this environment, an empty map if none. Default implementation returns an empty map.
-
getNowImpl
NowImplementation getNowImpl()
- Returns:
- the
NowImplementation
value corresponding to the current implementation of now() function - Since:
- 7.4
-
setNowImpl
void setNowImpl(NowImplementation nowImpl) throws StreamBaseException
Set the current implementation of now() function- Parameters:
nowImpl
- theNowImplementation
value corresponding to the current implementation of now() function- Throws:
StreamBaseException
- if any error occurs- Since:
- 7.4
-
-