package com.ocweb.grove;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;

import org.junit.Test;

import com.ociweb.iot.hardware.impl.test.TestHardware;
import com.ociweb.iot.maker.DeviceRuntime;
import com.ociweb.pronghorn.stage.scheduling.NonThreadScheduler;

/**
 * Unit test for simple App.
 */
public class AppTest { 

	
	 @Test
	    public void testApp()
	    {
	    	DeviceRuntime runtime = DeviceRuntime.test(new IoTApp());	    	
	    	NonThreadScheduler scheduler = (NonThreadScheduler)runtime.getScheduler();    	
	    	TestHardware hardware = (TestHardware)runtime.getHardware();
	    
	    	scheduler.startup();
	    	
	    	int iterations = 10;
			while (--iterations >= 0) {
				    		
					scheduler.run();
					
					//test application here
					
			}
			
			scheduler.shutdown();
			
	    }
}

@@ -23,97 +23,8 @@
 e;%0A%0A
-import static org.junit.Assert.assertEquals;%0Aimport static org.junit.Assert.assertTrue;%0A%0A
 impo
@@ -42,16 +42,16 @@
 t.Test;%0A
+
 %0Aimport 
@@ -126,22 +126,19 @@
 t.maker.
-Device
+Fog
 Runtime;
@@ -316,22 +316,19 @@
 %7B%0A%09    %09
-Device
+Fog
 Runtime 
@@ -341,14 +341,11 @@
 e = 
-Device
+Fog
 Runt

update to new names