Class AbstractMonitoringReceiverTest
- java.lang.Object
-
- test.de.iip_ecosphere.platform.monitoring.AbstractMonitoringReceiverTest
-
- Direct Known Subclasses:
MonitoringReceiverTest
public abstract class AbstractMonitoringReceiverTest extends java.lang.ObjectTests aMonitoringReceiverwith a simple mocked reusable example scenario.- Author:
- Holger Eichelberger, SSE
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static interfaceAbstractMonitoringReceiverTest.MonitoringRecieverLifecycleEncapsulates the monitoring receiver.
-
Constructor Summary
Constructors Constructor Description AbstractMonitoringReceiverTest()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract de.iip_ecosphere.platform.support.ServercreateBroker(de.iip_ecosphere.platform.support.ServerAddress broker)Creates the broker instance.protected intgetSleepTime()The sleep time inrunScenario(MonitoringRecieverLifecycle).protected voidrunScenario(AbstractMonitoringReceiverTest.MonitoringRecieverLifecycle mrl)Runs a platform-like monitoring scenario with an ECS-runtime and a service manager on the same device.
-
-
-
Method Detail
-
createBroker
protected abstract de.iip_ecosphere.platform.support.Server createBroker(de.iip_ecosphere.platform.support.ServerAddress broker)
Creates the broker instance.- Parameters:
broker- the broker address- Returns:
- the instance
-
runScenario
protected void runScenario(AbstractMonitoringReceiverTest.MonitoringRecieverLifecycle mrl)
Runs a platform-like monitoring scenario with an ECS-runtime and a service manager on the same device.- Parameters:
mrl- the lifecycle.
-
getSleepTime
protected int getSleepTime()
The sleep time inrunScenario(MonitoringRecieverLifecycle).- Returns:
- the sleep time in ms
-
-