use of com.ociweb.iot.maker.DeviceRuntime in project FogLight-Examples by oci-pronghorn.
the class AppTest method testApp.
@Ignore
public void testApp() {
DeviceRuntime runtime = DeviceRuntime.test(new IoTApp());
NonThreadScheduler scheduler = (NonThreadScheduler) runtime.getScheduler();
scheduler.startup();
TestHardware hardware = (TestHardware) runtime.getHardware();
int iterations = 10;
while (--iterations >= 0) {
scheduler.run();
// test application here
}
}
Aggregations