package ${package};

import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;

/**
 * Unit test for simple App.
 */
public class AppTest 
    extends TestCase
{
    /**
     * Create the test case
     *
     * @param testName name of the test case
     */
    public AppTest( String testName )
    {
        super( testName );
    }

    /**
     * @return the suite of tests being tested
     */
    public static Test suite()
    {
        return new TestSuite( AppTest.class );
    }

    /**
     * Rigourous Test :-)
     */
    public void testApp()
    {
        assertTrue( true );
    }
}

@@ -25,610 +25,711 @@
 ort 
-junit.framework.Test
+static org.junit.Assert.assertEquals;%0Aimport static org.junit.Assert.assertTrue
 ;%0A
+%0A
 import 
+org.
 junit.
-framework.TestCase;%0Aimport junit.framework.TestSuite;%0A%0A/**%0A * Unit test for simple App.%0A */%0Apublic class AppTest %0A    extends TestCase%0A%7B%0A    /**%0A     * Create the test case%0A 
+Test;%0A%0Aimport com.ociweb.iot.hardware.TestHardware;%0Aimport com.ociweb.iot.maker.IOTDeviceRuntime;%0Aimport com.ociweb.pronghorn.stage.scheduling.NonThreadScheduler;%0A%0A/**%0A * Unit test for simple App.%0A */%0Apublic class AppTest %7B %0A%0A%09%0A%09 @Test%0A%09    public void testApp()%0A%09
     
-*%0A
+%7B%0A%09
     
- * @param testName name of the test case%0A     */%0A    public AppTest( String testName )%0A    %7B%0A        super( testName 
+%09IOTDeviceRuntime runtime = IOTDeviceRuntime.test(new IoTApp());%0A%09    %09    %09%0A%09    %09NonThreadScheduler scheduler = (NonThreadScheduler)runtime.getScheduler(
 );
-%0A
     
-%7D%0A%0A
+%09%0A%09
     
-/**%0A     * @return the suite of tests being tested%0A     */%0A    public static Test suite()%0A    %7B%0A        return new TestSuite( AppTest.class 
+%0A%09    %09scheduler.setSingleStepMode(true);%0A%0A%09    %09TestHardware hardware = (TestHardware)runtime.getHardware(
 );%0A
+%09
     
-%7D%0A
 %0A
+%09
     
-/**%0A     * Rigourous Test :-)%0A     */%0A    public void testApp()%0A    %7B%0A        assertTrue( true );%0A
+%09%0A%09    %09//test application here%0A%09    %09%0A%09
     

switch to new testing runtime